Oudie Posted November 8, 2005 Posted November 8, 2005 (edited) I install 2 script, guestbook and Gallery2, they all need GD or Imagemagic, but the scipt can't call. The support team tell me the GD had install already. I install the same script in sever112 and in the other company server, server112's GD can't work, the other one work fine. So I guess maybe it's server configure probleum. Here are test link. One can show small size image, the other can't. Server112 Work fine server The guestbook script download Gallery2 Download(2.0.1) Edited November 8, 2005 by Oudie Quote
TweezerMan Posted November 8, 2005 Posted November 8, 2005 Welcome to the forums, Oudie! You need to submit a ticket to the Help Desk and ask them to recompile PHP with all of the options normally used on TCH servers. Looking at phpinfo() on your server, the 'Configure Command' section only shows the following: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib'The server hosting my account shows the following:'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-zip' '--with-zlib' The '--with-gd' option missing from your server's PHP configure command is why GD functions do not work on your server. The Help Desk should be able to quickly take care of this once you bring it to their attention. Quote
Oudie Posted November 8, 2005 Author Posted November 8, 2005 It's work fine now, thank you:) Now, how to call ImageMagick? The Gallery2 need ImageMagick path. Quote
TCH-Abdul Posted November 8, 2005 Posted November 8, 2005 ImageMagick 6.2.5 installed on the server. Path : /usr/local/bin/convert Quote
Oudie Posted November 8, 2005 Author Posted November 8, 2005 (edited) It's says "TEST Fale" ImageMagick binary test results Binary Name Pass/Fail identify Failed Error messages: Problem executing binary: identify Failed Error messages: Problem executing binary: convert Failed Error messages: Problem executing binary: composite Failed Error messages: Problem executing binary: Debug output (4 failed tests) - We gathered this debug output while testing your ImageMagick binaries. If you read through this carefully you may discover the reason why your ImageMagick binaries failed the tests. realpath(/usr/local/bin/convert/) realpath(/home/cpkugcig) realpath(/usr/lib/php) realpath(/usr/local/lib/php) realpath(/tmp) Loading plugin imagemagick imagemagick plugin successfully instantiated Check the version of the imagemagick plugin The version of the imagemagick plugin is ok getcwd() chdir(/home/cpkugcig/gallery2_g2data/tmp/) file_exists(/usr/local/bin/convert/gm) realpath(/usr/local/bin/convert/identify) realpath(/home/cpkugcig) realpath(/usr/lib/php) realpath(/usr/local/lib/php) realpath(/tmp) Executing: ( "/usr/local/bin/convert/identify" "/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.gif" ) 2>/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1 getParameter exec.expectedStatus for core plugin file_exists(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1) filesize(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1) fopen(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1, r, 0) feof(Resource id #94) fgets(Resource id #94, 4096) feof(Resource id #94) fgets(Resource id #94, 4096) feof(Resource id #94) fclose(Resource id #94) unlink(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1) Regular Output: Error Output: sh: /usr/local/bin/convert/identify: Not a directory Status: 126 (expected 0) file_exists(/usr/local/bin/convert/gm) tempnam(/home/cpkugcig/gallery2_g2data/tmp/, imgk_) realpath(/usr/local/bin/convert/convert) realpath(/home/cpkugcig) realpath(/usr/lib/php) realpath(/usr/local/lib/php) realpath(/tmp) Executing: ( "/usr/local/bin/convert/convert" "-size" "200x200" "-geometry" "200x200" "/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.gif" "/home/cpkugcig/gallery2_g2data/tmp/imgk_9M2DOo" ) 2>/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL getParameter exec.expectedStatus for core plugin file_exists(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL) filesize(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL) fopen(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL, r, 0) feof(Resource id #96) fgets(Resource id #96, 4096) feof(Resource id #96) fgets(Resource id #96, 4096) feof(Resource id #96) fclose(Resource id #96) unlink(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL) Regular Output: Error Output: sh: /usr/local/bin/convert/convert: Not a directory Status: 126 (expected 0) unlink(/home/cpkugcig/gallery2_g2data/tmp/imgk_9M2DOo) file_exists(/usr/local/bin/convert/gm) file_exists(/usr/local/bin/convert/combine) file_exists(/usr/local/bin/convert/composite) file_exists(/usr/local/bin/convert/gm) tempnam(/home/cpkugcig/gallery2_g2data/tmp/, imgk_) Executing: ( "/usr/local/bin/convert/composite" "-geometry" "+0+0" "/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.jpg" "/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.gif" "/home/cpkugcig/gallery2_g2data/tmp/imgk_CpS998" ) 2>/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw getParameter exec.expectedStatus for core plugin file_exists(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw) filesize(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw) fopen(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw, r, 0) feof(Resource id #98) fgets(Resource id #98, 4096) feof(Resource id #98) fgets(Resource id #98, 4096) feof(Resource id #98) fclose(Resource id #98) unlink(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw) Regular Output: Error Output: sh: /usr/local/bin/convert/composite: Not a directory Status: 126 (expected 0) file_exists(/home/cpkugcig/gallery2_g2data/tmp/imgk_CpS998) unlink(/home/cpkugcig/gallery2_g2data/tmp/imgk_CpS998) chdir(/home/cpkugcig/public_html/gallery2) Edited November 8, 2005 by Oudie Quote
Oudie Posted November 8, 2005 Author Posted November 8, 2005 I fix it, the path is /usr/local/bin/, don't add convert:) Quote
stevevan Posted November 8, 2005 Posted November 8, 2005 Welcome to the forums! Glad to hear you got it working. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.