ok i've just recompiled apache/mysql/php
and while recompiling php i wanted to add GD support
to add GD support for png and jpeg i used the following configure switches for php, making sure to first
Code:
yum install libpng and libjpeg
don't forget to make clean as below (it resolved my problem from multiple compiles)
Code:
make clean
./configure \--with-apxs=/usr/local/apache/bin/apxs \--with-mysql=/usr/local/mysql \--with-gd \--with-jpeg-dir \--with-png-dir
make
make install
the configuration flags \--with-gd \--with-jpeg-dir=/usr \--with-png-dir=/usr add our GD support for Zenphoto (image gallery software, example here)
for troubleshooting php errors make sure to log them to your apache error_log
to do that, edit your php.ini file
vi /usr/local/lib/php.ini
find
Quote:; Log errors into a log file (server-specific log, stderr, or error_log (below)); As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off
change to
Quote:; Log errors into a log file (server-specific log, stderr, or error_log (below)); As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = on
restart apache and the php errors such as this will give you an idea of what is wrong in the first place
Quote:[Tue Mar 4 17:43:43 2008] [error] PHP Fatal error: Call to undefined function imagecreatefromjpeg() in /usr/local/apache/websites/niallbrady/photos/zp-core/functions-image.php on line 59