[Solved] 503 Error - Due to PHP Relocation error?

theRKF

Well-Known Member
#1
Some sites (or sections of sites ex: Photopost gallery) are returning 503 errors.

Digging into the logs I see:
Getting this error:
2012-05-11 09:20:42.631 [STDERR] lsphp5:/flowerch/public_html/photopost/showphoto.php: relocation error: lsphp5:/flowerch/public_html/photopost/showphoto.php: symbol deflateInit2_, version libmysqlclient_16 not defined in file libmysqlclient.so.16 with link time reference
The PHP binary in use is /usr/local/bin/php

root@server [~]# ldd /usr/local/bin/php |grep libmysqlclient
libmysqlclient.so.16 => /usr/lib64/mysql/libmysqlclient.so.16 (0x00007f124a2e0000)

root@server [~]# ls -la /usr/lib64/mysql/libmysqlclient.so.16
lrwxrwxrwx 1 root root 24 May 9 13:18 /usr/lib64/mysql/libmysqlclient.so.16 -> libmysqlclient.so.16.0.0*

root@server [~]# nm /usr/lib64/mysql/libmysqlclient.so.16 |grep deflateInit_2
nm: /usr/lib64/mysql/libmysqlclient.so.16: no symbols

root@server [~]# rpm -qf /usr/lib64/mysql/libmysqlclient.so.16
mysql-libs-5.1.52-1.el6_0.1.x86_64
We are running Red Hat EL6 on a Xeon 8 core CPU, 8GB RAM, with WHM/cPanel and LiteSpeed 4.1.12, PHP 5.3.10.

PHP Memory Limit is 256M

PHP was compiled by LiteSpeed support via paid ticket.

Any suggestions on how to proceed without breaking my server by playing around? :)
 

NiteWave

Administrator
#2
2012-05-11 09:20:42.631 [STDERR] lsphp5:/flowerch/public_html/photopost/showphoto.php: relocation error
is the lsphp5 /usr/local/bin/php ?

to verify, put phpinfo.php under /flowerch/public_html/photopost/, and access it via browser.
 

theRKF

Well-Known Member
#5
Solved - the mysql-libs update via cPanel script worked.

My hosting company's support tech installed an incompatible RPM.
 
Top