[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [RaQ 4] Problems restarting Apache after Mysql/PHP install



Hello there,
I was installing MySQL and PHPfor the first time on my brand new RaQ4. All
went fine, but when I wanted to restart Apache it came up with the following
error:

Shutting down Web Service: httpd
Setting up Web Service: Syntax error on line 58 of
/etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: libmysqlclient.so.10:
cannot open shared object file: No such file or directory
/usr/sbin/httpd

I checked... I doubble checked... their IS a file called
libmysqlclient.so.10
Could somebody help me along here? I have now started apache succesfully,
that is, I commented all the lines about PHP out:

#LoadModule php4_module modules/libphp4.so

#LoadModule php4_module        /usr/lib/apache/libphp4.so

#AddModule mod_php4.c

Any ideas solutions and help would be greatly appreciated!


Okay, this is a very common problem which has been covered many times on the list, and also on the PHP site- www.php.net.

The problem is that your system is not finding the libmysqlclient.so file, so you need to tell the system where to find it. On a RaQ3, you have to add the path to the file into /etc/ld.so.conf and run /sbin/ldconfig to make the library available to the system. I presume this is the same as the RaQ4.

For example, if libmysqlclient.so is in /usr/local/mysql/lib/mysql then add the following line to your /etc/ld.so.conf file:

/usr/local/mysql/lib/mysql

Regards,

Glen Scott