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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache, mysql, and php problem

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I recently upgraded to MySQL 4 (in order to fulfill some requirements for coldfusion).
Now I am getting this error:
" PHP Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' - libmysqlclient.so.10: cannot open shared object file: No such file or directory in Unknown on line 0 "

I would like to use php again, but I am stuck at this point. I have mysql.so in the right location, and I cannot find libmysqlclient, but I have installed MySQL-shared for version 4.

Thanks for any help in this matter. Rninja

smlogo.gif

 
I had a problem like this a million years ago and I can't for the life of me remember the exact command. I'm gonna take a wild guess. ldconfig sounds kinda like what I ran. Anyway, what you need to do is link all your shared object libraries so the can be found. Sorry for being so brain dead but I hope this gets you pointed in the right direction.
 
I had the same problem. i reinstalled apache and php as:

1. gunzip apache_xxx.tar.gz
2. tar -xvf apache_xxx.tar
3. gunzip php-xxx.tar.gz
4. tar -xvf php-xxx.tar
5. cd apache_xxx
6. ./configure --prefix=/usr/local/apache --enable-module=so
7. make
8. make install
9. cd ../php-xxx
10. ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
11. make
12. make install


you only need to repeat the last three steps. You only need to restart apache for the new module to take effect. A recompile of Apache is not needed.

11. cp php.ini-dist /usr/local/lib/php.ini

12. Edit your httpd.conf or srm.conf file and check that these lines are present and not commented out:

AddType application/x-httpd-php .php

LoadModule php4_module libexec/libphp4.so

You can choose any extension you wish here. .php is simply the one we suggest. You can even include .html, and .php3 can be added for backwards compatibility.

The path on the right hand side of the LoadModule statement must point to the path of the PHP module on your system. The above statement is correct for the steps shown above.

13. Use your normal procedure for starting the Apache server. (You must stop and restart the server, not just cause the server to reload by use a HUP or USR1 signal.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top