forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: nlnlnl on September 20, 2006, 04:28:16 pm
-
PHP running on your server does not support the GD image library,
I get that error message when trying to batch upload.
But PHP was configured with GD - the following is from my phpinfo :
'./configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-gd' '--enable-gd-native-ttf' '--with-zlib-dir=/usr/include'
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
Any ideas, or what other information do I need to get to figure out what's wrong here?
TIA,
Neil
-
Do exacly as Upload troubleshooting (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble) doc. said
-
Sorry. . .
I have set the settings deswcribed, but this is not web-facing so am unable to post a link, but the only extra info displayed with debug on, just after the 'php running on your server...' msg, is just the script name a and line number File: /usr/local/apache2/htdocs/coppermine/include/picmgmt.inc.php - Line: 254
thanks.
-
"Do not post debug_output unless requested."
So. . . . should I post this?
-
It doesn't look like JPEG support was enabled when PHP and GD were compiled.
-
Ok, so I've re-configured php with jpeg (--with-jpeg), but phpinfo still doesn't show jpeg support, and uploading a file produces the same error msg.. Am I right in thinking I need to see jpeg support in the GD section of phpinfo?
I also tried configuring with --with-jpeg --with-jpeg-dir=/usr/lib (this is where I find the libjpeg.so.62 and libjpeg.so.62.0.0 files) This configure fails with libjpeg. (a|so) not found.
I've read a post saying I also need libjpeg-devel - but cannot find a downloadable version anywhere, and another post saying it is already included in libjpeg.
Any help much appreciated.
-
I've resolved this.
Found a post saying that after installing libjpeg, it is necessary to do make install-lib, & make instal-headers
Then I just included --with-jpeg-dir=/usr/local in the php configure command. Sorted.
Thanks for replies.