Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql re-install - apache will not start now

Status
Not open for further replies.

raniweb

Technical User
Apr 26, 2004
66
US
I have removed mysql(rpm) and then re-installed mysql 4.0.22 by rpm. When I go to restart my apache server it gives me the error below:

httpd failed to start. The error was: Starting httpd: Syntax error on line 261 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: libmysqlclient.so.14: cannot open shared object file: No such file or directory[FAILED].

I'm not sure what this means. After I had installed mysql, I reconfigured php and left the apache config alone. Mysql is not working either, I can start it but I get a "Cannot find temp.sock error with I try to connect. I'm not sure what I've done because everything was working before a deleted the old mysql and installed the mysql-4.0.22. (I need this version for another program). If you have any ideas of where I should go from here I would appreciate it. Thank you in advance!
 
It looks like you installed a version of mysql client libs that don't provide the shared object your php module is looking for.

Did you install the MySQL-client-compat from the MySQL AB site?
 
Thank you for responding! I installed the MySQL-client-4.0.22-0.i386.rpm that I downloaded from the mysql.com website. How do I fix a shared object issue? I'm new to linux and just a bit clueless with it. Thank you again for helping!
 
On the download page there are two client rpms, you want to get the one that says "Dynamic client libraries (including 3.23.x libraries)
 
Thank you again! I just downloaded and installed that one and restarted mysql. I tried to connect with not luck. And apache is still not starting. When I try to connect to mysql I get the 'Can't connect to local MySQL server through socket '/tmp/mysql.sock'. And when I try to start the httpd server I still receive the same error as before.
 
Does /etc/httpd/modules/libphp4.so exist ?

Is libmysqlclient.so.14 in /usr/lib or /usr/local/lib

Do a "find / -type f | grep libmysqlclient"

Is that library anywhere on the box, and if is, is the directory in your LD_LIBRARY_PATH ("env |grep LD_LIB") ?

--------------------------------------------------
Free Database Connection Pooling Software
 
I was able to fix the problem by removing mysql and php and then re-installing both of them. The server came up fine with no errors. Thank you all for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top