Connecting Tech Pros Worldwide Help | Site Map

Coppermine & GD - using bundled php-4.3.8 GD, but "PHP running on your server does not support the GD image library"

ggg@gg.com
Guest
 
Posts: n/a
#1: Jul 17 '05
I had not enabled GD yet, so I reconfigured and recompiled my
PHP like so:

./configure --with-apxs=/www/bin/apxs --with-zlib --width-gd
make
make install

I restarted apache, and tested out some GD-related functions
and it works fine:

// create a 200*200 image
$img = imagecreate(200, 200);

// allocate some colors
$white = imagecolorallocate($img, 255, 255, 255);
$black = imagecolorallocate($img, 0, 0, 0);

// draw a black circle
imagearc($img, 100, 100, 150, 150, 0, 360, $black);

// output image in the browser
header("Content-type: image/png");
imagepng($img);

// free memory
imagedestroy($img);

.... however when I try to upload a file to Coppermine Photo
Gallery I get the same old:

"PHP running on your server does not support the GD image
library"

Is this a Coppermine issue, or a PHP configuration issue?
Closed Thread