Hi Guys
I know there are numerous similar posts to this one but Ive tried all the things I can find and I'm at my wits end. I have been administering our freebsd servers for a number of years but my knowledge of package management is not what it should be so please forgive my ignorance.
I got myself into a bind following a recent attempt to upgrade php on one of our production webservers. We were running php version 5.2.8 and I updated the ports tree and ran portupgrade on php5 without consulting /usr/ports/UPDATING (i now know that was probably the cause of all the problems). I ran into major issues when apache wouldn't start back up, I was getting core dumps even when I disabled all the php extension modules. So in a bit of a panic to get the box back up, i deleted all php53 packages and went back to php52 (5.2.14). By installing/enabling all the php modules one at a time I was able to get a functioning box up and running.
The only module I have cant seem to get working is gd. See error below.
It seems I have libpng.so.6 installed but not libpng.so.5. Creating a symlink managed to fool apache but we get mysterious errors whenever a gd function is called within php.
The exact same thing occurs with libjpeg but different version numbers.
Ive tried deleting all png/gd related packages and reinstalling numerous times without success. I also tried to use portdowngrade on the png package as advised in one post but cant seem to get any of the anoncvs servers to respond??
Ive got a feeling that the package database has been screwed up during this whole process. Ive gone through pkgdb -F a number of times, but I'm not confident i've corrected everything rightly. I'm not skilled enough to answer all its questions confidently. Is there another way to fix it.
I am happy to provide any other information you might need in order to assist me.
Any advice would be greatly appreciated.
Cheers
Andrew
I know there are numerous similar posts to this one but Ive tried all the things I can find and I'm at my wits end. I have been administering our freebsd servers for a number of years but my knowledge of package management is not what it should be so please forgive my ignorance.
I got myself into a bind following a recent attempt to upgrade php on one of our production webservers. We were running php version 5.2.8 and I updated the ports tree and ran portupgrade on php5 without consulting /usr/ports/UPDATING (i now know that was probably the cause of all the problems). I ran into major issues when apache wouldn't start back up, I was getting core dumps even when I disabled all the php extension modules. So in a bit of a panic to get the box back up, i deleted all php53 packages and went back to php52 (5.2.14). By installing/enabling all the php modules one at a time I was able to get a functioning box up and running.
The only module I have cant seem to get working is gd. See error below.
Code:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/gd.so' - Shared object "libpng.so.5" not found
It seems I have libpng.so.6 installed but not libpng.so.5. Creating a symlink managed to fool apache but we get mysterious errors whenever a gd function is called within php.
Code:
PHP Warning: imagepng() [<a href='function.imagepng'>function.imagepng</a>]: Unable to open
The exact same thing occurs with libjpeg but different version numbers.
Ive tried deleting all png/gd related packages and reinstalling numerous times without success. I also tried to use portdowngrade on the png package as advised in one post but cant seem to get any of the anoncvs servers to respond??
Ive got a feeling that the package database has been screwed up during this whole process. Ive gone through pkgdb -F a number of times, but I'm not confident i've corrected everything rightly. I'm not skilled enough to answer all its questions confidently. Is there another way to fix it.
I am happy to provide any other information you might need in order to assist me.
Any advice would be greatly appreciated.
Cheers
Andrew