coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: Prim3r on February 21, 2005, 08:59:33 PM

Title: Problems with GD
Post by: Prim3r on February 21, 2005, 08:59:33 PM
Hi all :)

im instaled coppermine , and when i upload a pic ( with the gd 1x option ) i get this error :

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

So i contacted my host , and they say that tey have the latest GD... i try it with GD 1x and 2x ...

I enable debug mode and the errors are :

File: /home/prim3r/public_html/cpg/include/picmgmt.inc.php - Line: 184



Debug info :

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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => xxxxxx
    [user_password] => xxxxxxxxx
    [user_lastvisit] => 2005-02-21 14:39:35
    [user_regdate] => 2005-02-16 12:49:47
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [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] => 0
    [num_file_upload] => 5
    [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
(
    [0] => SELECT extension, mime, content FROM cpg_filetypes;
    [1] => SELECT * FROM cpg_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '43c138ee908a9429cec449e1226ed6dc'
    [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 cpg_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg_banned WHERE expiry < 1109015716
    [5] => SELECT * FROM cpg_banned WHERE ip_addr='212.113.164.99' OR ip_addr='213.22.72.110' OR user_id=1
)

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

==========================
POST :
------------------
Array
(
    [unique_ID] => 9b3ee1b5
    [control] => phase_2
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 4.0.23-standard
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /var/tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
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 | Off | Off
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/prim3r/:/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.033 seconds - 6 queries in 0.001 seconds - Album set :


thank you for your help :)


EDIT :

I have also other question : i have to chmod "albums" and "include" to 777 , my question is , do i 777 all files in "include" to?
Title: Re: Problems with GD
Post by: Joachim Müller on February 22, 2005, 08:47:20 AM
we have a "one question per thread" policy on this board, please respect it.
Go to admin tools - phpinfo section, find the section about GD on the phpinfo page and paste it into your reply here.

Joachim
Title: Re: Problems with GD
Post by: Prim3r on February 22, 2005, 05:17:17 PM
Quote from: GauGau on February 22, 2005, 08:47:20 AM
we have a "one question per thread" policy on this board, please respect it.

ok , sorry about that :)

QuoteGo to admin tools - phpinfo section, find the section about GD on the phpinfo page and paste it into your reply here.

here it is :


System Linux ns1.nextdesigns.net 2.4.21-27.0.2.ELsmp #1 SMP Wed Jan 12 23:35:44 EST 2005 i686
Build Date Feb 22 2005 02:18:37
Configure Command './configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--enable-magic-quotes' '--with-mysql' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zlib'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, compress.zlib



i just discover that other users from this host are using coppermine ... so i guess it my problem , not from the host... :(
Title: Re: Problems with GD
Post by: kegobeer on February 22, 2005, 08:01:46 PM
Make a php file with this in it:

<?php
phpinfo();
?>

Look for all of the GD information.  Do you see JPEG support?  Post all of the GD related information.
Title: Re: Problems with GD
Post by: Joachim Müller on February 23, 2005, 07:02:52 AM
see http://coppermine.sourceforge.net/faq.php#VersionGD - I thought my instructions were clear what to do: obviously they were not.

Joachim
Title: Re: Problems with GD
Post by: bowe310 on February 24, 2005, 09:48:27 PM
I have the same problem as the OP, my phpinfo shows GD in the 'configuration bit at the top as

'./configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--with-apxs2=/usr/sbin/apxs'

But it does not appear as per the example further down the table, mine goes from 'ftp' to gettext without mention of GD.

Any ideas?




Title: Re: Problems with GD
Post by: Joachim Müller on February 25, 2005, 12:50:53 PM
if the GD section is not in phpinfo, then PHP doesn't "know" about it, so you can't use it. You will have to recompile PHP then (if self-hosted) or ask your webhost to fix this for you (if webhosted). Little else we could advise.

Joachim
Title: Re: Problems with GD
Post by: Prim3r on February 25, 2005, 09:44:19 PM
well...my problem is solved...i asked for help to my host...maybe "instaling" a late version of GD.
I really dont know what they do....but its working now :)

Thanks.