RE: PHP does not support the GD library. RE: PHP does not support the GD library.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

RE: PHP does not support the GD library.

Started by anatahoshee, June 22, 2004, 09:04:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

anatahoshee

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

Joachim Müller

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

icaro

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
(
   
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '1ff28cfd3d65cbe2bc6910ced9af13c9'
        [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1097659211
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='213.221.137.37' OR ip_addr='213.221.137.37' OR user_id=1
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.9 - OK
    ------------------
    mySQL version: 4.0.20-standard
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.20
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.4
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | On | On
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | /home/aerocech/:/usr/lib/php:/usr/local/lib/php:/tmp | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | -1 | -1
    upload_max_filesize | 2M | 2M
    post_max_size | 55M | 55M
    ==========================
    Page generated in 0.098 seconds - 6 queries in 0.002 seconds - Album set :

Joachim Müller

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

majestic99

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







Joachim Müller

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