• PHP Help General Help
  • [RESOLVED] Cannot load mysql extension. Please check your PHP configuration. - Documentation

Hey everyone
My name is Lukasz
I am Polish/Canadian
I was born in Poland and I live in Canada

I need following help
I get this message error Cannot load mysql extension. Please check your PHP configuration. - Documentation

I did the PHPINiDiR Directive in httpd.conf and as well I tried already the enviromental tables right clicking the my computer. I have the extensions loaded as well in php.ini, and yes there is the fullpath in ext in php.ini
I have php 5.20 snapshot
The problem is with phpMyAdmin

    Sup?
    Nevermind
    It is fixed now hehe

      And the issue was? Please let us know.

        I have did the following
        in php.ini
        C:/Program Files/Apache/php/ext in php.ini
        PHPIniDiR "C:/Program Files/Apache/php/php.ini
        Did you notice that those slashes have to be the same and they have to be "/" not \
        the \ won't work 😃

          Yes. Slashes for Windows should be "/". Windows will properly interpret them; however, php and linux won't. "\" is actually an escape character 😉

            I am making my own precompiled server.
            I will make an installer for it as well 🙂

              14 days later

              Is there any chance you could do me a favour and clarify precisely what you did to fix this problem?

                Sup?
                In your httpd.conf
                look for Loadmodule and add
                LoadModule php4_module "C:/Program Files/Apache Group/Apache2/php/php4apache2.dll"
                AddType application/x-httpd-php .php
                AddType application/x-httpd-php .php3
                AddType application/x-httpd-php .phtml
                ScriptAlias /php/ "C:/Program Files/Apache Group/Apache2/php/"
                Action application/x-httpd-php "/php/php.exe"
                Phpinidir where your php php.ini is located.
                Load Module php4 php4apache2.dll or php5 php5apache2.dll I suggest php5apache2_2.dll
                ScriptAlias where your php.exe is located
                In php.ini
                Find extension_dir where your extensions are located
                Then look for dynamic extesnion
                uncomment extension=php_mbstring.dll
                extension=php_mssql.dll
                extension=php_msql.dll

                Restart your apache

                  3 years later

                  This is the only way to get rid of the XAMPP message after a fresh install "Cannot load mysql extension. Please check your PHP configuration. - Documentation." All the post are incorrect in saying you have to remove the ";" from the php_mysql extension. By default on a XAMPP install those extension are enabled in the php.ini file. I have run into this on every XAMPP installation I used. The fix is upgrading the version of PHP. I renamed the php folder under XAMPP php_old, downloaded PHP 5.x.x but did not install. Don't use the .exe use just the files and then copy them over to the XAMPP installation. For some reason the XAMPP package is having trouble with the version 4 of PHP. Good luck.

                    9 months later

                    In my windows xp machine, I fixed this error by copying c:\program files\mysql\mysql server 5.1\bin\libmySQL.DLL to c:\php, replacing the .dll which was older and smaller. The error went away!🙂

                      Write a Reply...