I just moved my site from one server to another and on the old server, I had no problems with ImageMagick, but now my new host won't help me with my problems - I just can't get ImageMagick to work.
I tried everything listed in this thread (except changing the permissions of ImageMagick):
hereAnd couldn't get it working - I'm on a standard redhat installation and both convert and mogrify are in /usr/bin, but they don't show up in the check config.
hi Blake.
Quote:
And couldn't get it working - I'm on a standard redhat installation and both convert and mogrify are in /usr/bin, but they don't show up in the check config.
Is it /usr/bin ?
The path of ImageMagick's binary is /usr/X11R6/bin in standard redhat installation.
At first, you should try "which" command.
Here's the results of:
<?php
system("which mogrify");
?>
<?php
system("which convert");
?>
/usr/bin/mogrify /usr/bin/convert
http://sd-6.com/test.php
Quote:
Is it /usr/bin ?
The path of ImageMagick's binary is /usr/X11R6/bin in standard redhat installation.
At first, you should try "which" command.
I tried both /usr/bin, /usr/bin/conver, /usr/bin/mogrify, and /usr/X11R6/bin, but all without any luck. My host is still insisting it's a standard installation and ImageMagick is installed.
hi Blake.
There is no problem that ImageMagick is installed in /usr/bin.
Try this code.
<?php
system("/usr/bin/convert --help");
var_dump( is_executable( "/usr/bin/convert" ) ) ;
system( "/bin/ls -al /usr/bin/convert" ) ;
?>
Tried that code and got some odd output - you can check it at
http://www.sd-6.com/test.php
I'm assuming the:
bool(false) -rwxr-xr-x 1 root root 61880 Jan 15 22:07 /usr/bin/convert
FALSE means it's not executable? So should I bring this up with my host?
My host said that they reinstalled ImageMagick in both /usr/bin and /usr/local/bin, but using both with MyAlbum doesn't work. I put the "is_executable" into a PHP file and both of them return bool(false). Any idea how to fix this?
It is not trouble of ImageMagick itself, I think.
Some setting of the hosting prevent php from executing some kind of system binary.
As I'm not an admin of the hosting, I don't know how to fix it.
You can claim the host with grounds on:
is_executable() returns false
convert can't be exuecuted from php
Perhaps their skill is little poor.