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"

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 11:28 AM
ggg@gg.com
Guest
 
Posts: n/a
Default Coppermine & GD - using bundled php-4.3.8 GD, but "PHP running on your server does not support the GD image library"

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?

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.