fastcgi - cPanel overrides PHP -


i'm trying run nginx web server along side cpanel. i've had nginx , running , site working perfectly, after installing cpanel, looks overrided php.

current error error.log:

connect() failed (111: connection refused) while connecting upstream

this error suggests there's problem fastcgi or php-fpm. when try restart php-fpm service, error:

starting php-fpm: [23-aug-2013 00:30:31] notice: php message: php warning: php startup: unable load dynamic library '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.16: cannot open shared object file: no such file or directory in unknown on line 0 [23-aug-2013 00:30:31] notice: php message: php warning: php startup: unable load dynamic library '/usr/lib64/php/modules/mysqli.so' - libmysqlclient.so.16: cannot open shared object file: no such file or directory in unknown on line 0 [23-aug-2013 00:30:31] notice: php message: php warning: php startup: unable load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - libmysqlclient.so.16: cannot open shared object file: no such file or directory in unknown on line 0

it appear recent changes made have either overwritten php installation or path modules /usr/lib64/php/modules/ not valid anymore.

i @ php configuration using:

<?php phpinfo(); ?> 

then copy configuration see there , add additional modules need configuration , recompile php source. should resolve issue you.

if cannot php run @ right now, can still configuration running command line:

php -i | head 

you can temporarily disable missing modules editing php.ini file. after doing php should start without problems.

edit 1: can find , change extension_dir path in php.ini file.