I am trying to compile lamp server with suphp. I installed all of it and i am getting php info page with normal apache handler but when i try to use suphp i am getting errors with libmysqlclient.so.18 cannot open shared object no such file or directory i am using mysql 5.5 php 5.4 and apache 2.2 . I installed sql server in /sql directory .i can see /sql/lib/libmysqlclient.so.18.0.0 .But why it is not working .Anyone please help me out thanx
probably can't find the lib because it's not in the standard location like /lib/ or /usr/lib/
you should create a symlink for the library in one of this dirs usally /usr/lib/ or /usr/lib/mysql/
Code:
for file in $(ls /sql/lib/ | grep libmysqlclient.so); do ln -s /sql/lib/$file /usr/lib/$file; done
The Following User Says Thank You to TiTex For This Useful Post:
I did the same thing but its not working i created symbolic links to /usr/lib/mysql
in the directory libmysqlclient.so.16 and some other files present .But still I am getting errors..Check my error log screen shots Thanks for quick replay..
what linux distribution are you using ?
is it a 32bit or 64bit distribution ?
can you also post the link for the howto you followed ?
also what is the output of ls -l /usr/lib/ | grep libmysqlclient.so && ls -l /usr/lib/mysql
The Following User Says Thank You to TiTex For This Useful Post:
Yes here it is i am using cenos 6 32-bit edition i listed /usr/lib but i didnt get any output probably nothing in there here m posting my /usr/lib/mysql and /sql/lib directory thanks for your posts bro..
Recent comments
1 day 9 hours ago
1 day 12 hours ago
2 days 21 min ago
2 days 3 hours ago
2 days 7 hours ago
2 days 13 hours ago
2 days 22 hours ago
3 days 41 min ago
3 days 8 hours ago
3 days 10 hours ago