I install 2 script, guestbook and Gallery2, they all need GD or Imagemagic, but the scipt can't call.<br />The support team tell me the GD had install already.<br />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.<br />Here are test link. One can show small size image, the other can't.<br /><a href="http://ht-111..net/meow/" target="_blank">Server112</a><br /><a href="http://meowstar.net/meow/" target="_blank">Work fine server</a><br /><br /><a href="http://scribe.chkkk.idv.tw/futaba_dev/futaba-mysql_051105.rar" target="_blank">The guestbook script download</a><br /><a href="http://gallery.menalto.com/" target="_blank">Gallery2 Download(2.0.1)</a><!--content-->
Welcome to the forums, Oudie! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /> <br /><br />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:<br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->'./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'<!--QuoteEnd--></div><!--QuoteEEnd-->The server hosting my account shows the following:<br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->'./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'<!--QuoteEnd--></div><!--QuoteEEnd--><br />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.<!--content-->
This is already being corrected<!--content-->
PHP is recompiled with GD.<!--content-->
It's work fine now, thank you<br />Now, how to call ImageMagick? The Gallery2 need ImageMagick path.<!--content-->
ImageMagick 6.2.5 installed on the server.<br />Path : /usr/local/bin/convert<!--content-->
It's says "TEST Fale"<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->ImageMagick binary test results <br />Binary Name Pass/Fail <br />identify Failed <br />Error messages: <br /><br />Problem executing binary: <br />identify Failed <br />Error messages: <br /><br />Problem executing binary: <br />convert Failed <br />Error messages: <br /><br />Problem executing binary: <br />composite Failed <br />Error messages: <br /><br />Problem executing binary:<!--QuoteEnd--></div><!--QuoteEEnd--><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Debug output (4 failed tests) - <br />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. <br /><br /> realpath(/usr/local/bin/convert/)<br />realpath(/home/cpkugcig)<br />realpath(/usr/lib/php)<br />realpath(/usr/local/lib/php)<br />realpath(/tmp)<br />Loading plugin imagemagick<br />imagemagick plugin successfully instantiated<br />Check the version of the imagemagick plugin<br />The version of the imagemagick plugin is ok<br />getcwd()<br />chdir(/home/cpkugcig/gallery2_g2data/tmp/)<br />file_exists(/usr/local/bin/convert/gm)<br />realpath(/usr/local/bin/convert/identify)<br />realpath(/home/cpkugcig)<br />realpath(/usr/lib/php)<br />realpath(/usr/local/lib/php)<br />realpath(/tmp)<br />Executing: ( "/usr/local/bin/convert/identify" <br />"/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.gif" )<br />2>/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1<br />getParameter exec.expectedStatus for core plugin<br />file_exists(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1)<br />filesize(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1)<br />fopen(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1, r, 0)<br />feof(Resource id #94)<br />fgets(Resource id #94, 4096)<br />feof(Resource id #94)<br />fgets(Resource id #94, 4096)<br />feof(Resource id #94)<br />fclose(Resource id #94)<br />unlink(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1)<br />Regular Output:<br />Error Output:<br />sh: /usr/local/bin/convert/identify: Not a directory<br />Status: 126 (expected 0)<br />file_exists(/usr/local/bin/convert/gm)<br />tempnam(/home/cpkugcig/gallery2_g2data/tmp/, imgk_)<br />realpath(/usr/local/bin/convert/convert)<br />realpath(/home/cpkugcig)<br />realpath(/usr/lib/php)<br />realpath(/usr/local/lib/php)<br />realpath(/tmp)<br />Executing: ( "/usr/local/bin/convert/convert" "-size" "200x200" <br />"-geometry" "200x200" <br />"/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.gif" <br />"/home/cpkugcig/gallery2_g2data/tmp/imgk_9M2DOo" )<br />2>/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL<br />getParameter exec.expectedStatus for core plugin<br />file_exists(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL)<br />filesize(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL)<br />fopen(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL, r, 0)<br />feof(Resource id #96)<br />fgets(Resource id #96, 4096)<br />feof(Resource id #96)<br />fgets(Resource id #96, 4096)<br />feof(Resource id #96)<br />fclose(Resource id #96)<br />unlink(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL)<br />Regular Output:<br />Error Output:<br />sh: /usr/local/bin/convert/convert: Not a directory<br />Status: 126 (expected 0)<br />unlink(/home/cpkugcig/gallery2_g2data/tmp/imgk_9M2DOo)<br />file_exists(/usr/local/bin/convert/gm)<br />file_exists(/usr/local/bin/convert/combine)<br />file_exists(/usr/local/bin/convert/composite)<br />file_exists(/usr/local/bin/convert/gm)<br />tempnam(/home/cpkugcig/gallery2_g2data/tmp/, imgk_)<br />Executing: ( "/usr/local/bin/convert/composite" "-geometry" "+0+0" <br />"/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.jpg" <br />"/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.gif" <br />"/home/cpkugcig/gallery2_g2data/tmp/imgk_CpS998" )<br />2>/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw<br />getParameter exec.expectedStatus for core plugin<br />file_exists(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw)<br />filesize(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw)<br />fopen(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw, r, 0)<br />feof(Resource id #98)<br />fgets(Resource id #98, 4096)<br />feof(Resource id #98)<br />fgets(Resource id #98, 4096)<br />feof(Resource id #98)<br />fclose(Resource id #98)<br />unlink(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw)<br />Regular Output:<br />Error Output:<br />sh: /usr/local/bin/convert/composite: Not a directory<br />Status: 126 (expected 0)<br />file_exists(/home/cpkugcig/gallery2_g2data/tmp/imgk_CpS998)<br />unlink(/home/cpkugcig/gallery2_g2data/tmp/imgk_CpS998)<br />chdir(/home/cpkugcig/public_html/gallery2)<!--QuoteEnd--></div><!--QuoteEEnd--><!--content-->
I fix it, the path is /usr/local/bin/, don't add convert<!--content-->
Welcome to the forums! Glad to hear you got it working. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><!--content-->
Welcome to the forum, Oudie. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Welcome to the forum, Oudie <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Welcome to the forums, Oudie<!--content-->
Welcome to the forums, Oudie! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /> <br /><br />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:<br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->'./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'<!--QuoteEnd--></div><!--QuoteEEnd-->The server hosting my account shows the following:<br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->'./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'<!--QuoteEnd--></div><!--QuoteEEnd--><br />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.<!--content-->
This is already being corrected<!--content-->
PHP is recompiled with GD.<!--content-->
It's work fine now, thank you<br />Now, how to call ImageMagick? The Gallery2 need ImageMagick path.<!--content-->
ImageMagick 6.2.5 installed on the server.<br />Path : /usr/local/bin/convert<!--content-->
It's says "TEST Fale"<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->ImageMagick binary test results <br />Binary Name Pass/Fail <br />identify Failed <br />Error messages: <br /><br />Problem executing binary: <br />identify Failed <br />Error messages: <br /><br />Problem executing binary: <br />convert Failed <br />Error messages: <br /><br />Problem executing binary: <br />composite Failed <br />Error messages: <br /><br />Problem executing binary:<!--QuoteEnd--></div><!--QuoteEEnd--><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Debug output (4 failed tests) - <br />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. <br /><br /> realpath(/usr/local/bin/convert/)<br />realpath(/home/cpkugcig)<br />realpath(/usr/lib/php)<br />realpath(/usr/local/lib/php)<br />realpath(/tmp)<br />Loading plugin imagemagick<br />imagemagick plugin successfully instantiated<br />Check the version of the imagemagick plugin<br />The version of the imagemagick plugin is ok<br />getcwd()<br />chdir(/home/cpkugcig/gallery2_g2data/tmp/)<br />file_exists(/usr/local/bin/convert/gm)<br />realpath(/usr/local/bin/convert/identify)<br />realpath(/home/cpkugcig)<br />realpath(/usr/lib/php)<br />realpath(/usr/local/lib/php)<br />realpath(/tmp)<br />Executing: ( "/usr/local/bin/convert/identify" <br />"/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.gif" )<br />2>/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1<br />getParameter exec.expectedStatus for core plugin<br />file_exists(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1)<br />filesize(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1)<br />fopen(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1, r, 0)<br />feof(Resource id #94)<br />fgets(Resource id #94, 4096)<br />feof(Resource id #94)<br />fgets(Resource id #94, 4096)<br />feof(Resource id #94)<br />fclose(Resource id #94)<br />unlink(/home/cpkugcig/gallery2_g2data/tmp/g2dbgMoyBE1)<br />Regular Output:<br />Error Output:<br />sh: /usr/local/bin/convert/identify: Not a directory<br />Status: 126 (expected 0)<br />file_exists(/usr/local/bin/convert/gm)<br />tempnam(/home/cpkugcig/gallery2_g2data/tmp/, imgk_)<br />realpath(/usr/local/bin/convert/convert)<br />realpath(/home/cpkugcig)<br />realpath(/usr/lib/php)<br />realpath(/usr/local/lib/php)<br />realpath(/tmp)<br />Executing: ( "/usr/local/bin/convert/convert" "-size" "200x200" <br />"-geometry" "200x200" <br />"/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.gif" <br />"/home/cpkugcig/gallery2_g2data/tmp/imgk_9M2DOo" )<br />2>/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL<br />getParameter exec.expectedStatus for core plugin<br />file_exists(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL)<br />filesize(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL)<br />fopen(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL, r, 0)<br />feof(Resource id #96)<br />fgets(Resource id #96, 4096)<br />feof(Resource id #96)<br />fgets(Resource id #96, 4096)<br />feof(Resource id #96)<br />fclose(Resource id #96)<br />unlink(/home/cpkugcig/gallery2_g2data/tmp/g2dbgGJFLYL)<br />Regular Output:<br />Error Output:<br />sh: /usr/local/bin/convert/convert: Not a directory<br />Status: 126 (expected 0)<br />unlink(/home/cpkugcig/gallery2_g2data/tmp/imgk_9M2DOo)<br />file_exists(/usr/local/bin/convert/gm)<br />file_exists(/usr/local/bin/convert/combine)<br />file_exists(/usr/local/bin/convert/composite)<br />file_exists(/usr/local/bin/convert/gm)<br />tempnam(/home/cpkugcig/gallery2_g2data/tmp/, imgk_)<br />Executing: ( "/usr/local/bin/convert/composite" "-geometry" "+0+0" <br />"/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.jpg" <br />"/home/cpkugcig/public_html/gallery2/modules/imagemagick/data/test.gif" <br />"/home/cpkugcig/gallery2_g2data/tmp/imgk_CpS998" )<br />2>/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw<br />getParameter exec.expectedStatus for core plugin<br />file_exists(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw)<br />filesize(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw)<br />fopen(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw, r, 0)<br />feof(Resource id #98)<br />fgets(Resource id #98, 4096)<br />feof(Resource id #98)<br />fgets(Resource id #98, 4096)<br />feof(Resource id #98)<br />fclose(Resource id #98)<br />unlink(/home/cpkugcig/gallery2_g2data/tmp/g2dbgLd6zlw)<br />Regular Output:<br />Error Output:<br />sh: /usr/local/bin/convert/composite: Not a directory<br />Status: 126 (expected 0)<br />file_exists(/home/cpkugcig/gallery2_g2data/tmp/imgk_CpS998)<br />unlink(/home/cpkugcig/gallery2_g2data/tmp/imgk_CpS998)<br />chdir(/home/cpkugcig/public_html/gallery2)<!--QuoteEnd--></div><!--QuoteEEnd--><!--content-->
I fix it, the path is /usr/local/bin/, don't add convert<!--content-->
Welcome to the forums! Glad to hear you got it working. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><!--content-->
Welcome to the forum, Oudie. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Welcome to the forum, Oudie <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Welcome to the forums, Oudie<!--content-->