beerco

Member
Nov 25, 2005
5
0
151
after you update mysql from 4 to 5, php and other programs are still linked to mysql4 libmysqlclient_14.
Therefore, as soon as you restart apache, the libphp4x.so will fail.

Just thought I'd drop a line. I'm using cpanel to develop an addon script for phpmail. Not in a production environment so it's no big deal.
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
you may need a apache recompile in order to have the php core files to be properly linked after mySQL upgrade.
 

erick_paper

Well-Known Member
Apr 19, 2005
245
0
166
I am facing this problem. How should I do the "apache recompile"? Will it break other apache stuff such as mod_security etc?
 

freedman

Well-Known Member
Feb 13, 2005
314
5
168
I am facing this problem. How should I do the "apache recompile"? Will it break other apache stuff such as mod_security etc?
if you compiled apache initially with easyapache (via CPANEL WHM),
then just do it again,
go to "Software -> Apache Update"
click "load previous config"

and UNCHECK!! Skip Apache Build if up to date

then doublecheck the other checkboxes..
then build..
 

Spiral

BANNED
Jun 24, 2005
2,020
8
193
Even easier ... just symlink to the updated library file!

Only takes like 2 seconds ....
Code:
mv /usr/local/cpanel/lib/libmysqlclient.so.14 /usr/local/cpanel/lib/libmysqlclient.so.14.backup
ln -s /usr/lib/libmysqlclient.so.15.0.0 /usr/local/cpanel/lib/libmysqlclient.so.14
Don't forget to restart Apache afterwards