Good day everyone!

 I am using APCHE 2.0.58, PHP 5.1.14 and MySQL 5.0, I edited the httpd.conf something like this..

LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php .html .htm
PHPiniDir "C:/PHP"


 And I edited my php.ini by changing the extension directory and uncommenting the Dynamic Extensions. SOmething like this:

extension_dir = "c:/php/ext"

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


These 3 files are existing in the "C:\PHP\ext" folder but when I start Apache, Warning can be found in the error log. Please help for this. Thank in advance.

Sandie

sandieflores@yahoo.com

    This is the warning that I found and I cannot use PHP to connect to MySQL..

    PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php/ext\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php/ext\php_pdo_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0

    Thank you very much

    Sandie

    sandieflores@yahoo.com

      Go back to php.ini and change

      extension_dir = "c:/php/ext"

      to

      extension_dir = "C:\php\ext\"

      Then restart the server and try her again.

        Thank you very much Houdini. I already try that out before but still no good. I have found the cure already. Since I use the PHP 5.1.14, there is no need to use the mysqli command but the mysql only. mysqli is for PHP 5.1.12 and MySQL 5.0.

        to fix the error, I extract the libmysql.dll as php_mysql connector file in the folder "C:\WINDOWS\SYS32".

        Thank you very much for your reply, I found the cure in the MYSQL FORUM.

          Write a Reply...