[SOLVED] imagemagick path is not accepted On Windows2003..

roxen

Joined: 2005-02-11
Posts: 8
Posted: Fri, 2005-02-11 07:35

Hi!
I have problem with all my path I have to configure by my self.
When I try to type in path to my ImageMagick = imagemagick path is not accepted or something.
Realpath= f:\gallery\ImageMagick\ and I tried this to and \gallery\imagemagick and only \imagemagick\ and I have tried /gallery/imagemagick/ then system says "wrong path" and add "\" backslash after my path, so I supose I have to use "\" backslash?
and I tried \f\gallery\imagemagick\ I think I have tried all ways?
And I tried to set path to winzip and upload path and that are the same!
I use Windows2003 server and IIS6 or 7(I think) and PHP ver5.

Somebody has a clue?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-02-11 16:24

"not accepted or something".. can you be more specific?

 
roxen

Joined: 2005-02-11
Posts: 8
Posted: Fri, 2005-02-11 19:19

If i type in "f:\gallery\imagemagick\" (Real Path) and I get this error:
"The path you entered doesn't contain valid ImageMagick binaries. Use the 'test' button to check where the error is. "
And first on the top I get error kod like this: "

Warning: exec() [function.exec]: Unable to fork [cmd /c " "F:\Gallery\ImageMagick\identify" "F:\Gallery\modules\imagemagick\classes\..\test\data\test.gif" 2> "F:\Gallery\g2data\tmp\g2d46D5.tmp" "] in F:\Gallery\modules\core\classes\GalleryPlatform\WinNtPlatform.class on line 106

Warning: exec() [function.exec]: Unable to fork [cmd /c " "F:\Gallery\ImageMagick\convert" "-size" "200x200" "-geometry" "200x200" "F:\Gallery\modules\imagemagick\classes\..\test\data\test.gif" "F:\Gallery\g2data\tmp\img46D6.tmp" 2> "F:\Gallery\g2data\tmp\g2d46D7.tmp" "] in F:\Gallery\modules\core\classes\GalleryPlatform\WinNtPlatform.class on line 106

Warning: exec() [function.exec]: Unable to fork [cmd /c " "F:\Gallery\ImageMagick\composite" "-geometry" "+0+0" "F:\Gallery\modules\imagemagick\classes\..\test\data\test.jpg" "F:\Gallery\modules\imagemagick\classes\..\test\data\test.gif" "F:\Gallery\g2data\tmp\img46D8.tmp" 2> "F:\Gallery\g2data\tmp\g2d46D9.tmp" "] in F:\Gallery\modules\core\classes\GalleryPlatform\WinNtPlatform.class on line 106

And same if I type in "\gallery\imagemagick\ but if I type in "\f\gallery\imagemagick\ i get no error on the top but this error code:

"The path you entered isn't a valid path." And If I puch "Test Button" I get this error : "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:
 
 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-02-11 20:15

you're not entering the path incorrectly.. "unable to fork" is your error. sorry, no time now to help, but maybe a forum search for that error msg will turn up something.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-02-11 20:36

Usually an unable to fork error, stems from the NETWORK SERVIE not being able (lacking permissions) to run cmd.exe. You will need to give the service and iusr_<machinename> account execute permissions on it. Also, you will probably have to authorize cmd.exe as an app in IIS6

 
roxen

Joined: 2005-02-11
Posts: 8
Posted: Fri, 2005-02-11 21:25

Thanks for your tips!
I found on forum that console command on IIS-server "CACLS %COMSPEC% /E /G %COMPUTERNAME%\IUSR_%COMPUTERNAME%:R" but that not worked on my Win2003 server, but I found out how! I type like this= "CACLS %COMSPEC% /E /G IUSR_SERVER1:R" and now I Can add path correcly!

Thanks for you time!

Best Regard

Roxen

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-02-11 22:10

roxen, great!! Glad to be able to help.

 
jcdisciple
jcdisciple's picture

Joined: 2008-08-21
Posts: 9
Posted: Thu, 2008-08-21 20:30

Run a check on phpinfo and it will give you the PATH to Imagemagick under the Environment section.

On my remotely hosted windows IIS server the path was C:\Program files\Imagemagick\

However, today was my first attempt at trying to setup 2.2.5 on that server and I get all the way to Configuration Step 4, which gives me an error, which I can assume is based on Setup not finding the PATH to Imagemagick correctly (Step 1 does see it installed on the server-green light), and I am NOT given an option to enter it manually at any of the setup Steps.

For my setup log, view my earlier post here http://gallery.menalto.com/node/53267#comment-283430