Categories
Admin

Site Note

I was getting a 500 error when checking out the site. So I went to my domain account and checked the error logs. I had the following entries:

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP Fatal error: [Zend Optimizer] Extension “Zend Optimizer” cannot be loaded twice in Unknown on line 0

A little googling revealed the possibility that zend was being loaded by 2 different php.ini files. So I commented out the offending line in the php.ini file and the site started working again. I’m putting this here more for my own reference for the next time something screwy happens. I’ll investigate further to get a better understanding of what’s going on.

UPDATE: OK, I’ve uncommented the line and reinstalled the php.ini and everything is still hunky dory, although I’m still getting the warnings. The fatal error related to zend appears to be gone. Still trying to get a better handle on what happened.

LAST UPDATE: These errors had to do with extensions called out in the php.ini file. Looks like in late May, the PDO extensions disappeared from the server since that’s when the warnings started appearing. Fortunately, the blog doesn’t rely on PDO so when I commented out the offending lines in my php.ini file, the errors and warnings disappeared but didn’t crash my site. I’ll keep an eye on this. Interestingly, PDO appears to be enabled on the server. I won’t say the issue is resolved, but I’ve at least gained some understanding about what’s going on.

Leave a Reply

Your email address will not be published. Required fields are marked *