This ended up being the solution to fix this issue.
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470483)
Anyways (to be sure it doesn’t change again), the solution is the folowing:
Problem:
Executing php
prints the folowing error:|
PHP Warning: PHP Startup: Unable to load dynamic library
‘/usr/lib/php5/20060613+lfs/gd.so’ - /usr/lib/php5/20060613+lfs/gd.so:
undefined symbol: gdImageCreateFromJpeg in Unknown on line 0
more specifically when processing a php page it displays the folowing:
|Fatal error: Call to undefined function imageCreate()
in /home/irc/website/makeworldmap.php on line 13
|
Answer:
There’s something wrong with gd itself,|
|/usr/lib/php5/20060613+lfs/gd.so is different from one of a clean install
It actually loads the wrong libgd, which can be found by typing locate libgd
We find other versions of libgd in /usr/local/lib/:
libgd.so, libgd.so.2, libgd.so.2.0.0
do the folowing things:
sudo mkdir libgd.backup
sudo mv libgd.so* libgd.backup
restart apache: sudo /etc/init.d/apache2 restart|