I am trying to use mysql with php. I was success with this on other computers. Recently I have had to set up a dedicated server and someone already installed apache, php and mysql.

So I fired up phpMyAdmin only to be greeted by :

cannot load MySQL extension,
please check PHP Configuration.

i checked php.ini and removed the comment out mysql.so extension, restarted the httpd demon and tryed again. Same message...

i can't find mysql.so anywhere on the system. is not included in the rpm? if not where can i find it? is it that simple?

any answers greatly appreciated.

-powlow

    2 months later

    Having same problem. Have you resolved this. I was able to install all this with Mandrake. It it was right out of the box; however, I'm trying to do the same this with Redhat 7.1 and I get the same error as you did. Any suggestions would be helpful.

      hi mike,

      still not sure what problem was.
      it was a REALLY old version of SUSE and kernel. i tried upgrading and still no success. there was a real rush on that one so i ended up using a database on another server i had already set up.

      what have you tried so far?

      have you tried unistalling and re-installing rpm? is not using rpms, have you tried redownloading source files and recompiling?

      -powlow

        Haven't tried anything yet. It almost seems as though I need to reinstall apache with php support or mysql with php support. I have a friend who might be able to figure this out. Hope to see him in a couple of weeks. I'll let you know what happends.

        Mike
        mevasquez@home.com

          a month later

          maybe u need to install php-mysql-4.x ? :-))

            7 months later

            I am having the same error with cannot load mysql extension, check php configuration.

            Did you find a solution to the problem? I am using Redhat Linux 7.3 with apache version 1.30.20, php version 4.2.1, mysql version 3.23.49a. I dont want install a new version of apache as I already tried that on an earlier build and it just made things worse.

            Also I\'ve had this configuration working before on a different machine with the same versions so I know I\'m just doing something wrong here. Apache was installed when the OS was installed. Then I installed mysql and then php.
            Any help would be greatly appreciated!

            Chris.

              Write a Reply...