July 27th, 2000, 02:09 PM
i have installed mysql, apache and php4 on my system.
PHP 4.0.1 pl2
MySQL instalation has been fine and working. The problem is with Apache and PHP4.
I installed Apache first and then PHP (without starting Apache). Only after i succesfully installed php, i tried giving the following command:
[root@localhost bin]# ./apachectl start
But it gave me the following error........
Syntax error on line 211 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: libmysqlclient.so.6: cannot open shared object file: No such file or directory
./apachectl start: httpd could not be started
pls let me know if any soln. is there to this prob.
July 29th, 2000, 04:30 PM
I have encountered the same problem with a server at work. Try ./configure - ing Apache, then ./configure PHP --with-apache=../path/to/apache/src
make, and make install PHP
Then go back to Apache, ./configure again with
then make and make install Apache.
I spent a good 5 hours trying to fix that exact same problem, so I may be a bit confused, but I'm pretty sure that is what I did to fix it.
August 5th, 2000, 11:05 PM
or you can try this simpler approach
1) edit /etc/ld.so.conf and append a line with the path to your libmysqlclient.so [/usr/local/lib/mysql/]
2) run /sbin/ldconfig
3) apache should now start ok
4) let us know if it worked! :-)