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

As in php.ini connect the following extensions:

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

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

  • Apache rebooted what is written in logs? - gympi
  • Server restart done. And where are the logs to see? - MultiTeemer

3 answers 3

Does the extension_dir directive exactly point to the directory in which you have the extensions?

  • Now I looked, there was a wrong directory ("./" instead of "ext /"). Corrected. All the same the same. - MultiTeemer
  • Try to specify the full path: extension_dir = "c: / php / ext" In PHPIniDir you have what? - Avalon
  • this in httpd.conf: <br> LoadModule php5_module "c: /php5/php5apache2_2.dll" <br> AddType application / x-httpd-php. php <br> PHPIniDir "C: / php5 /" <br> in php .ini set: <br> extension_dir = "c: / php / ext /" <br> now says that it cannot find these extensions. But they are there! what to do? (by the way, I put PHP 5.3) - MultiTeemer
  • And rightly said. In PHPIniDir, you specify that php is in your "C: / php5 /" directory, and look for extensions in "c: / php / ext /". Correct on extension_dir = "C: / php5 / ext /" - because the extensions you have there are? - Avalon
  • thank you very much! - MultiTeemer

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

 ; On windows: extension_dir ="C:\Путь\К\php\ext" 

(respectively, check for 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. ; extension=php_bz2.dll 

4) prescribe files, or uncomment them (by deleting ";" before the desired line)

 extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_mysql.dll 

5) restart the web server, profit!

    Most likely, when installing MySQL in the step "MySQL Server Instance Configuration" you did not set the root password. Accordingly, try to log in with an empty password.