I see this all over this site, but nobody seems to have the answerl.

I am running Apache 2 on a Trustix Linux box. I have php 5 installed and mysql. Both are running fine. However, I get the following error when I execute phpmyadmin on my server.

cannot load MySQL extension

It is driving me nuts. I have these lines in my httpd.conf file.

LoadModule bucketeer_module modules/mod_bucketeer.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module /usr/lib/apache/libphp5.so

I have the "extension=php_mysql.dll" uncommented in my php.ini file.

My httpd.conf virtual host lines look like this.

<VirtualHost 192.168.100.253:80>
DocumentRoot /home/pcinfoman/public_html
ServerName www.pcinfoman.com
CustomLog /home/pcinfoman/logs/combined_log-pcinfoman combined
AddHandler php5-script php
AddType text/html php
</VirtualHost>

HELP!!

    Make a quick page that has just the phpinfo() function on it and see what that reports as far as supported stuff...

      I did that already and all I get is a blank page. However, I fixed this by uncommenting the

      extension=mysql.so

      Line in my php.ini file.

        7 months later

        I have the same problem:
        "cannot load mysql extension: please check PHP configuration"
        Linux Fedora3: I have no mysql.so to uncomment
        Any idea?
        Thank you
        PS: I've yum install php-mysql

          17 days later

          We are running FC3 and switched from PHP 4.3.11, Apache 1.3.7 and MySQL 4 last week and installations and configurations took about 3 days. We are now running Apache 2.0.54, MySQL 5.0.13, PHP 5.0.5 and phpMyAdmin-2.6.4-pl3.
          "cannot load mysql extension: please check PHP configuration"
          We had the same problem and battled for a bit but then edited 'config.inc.php' in the phpMyAdmin directory.
          We changed the values for: -
          'host' from localhost to the machine host name
          'extension' to 'mysqli'
          'user' to a user who has access to MySQL, i.e. can log onto MySQL on the server
          'password' to the password of the user
          All our apps are now working perfectly.
          Hope this helps all of you.

            Write a Reply...