[SOLVED] imagemagick/netpbm binaries problem

androidtopp

Joined: 2005-02-02
Posts: 11
Posted: Thu, 2005-02-03 14:54

I'm unable to configure imagemagick or netpbm. everything on my gallery works fine except for no thumbnails, which is kind of a deal breaker. My advanced debug shows an error similar to this for each imagemagick and netpbm binary:

file_exists(C:\Inetpub\wwwroot\public\ImageMagick-6.1.8-Q16\identify.exe)
Executing: cmd /c "
"C:\Inetpub\wwwroot\public\ImageMagick-6.1.8-Q16\identify"
"C:\Inetpub\wwwroot\public\gallery2\modules\imagemagick\classes\..\test\data\test.gif"
2> "D:\tmp\g2d6F.tmp" "
file_exists(D:\tmp\g2d6F.tmp)
filesize(D:\tmp\g2d6F.tmp)
unlink(D:\tmp\g2d6F.tmp)
Regular Output:
Error Output:
Status: -1 (expected 0)

most helpfully, every regular and error output line is blank. has anyone had success with making this work on IIS6? as i understand it, it's not technically supported on IIS6, but i'm trying to stick with a single platform.i've even gone to the extent of granting "everyone" full control privileges on these binaries, so i don't think it's a permissions error.

Thanks in advance,
Andrew
<TYPE YOUR MESSAGE HERE, ENTER SYSTEM DETAILS BELOW>
<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----

Gallery URL (optional): http://www.atopp.com/gallery2/main.php
Gallery version:Gallery 2 Alpha, Feb 1st nightly build
Webserver (with version): IIS6
Datatabase (with version): mySQL 4.1.9
PHP version (eg 4.2.1): 5.0.3
phpinfo URL (optional): http://www.atopp.com/phptest.php
Graphics Toolkit(s): imagemagick 6.1.8-Q16, netpbm 1.4.pl2, latest jhead
Operating system: Windows Server 2003
Web browser/version: IE 6 SP2, Opera 7.5, Opera 8 Beta

 
androidtopp

Joined: 2005-02-02
Posts: 11
Posted: Thu, 2005-02-03 14:57

whoops. should have been more specific. when i point gallery 2 to the directory containing the binaries, i get errors like the following for every file it tries to find (the following are the results for netmagick):

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:

thanks,
andrew

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2005-02-03 19:56

Have you authorized cmd.exe for use as an application in IIS6, and given the Network Service proper permissions to it?

 
androidtopp

Joined: 2005-02-02
Posts: 11
Posted: Thu, 2005-02-03 22:16

sigh...that did that trick. i can't thank you enough for fixing what was a simple (and obvious) problem. for anyone who cares, grant your iusr_servername account execute privileges on cmd.exe.

thanks a million!
andrew

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2005-02-03 22:59

androidtopp, in IIS6? Hm, I was sure you needed to give the Network Service access. Oh well, it's not like it's the first time I'm wrong. :-)