coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: anatahoshee on June 22, 2004, 09:04:55 PM

Title: RE: PHP does not support the GD library.
Post by: anatahoshee on June 22, 2004, 09:04:55 PM
Hi... I've read the post 'PHP does not support the GD library' and I just can't figure out what else to do with it and I don't understand it, I'm sorry! >.< It also said to check with my server about the ImageMagick being installed. I've contacted them about that, but still haven't heard from them. I checked out the PHPInfo() as directed, but I have no idea where to find the GD area on it. Anyhow, what are my options  or how can I go about fixing this problem? Thank you!

Here's what it says when I click on the X on the image:

PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed

File: /home/blewaway/public_html/gallery/include/picmgmt.inc.php - Line: 196
Title: Re: RE: PHP does not support the GD library.
Post by: Joachim Müller on June 23, 2004, 05:53:28 PM
if you don't have any reference to GD in your phpinfo file and you don't have ImageMagick, you simply can't use Coppermine, as you fail to fullfill the minimum requirements. Your options: either ask your host to install GD or IM for you, switch webhosts or look for another gallery application that has less minimum requirements.

GauGau
Title: Re: RE: PHP does not support the GD library.
Post by: icaro on October 13, 2004, 11:20:43 AM
Hi, I read all your answer about php not support the GD library.
My problem is a bit different...as GD Library is enabled on the server I use.
I installed the gallery and run it for about one month and suddenly this morning this message appears.
In debug mode if I list...I can see that GD is not enabled....and I run another Coppremine gallery on the same server with no problem and where GD is enabled.
I can't find my way through this.
Help please...here is the debug text.
Thanks for your help.

PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed

USER:
------------------
Array
(
    [ID] => e848eb577dd695eed09daa7ffb134d44
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => ptimat
    [user_password] => ********
    [user_lastvisit] => 2004-10-13 11:20:02
    [user_regdate] => 2004-08-29 10:06:05
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] => Vercorin
    [user_interests] => glisser dans l'air avec ou sans ailes
    [user_occupation] => profparadeltachutipentiste...
    [user_actkey] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 1
    [num_file_upload] => 10
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: RE: PHP does not support the GD library.
Post by: Joachim Müller on October 14, 2004, 05:13:20 AM
GD may be on the server, but is it enabled for usage with PHP (in Windows, you enable GD by uncommenting the proper line in php.ini, in Lunix, you have to compile it with GD enabled). Check your phpinfo page - does it say you have GD? Go to "admin tools", choose phpinfo there, find the GD section pn the output page and copy and paste the section into your reply on this thread. If you don't have a section named "GD", then there's no GD support in PHP on your server.

Joachim
Title: Re: RE: PHP does not support the GD library.
Post by: majestic99 on October 15, 2004, 07:16:20 AM
This issue is so undocumented and unclear it takes hours for something simple.
I version 4 or SO of PHP, they build in GD For Graphics. You can confirm that on the PHP Page.

I many times have taken a shot at getting Coppermine to run on my PHP/Apache/MYSQL/
Windows environment and always left it at the Upload File Functions with a "GD not
supported Message.. Check you PHP or load Imagemagick insted"

After many hours of Research for a few lines of Info, I have fixed this long time problem.
Since this packages depends on a Graphics program, I think it should be the first thing
in the documentation under installation but I don't have that in my Distribution ethier.

PHP installs in a Directory as C:\PHP or /usr/local/bin/php .. Dosen't matter.. It's an
Executable.  It's Dynamic Options are determined in the php.ini file which resides
in the Windows Directory (WINNT).  In the section where you include the extensions,
you kinda have to guess to know that php_gd2.dll is  the GD needed.  Php_mime_magic.dll
is the Imagemagick as known to php.  Now.. I installed Imagemagick Server which does
not help you.. PHP knows this library and has information about it in the Extenstions of
PHP.  Which by the way.. PHP uses [ext]  not [extensions] directory and there is a
Documentation or path mismatch so I just copied ext to extenstions under PHP.
I belive there might be a path specific to php/extensions insted of php/ext that is what's
installed.  Regardless, you uncomment the php_gd2 line below Then  you have to do one thing!


extension=php_gd2.dll
extension=php_java.dll
;extension=php_mime_magic.dll

NOW.....  You must Stop and Restart the Server for it to take effect!.. Why?

LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php

This line above is also missing in the PHP with Apache Server.. This line goes in the
httpd.conf File of Apache2...   C:\apache2\conf\httpd.conf  so the Server must
reload PHP in memory to take in the New Dynamic Links that you extended above by
uncommenting the extension.

I hope this helps.. It sure takes a lot of time to figure out when it should be included
in the Installation Documentation..

Thanks
David






Title: Re: RE: PHP does not support the GD library.
Post by: Joachim Müller on October 15, 2004, 07:24:07 AM
I disagree that it should be included in the docs - coppermine has minimum requirements; one of them is either GD or ImageMagick set up properly. If you buy a car, there's no mentioning how to build roads in the car's documentation. It's your decision to run a webserver - setting it up just is not that easy as M$ wants to make believe.

Joachim