php modules problem - gd.so and mysql.so
Hello,
I'm having a problem with php on my server. I had to change something in my
apache httpd.conf file, so I did so and restarted apache, but it gave me
these php errors (which claim to be "warnings" but prevent the server from
starting):
PHP Warning: Unknown(): Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20020429/gd.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/gd.so: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20020429/mysql.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/mysql.so: cannot
open shared object file: No such file or directory in Unknown on line 0
The changes I made to my apache conf had nothing to do with php (I was just
adding a virtualhost), and I didn't change any packages on the system
anytime in the past couple months. But suddenly, php won't run. And when I
do php -v at the command line, I get the exact same errors.
Neither of those *.so files exist. And php is ignoring the php.ini files,
in which I've commented out the lines that refer to those *.so files. I
found that gd.so *does* exist at a different location
(/usr/lib/php4/20020429/), so I linked that into the directory in the error,
and that error went away. I then did an apt-get upgrade, and apt-get
install php4, which created a mysql.so in that same /usr/lib/php4 directory.
But when I linked *that* into the directory from the error, starting php
-v or apache gives about 60 of these errors:
PHP Warning: Function registration failed - duplicate name - mysql_dropdb
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
mysql_freeresult in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
mysql_numfields in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - mysql_numrows
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - mysql_listdbs
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
mysql_listtables in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
mysql_listfields in Unknown on line 0
And I have been running ldconfig after just about every other command.
I don't know why php would suddenly break itself after running fine for
months without any change in the system's config (the apt-get upgrade that I
just did installed ~200 packages)... and I can't seem to make it work now.
Any ideas?
Thanks,
Anthony DiSante
http://nodivisions.com/
Reply to: