CentOS 6 + cPanel Hook

XN-Matt

Well-Known Member
#1
Customer reports the following error when trying to compile apache with the hook enabled. (compiling apache without the hook active works without error).

Code:
!! Executing custom hook '/scripts/after_httpd_restart_tests' !!

-- LiteSpeed WHM hooks begin: whm_after_httpd_restart_tests
Switch to LiteSpeed
Stopped Apache.
httpd: no process killed
LiteSpeed started successfully.
Try to build matching php with LSAPI version 0,5.2.17
Try to build matching PHP via EasyApache hooks 0,5.2.17
/usr/local/bin/php: relocation error: /usr/local/bin/php: symbol zlibVersion, version libmysqlclient_16 not defined in file libmysqlclient.so.16 with link time reference
phpinfo()
-- LiteSpeed WHM hooks end: whm_after_httpd_restart_tests
!! Done executing '/scripts/after_httpd_restart_tests' !!
User is about to ditch LiteSpeed because of problems like this so would be good if you give a prompt reply.
 

mistwang

LiteSpeed Staff
#2
try to execute "/usr/local/bin/php -i" from command, something wrong with it.
Maybe it is caused by customization of /usr/local/lib/php.ini. Maybe try to load mysql extension again as DSO while the PHP extension has been compiled it.
Fix the php.ini, then you can do "Build Matching PHP" from WHM plugin.
 

XN-Matt

Well-Known Member
#3
There were no changes made to php.ini, this was a brand new install.

The command you suggested did not error.

"Build Matching PHP" does not work the same as the hook and things appear to be mis-linked, which is why it is crucial the user to be able to use the hook.

We've tested this on a new Centos 6 install and the same thing occurs, but not on a Centos 5 install.
 

mistwang

LiteSpeed Staff
#4
Are you sure? Have you tried that command?
The plugin run "/usr/local/bin/php -i" to extract Apache php configuration options from phpinfo(), if it works properly with command line, it should work with the plugin.
If it produces error like the one you posted, it wont print out the phpinfo(), the plugin will stop.
 

mistwang

LiteSpeed Staff
#5
I happen came cross the same problem on one of our customer's server.

It is because a conflict between centos 6 mysql-devel package and MySQL-devel package from cPanel.
remove mysql-devel and reinstall MySQL-devel package fixed it.

rpm -e mysql-devel
/scripts/mysqlup --force
 
Top