Can’t include extensions in php.ini

Apache 2.2, PHP 5, MySQL Server 5.5 installed. PHP is tied to Apache. MySQL is not tied to PHP.

How to include the following extensions in php.ini:

  • php_pdo.dll
  • php_pdo_mysql.dll
  • php_mysql.dll(deleting ” ; ” before the corresponding lines in this file does not give any result)?

All extensions are present in the \ext\folder. What to do? Uncomment – uncommented, but still does not work.

Answer 1, authority 100%

Does the extension_dir directive point exactly to the directory where you have your extensions?

Answer 2, authority 50%

1) open php.ini;
2) find the following:

; On windows:
extension_dir ="C:\\\php\ext"

(respectively, check for the presence of php_pdo.dll, php_pdo_mysql.dll, php_mysql.dll files in the ext directory)

3) further in the same file we find:

; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.

4) prescribe the files, or uncomment them (removing the “;” before the desired line)


5) restart the webserver, profit!

Answer 3

Most likely, when you installed MySQL in the “MySQL Server Instance Configuration” step, you didn’t specify a root password. Accordingly, try logging in with a blank password.