suhosin.so/pdo.so/pdo_sqlite.so/sqlite.so/pdo_mysql.so errors

nwilkins83

Member
Sep 20, 2013
13
0
1
cPanel Access Level
Root Administrator
Hello,

Apologies if this is not the correct location to post this (first time Linux user & poster)

I have fired up a CentOS virtual machine and installed cPanel onto it. I am trying to run a couple of sites and noticed one of my Joomla sites is not working and is displaying the following in its error log:

Code:
[20-Sep-2013 13:22:06 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0

[20-Sep-2013 13:22:06 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0

[20-Sep-2013 13:22:06 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0

[20-Sep-2013 13:22:06 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0

[20-Sep-2013 13:22:06 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

[20-Sep-2013 13:22:06 UTC] PHP Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0

I have already had a go at fixing this but to no avail. The required extensions are present in my servers php.ini but this site receives the above error. Please advise on what my best course of action is.

Many Thanks
 

Aaron.Edwards

Active Member
Sep 21, 2013
36
0
6
cPanel Access Level
Root Administrator
The required extensions are present in my servers php.ini but this site receives the above error.
There shouldn't be the file at : /usr/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so

/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so

Though you have mentioned the extenstion_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626" in your php.ini, php is searching for the .so files under this location mentioned at extension_dir. As the actual file isn't there, there were an error produced.

Check with whether there were any other directories under : /usr/local/lib/php/extensions/no-debug-non-zts* ?

Can you post the output of the below here ?

# ls -la /usr/local/lib/php/extensions/no-debug-non-zts*
 

nwilkins83

Member
Sep 20, 2013
13
0
1
cPanel Access Level
Root Administrator
Hello,

Please find the output attached. I must add that this website I am trying to get to work has been copied over from another server with an earlier version of PHP and I guess the *.so references were installed in a different location on that server?

How do I determine if the new server has all of the correct files in the correct location?
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

Check to ensure there are no php.ini files within the account's home directory or directories beneath it. The existence of these files can prevent the website from utilizing the system php.ini file.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Those modules are installable via EasyApache:

/scripts/easyapache

Or;

"WHM Home » Software » EasyApache (Apache Update)"

You can find them under the "Exhaustive Options List" for PHP. Note that Suhosin is not supported in PHP version 5.4.

Thank you.