PDA

View Full Version : Another Imagemagick/GD problem thread


jackley
25th of October 2004 (Mon), 12:25
Ok, I'm a new user with a fresh install of 1.5rc4 and I can't get any of the graphics modules to work.

I've installed Imagemagick on the server (Win 2003) and tried any number of paths and I always get the couldn't fork error. I tried coping the cmd.exe to the php directory and the gallery dir and I get the same error.

GD2 also doesn't work but that one gives me this error. "Unable to open 'UPLOAD/test/ee_result_0129a222fe.jpg' for writing in ..."
The thing that really confuses me is I'm using GD2 on the same website/server with some different software, so it's not a server level thing.
It just seems like there is a disconnect between EE and my server but I have no idea where to look.

I love this software and can't wait to get it up and running, its killing me having to wait and try and trouble shoot something I'm not to knowledgeable about.

Thanks.
James

Pekka
25th of October 2004 (Mon), 14:10
I recall reading something about Win2003 that only administrator can run programs with PHP. If your folder permissions are all 777 perhaps the problem is in user permissions.

Yes, there are comments about that in http://www.php.net/manual/en/ref.exec.php

jackley
25th of October 2004 (Mon), 15:38
Thanks Pekka, but, I tried that, and still nothing.

So, just to confirm.

The cmd.exe needs to be in c:/php/ ? or the /gallery/ ?

and the "Path to Imagemagick's 'convert' program is" should be "convert", "convert.exe", or c:/inetpub/..../convert (.exe)?

And any ideas about what could be wrong with GD2 since it is working on my other photo album (smartor in phpbb).

Thanks for your help, and once again, mighty fine piece of software you have here, I can't wait to start using it!.

james

Pekka
25th of October 2004 (Mon), 16:19
On my XP pro I have Imagemagick installed in

C:\Program Files\ImageMagick

and in environment variable path I have (among others)

c:\program files\imagemagick;

And I EE I just use "convert" and "composite" for IM paths. Works fine. If environment variable is NOT set, you'll have to use full paths (with .exe) inside quotes. In XP environment variables can be set via "System Properties/Advanced/Environment Variables".

About cmd.exe: never needed to put that anywhere. Do you have GCI installation of PHP or why would you need to set it up?

In my XP I have environment variable "ComSpec" pointing to "%SystemRoot%\system32\cmd.exe"



About GD2: EE uses standard GD functions which do not need any setting up (GD2 is preinstalled in latest PHP's). Do you see any error messages? Does Module Setup editor fail there?

jackley
25th of October 2004 (Mon), 17:54
Thanks Pekka, looks like its all working now.

It's hard to say what ended up fixing it, I tried so many things.

I think the main thing was I didn't have the path's set correctly for a number of things, ftp, thumbs, etc.

Thanks again, and now I'm off to start filling some webspace.


james