View Full Version : path of imagemagick still not valid !
jwoo
7th of June 2005 (Tue), 12:52
Hi,
I setup Imagemagick 6.2.3, i tested the binaries from a command prompt and they are working, all are located in /usr/local/bin and this path is in my PATH variable.
During installation, EE keep saying that the path is not valid and no image appears after i run the test,...could you tell me what could be wrong ?
Thanks for your help
PS : i also checked that safe mode is off
EricKonieczny
7th of June 2005 (Tue), 13:24
check the convert or "convert" string at the bottom of the graphics module page, or try different profile options
Search the forum for convert or profile
It may help it may not
Pekka
7th of June 2005 (Tue), 13:37
Hi,
I setup Imagemagick 6.2.3, i tested the binaries from a command prompt and they are working, all are located in /usr/local/bin and this path is in my PATH variable.
During installation, EE keep saying that the path is not valid and no image appears after i run the test,...could you tell me what could be wrong ?
Thanks for your help
PS : i also checked that safe mode is off
Just to make sure: /usr/local/bin is not enough for a path, you need to add /usr/local/bin/convert and /usr/local/bin/composite
After path is found, find the correct profile command using test.
jwoo
7th of June 2005 (Tue), 15:05
[QUOTE=EricKonieczny]check the convert or "convert" string at the bottom of the graphics module page, or try different profile options
I didn't understand what you mean by the convert string or different profile options but i'm gonna look for that in the forum
jwoo
7th of June 2005 (Tue), 15:07
you're right that's what i have : /usr/local/bin/convert and /usr/local/bin/composite but still doesn't find the path...
Pekka
7th of June 2005 (Tue), 15:53
if you have shell access you can use it to check that /usr/local/bin/convert exists and works.
Also, open in EE editor "server info" and there "display full php info" link. On that php info page: what do you see in two columns (under section "PHP core") next to :
disable_functions
and
safe_mode
jwoo
8th of June 2005 (Wed), 04:06
hi,
from a shell, i just type "convert -version" and i get "Version: ImageMagick 6.2.3 06/06/05 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC"
so it looks like it's installed and working (note: i compiled imagemagick from the latest version of sources)
My php info shows :
disable_functions no value
safe_mode Off
Thanks.
Pekka
8th of June 2005 (Wed), 07:40
Could be a permission problem. does your convert have permissions "-rwxr-xr-x" ?
If that is not the case save this simple php page as "test.php", upload it in your EE admin area and run it. There are 4 tests run, do you see any output from them?
Change variable $convertpath to match your path to convert program. Try first with plain "convert".
cut here -------------------------------------
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?php
error_reporting(255);
$convertpath = "convert";
print "<h2>test 1:</h2>";
exec($convertpath . " -version", $ret, $ret2);
print_r($ret);
print "<h2>test 2:</h2>";
passthru($convertpath . " -version", $ret);
print "<h2>test 3:</h2>";
exec($convertpath . " --version", $ret, $ret2);
print_r($ret);
print "<h2>test 4:</h2>";
passthru($convertpath . " --version", $ret);
?>
</body>
</html>
cut here -------------------------------------
jwoo
9th of June 2005 (Thu), 08:17
I think i've found the problem, it's because of some security features installed on my system (grsec), httpd is not allowed to run binaries like that, i have to set up some special permissions...
i think i'm gonna go back and use GD 2 instead.
Sorry for the waste of time.
I really appreciated your help and your dedication to this great piece of software.
Thanks.
Pekka
9th of June 2005 (Thu), 10:34
If you have some control over your server, why not set up IM binaries to a special folder and set it as PHP "safe_mode_exec_dir" - this way you can put PHP in safe mode and only programs it would be able to run with exec would be imagemagick.
jwoo
10th of June 2005 (Fri), 04:25
That is true. But i think i will still face problems with my "grsec" things (i have complete control over my server but i'm not familiar with this feature yet), anyway i set the whole thing with with GD2 and it works well (BTW i confirm that increasing the memory limit in php.ini avoid black pictures after import), is Imagemagick so much better than G2 that i should spend more time on that ?
Thanks.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.