I have compiled PHP4 with axps and works fine until I compile it and try to load it with external MySQL support.

I get the following error when I try to start the web server.

Starting httpd: Syntax error on line 249 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: libmysqlclient.so.6: cann
ot open shared object file: No such file or directory

What should I do?

TIA

    this is due to a bug in mysqlinstallation I think. Try adding the the directory where this file exists to your /etc/ld.so.conf file and run

    ldconfig

    so your system knows where to find the library.

    If apache starts crashing silently (it did with me) you might have mysql installed from rpm, which contains a bug from compiling with glibc --with-posix-threads enabled. A installation of mysql from source by default disables this and should work.

    good luck

    nicholas

      I have had this problem before. What you have to do is go to /usr/lib/ and re-link the:
      libmysqlclient.so.6 => libmysqlclient.so.6.0.0

        actually nicholas's post did the trick

        thanks.

          That's nice.
          Just wanted to point out the real problem.

            Write a Reply...