 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
July 1st, 2004, 09:31 AM
|
#1 (permalink)
| | Registered User
Join Date: Jul 2004
Posts: 12
| Installing PhotoPost on IIS6 with ImageMagick
Hi There. I'm installing PhotoPost on behalf of a client who has purchased it recently. I am trying to install PhotoPost on IIS6 machine (2003 server). Using ImageMagick and PHP4.3+. When uploading files, this is the error message I'm getting: Error creating thumbnail! Error code: -1
Command:
"c:/progra~1/ImageMagick-6.0.2-Q8/mogrify.exe" -size 100x75 -quality 70 -geometry 100x75 C:/www/galleries.photographers.co.uk/wwwroot/data/2/11-thumb.jpg
I have ensured that IUSER has full permissions on the folder and running out of solutions. Any ideas would be appreciated.
|
| |
July 1st, 2004, 09:33 AM
|
#2 (permalink)
| | Registered User
Join Date: Jul 2004
Posts: 12
|
Ah. Forgot to add. I have also run mogrify through command prompt and it all works fine. E.g, managed to create a thumbnail etc.
I am also running ISAPI version of PHP after someone suggested that the CGI version is not very good at forking.
|
| |
July 1st, 2004, 09:36 AM
|
#3 (permalink)
| | Guest | Quote: |
Make sure you have set permissions on cmd.exe and make sure the IWAM and IUSER accounts have access to your web install. ImageMagick can be tough on IIS I have spent a few days on some getting it to work. I have never had one yet I could not install but it is a pain to say the least.
| So sayeth Chuck
| |
| |
July 1st, 2004, 09:40 AM
|
#4 (permalink)
| | Registered User
Join Date: Jul 2004
Posts: 12
|
Cheers for the quick reply donb..
I have given IUSER and IWAM full control over the root of the website.
Not clear about your reference to cmd.exe .. You mean to give IWAM execute permissions over IWAM?
|
| |
July 1st, 2004, 09:56 AM
|
#5 (permalink)
| | Guest |
IWAM/IUSR needs to be able to run cmd.exe
| |
| |
July 1st, 2004, 10:14 AM
|
#6 (permalink)
| | Registered User
Join Date: Jul 2004
Posts: 12
|
By that I assume give IWAM and IUSER full permissions on c:\windows\system32\cmd.exe file?
If so, I have done it but still getting the same error message.
|
| |
July 1st, 2004, 10:19 AM
|
#7 (permalink)
| | Guest |
And they have permission to execute mogrify.exe as well?
| |
| |
July 1st, 2004, 10:19 AM
|
#8 (permalink)
| | Registered User
Join Date: Jul 2004
Posts: 12
|
Ah.. Will just try now |
| |
July 1st, 2004, 10:22 AM
|
#9 (permalink)
| | Registered User
Join Date: Jul 2004
Posts: 12
|
Hmm.. Just tried it but the error code has switched from -1 to 1:
Error creating thumbnail! Error code: 1
Command:
"c:/progra~1/ImageMagick-6.0.2-Q8/mogrify.exe" -size 100x75 -quality 70 -geometry 100x75 C:/www/galleries.photographers.co.uk/wwwroot/data/2/11-thumb.jpg
|
| |
July 1st, 2004, 10:35 AM
|
#10 (permalink)
| | Guest |
Another thing which might help, move your IM to c:\im instead of c:\program files\blah blah...
The ~ thing will often kill it.
| |
| |
July 2nd, 2004, 03:36 AM
|
#11 (permalink)
| | Registered User
Join Date: Jul 2004
Posts: 12
|
Still no joy chaps.. Error creating thumbnail! Error code: 1
Command:
"c:/im/mogrify.exe" -size 100x75 -quality 70 -geometry 100x75 C:/www/galleries.photographers.co.uk/wwwroot/data/2/11-thumb.jpg
Can anyone from PhotoPost enlighten us as to what Error Code 1 is all about please?
|
| |
July 2nd, 2004, 09:12 AM
|
#12 (permalink)
| | Registered User
Join Date: Jul 2004
Posts: 12
| Finally!
Reading through the forums, I found this little gem: Quote: |
Originally Posted by Tpol I have a friend of mine that using Win2K and the pathīs has spaces and no problem.
If anyone is having problems with Imagemagick that got error when creating thumbnails the solution is very simple:
In image.inc.php look for fs_exec command.
REplace ALL fs_exec commands to SHELL_EXEC, EXCEPT the FIRST command !!!!
That is all and very simple. I think itīs because the Old versions of PHP.
But works fine in all versions !!!
have fun !!!
Tpol |
Someone please put this somewhere more obvious to find, E.G., The Incredibly Sparse Instructions!!!!!!
|
| |
July 2nd, 2004, 12:56 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Error Code 1 is usually no permission to run
|
| |
March 20th, 2006, 02:38 PM
|
#14 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
I've re-installed the operating system on my webserver along with PHP, mySQL and ImageMagick. I could not get PhotoPost to work - I tried everything! Eventually I came across this post and implemented this:
In image.inc.php look for fs_exec command - replace ALL fs_exec commands to SHELL_EXEC, EXCEPT the FIRST command
and now PhotoPost works but all the thumbnails aren't really thumbnails - they're the same size as the photos I've uploaded. My 'Thumbnail image max width and height in pixels' is set to 100 - what do I need to do to correct this?
Last edited by criscokid; March 20th, 2006 at 02:42 PM.
|
| |
May 24th, 2006, 02:20 PM
|
#15 (permalink)
| | Junior Member Verified Customer
Join Date: May 2006
Posts: 7
|
I'm having the exact same problem criscokid is.
Here's what I've done so far...
Verify permissions for IUSER and IWAM for data, uploads directories, cmd.exe, and mogrify.exe
Remove +profile \"*\" twice and set the OS to NT in image-inc.php.
Verified the path to mogrify.exe
Does anyone else have any ideas about how to solve this issue?
Thanks in advance!
Last edited by Matt Gordon; May 24th, 2006 at 03:36 PM.
|
| |
May 24th, 2006, 04:24 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,654
|
Your data and uploads directories have those how about everyone and guest are they set to READ WRITE AND EXECUTE. Sometimes getting mogrify to work on windows is not possible and users alot of times just give up and go to GD2
|
| |
June 1st, 2006, 03:44 PM
|
#17 (permalink)
| | Junior Member Verified Customer
Join Date: May 2006
Posts: 7
|
I'm still having the problem of the script not creating thumbnails.
I need to work with GIF's, so GD2 isn't an option.
I have the thumbnail image size set to either 100 or 150 (I've tried both).
It does create a thumbs folder in the data directory and places an image...
for example, /data/520/thumbs/picture.jpg
...but it's not thumbnail-sized.
Interestingly, when I click on the link under the picture to tag it as the index thumb, it does create the thumb and puts it on the index page. But on the member gallery pages and category gallery pages, all pictures are full-size.
So it *can* create the thumb, but the app just isn't doing it on its own when it's supposed to.
|
| |
June 1st, 2006, 03:55 PM
|
#18 (permalink)
| | Junior Member Verified Customer
Join Date: May 2006
Posts: 7
|
SOLVED!
Thank You DonB for this advice... Quote: |
Originally Posted by donb Another thing which might help, move your IM to c:\im instead of c:\program files\blah blah...
The ~ thing will often kill it. |
I didn't have the ~ thing, but moving the .exe into it's own directory exactly as DonB advised did the trick!
Thanks again!
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 12:07 AM. | |