forum.coppermine-gallery.net
Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: kclark0153 on November 02, 2003, 08:19:47 am
-
Trying to get Coppermine to install on a windows 2k server running IIS. I know that it has imagemagick installed in d:/imagemagick/ but I keep getting an error that I can't find it or I do not have access. I don't have access control to the server (only a control panel).
Windows is not my OS of choice (I'm trying to set this up for a friend) Tech support has been trying to help but has had no luck so fat.
Do I need special access to the imagemagick directory? Does the directory it's self need any special permissions under windows.
Thanks in advance (please let me know if you need more info)
-
Setting up ImageMagick on Windows can be quite complicated. Try talking your friend into using GD (comes with PHP distro).
Please understand that this board doesn't deal with server setup in detail, so there's only very limited support in it. Try to search for Image Magick (try different spelling) both on this board and the old board (http://coppermine.sourceforge.net/oldboard/). Try setting up IM in the default path on c:\. Also look for a little testing script that has been posted by hyperion the other day that basically tests if IM is up and working correctly before you try to install coppermine.
GauGau
-
kclark0153,
When do you get the error message? Also, try leaving the config path to IM blank. This works on servers where IM runs command line programs directly from the command prompt without a file path.
-Hyperion
-
Thanks for the quick response. I can see now the advatages of running unix servers.
I do get an error message during install.
The installer can not find the 'D:/ImageMagick/ directory you have specified for ImageMagick or it does not have permission to access it. Check that your typing is correct and that you have access to the specified directory.
Windows isn't case sensitive is it? d:/imagemagick == D:/ImageMagick/ ?
-
Nothing wrong with windows servers and IIS, you just have to know the basics, just like in Unix. :P
I am using ImagMagick and it just works fine.
install it in a directory where the IUSR account (the account IIS is using for anonymous access) has read access. thats it !!
If you use W2003 just be shure to allow CMD.exe as an extention (just like PHP).
and use the UNIX way of accessing files ie d:/ImageMagick/ (forwardslash)
in Coppermine.
-
Ron,
Thanks for the response. I figured it was a permission problem. I forwarded your response to my hosting company.
I did get coppermine to install.
I get this error now.
Cmd line :
d:/imagemagick/convert -quality 80 -antialias -geometry 133x100 "D:\webspace\BottomLine\NORNET\nissanoffroad.net\www\image_gallery\albums\userpics\10001\IMG_0765.JPG" "D:\webspace\BottomLine\NORNET\nissanoffroad.net\www\image_gallery\albums\userpics\10001\thumb_IMG_0765.JPG"
The convert program said:
Access is denied.
So this seems encouraging. I know my permissions are right on the folders involved (I asked tech help to set them) so it must be a problem is imagemagick access.
I also can't find the IM test script, but it is earlier and I haven't had my first cup of coffee yet.
Thanks
-
I tried leaving the path blank and I get a different error message.
Cmd line :
convert -quality 80 -antialias -geometry 133x100 "D:\webspace\BottomLine\NORNET\nissanoffroad.net\www\image_gallery\albums\userpics\10001\IMG_0765.JPG" "D:\webspace\BottomLine\NORNET\nissanoffroad.net\www\image_gallery\albums\userpics\10001\thumb_IMG_0765.JPG"
The convert program said:
Invalid Parameter - 80
Any ideas?
Thanks as always
-
Do you have Write permission to your USERPIC directory.
-
According to the hosting company, IUSR has write access to this folder. Boy this is frustrating.
-
Got it to work. Had to use GD instead of ImageMagick. Thanks for everyones help.
-
Nothing wrong with windows servers and IIS, you just have to know the basics, just like in Unix. :P
I am using ImagMagick and it just works fine.
install it in a directory where the IUSR account (the account IIS is using for anonymous access) has read access. thats it !!
If you use W2003 just be shure to allow CMD.exe as an extention (just like PHP).
and use the UNIX way of accessing files ie d:/ImageMagick/ (forwardslash)
in Coppermine.
This post right here helped me with my ongoing problem! Thanks bro!
-
Name = Leo Walbeek
submit_by = yggie@yggie.nl
subject = ImageMagick works under windows
message = Just a TIP!
(I didn't know where to put it!)
If you have trouble getting IM to work under windows, try to copy the cmd.exe to the PHP directory. For me it worked!
-
Name = Leo Walbeek
submit_by = yggie@yggie.nl
subject = ImageMagick works under windows
message = Just a TIP!
(I didn't know where to put it!)
If you have trouble getting IM to work under windows, try to copy the cmd.exe to the PHP directory. For me it worked!
This shouldn't be necessary if the IUSR account has RX rights on the CMD.exe that is in system32 directory.
But if using IIS6 (W2003) than you should also allow cmd.exe as an IIS extention.
-
Okay, I've got coppermine running, but when I go to upload a photo to my
> gallery, I get the following error message:
>
> The picture 'albums/userpics/Polter000.JPG' can't be inserted in the album
>
> Error executing ImageMagick - Return value: 127
>
>
> http://www.heathermicheleorourke.com/coppermine/db_input.php
TELL ME WHAT TO DO!
HELP ME PLEASE!!! REPLY ASAP!
THANKS!
-
Please supply more details.
what version of webserver are you running on.
IIS, Appache ??
What operating system ?
Ron.
-
...and do a board search on "Return value: 127", this has been already answered a million times...
GauGau
-
If you installed imagemagick in a directory with a space in the name (ie Program Files) reinstall it in a directory without a space this may relieve you of days of frustration....
-
I am also running Windows server and was able to finally get Coppermine to work. I have the following configurations:
Windows 2000
IIS 5
ImageMagick installed at E:\ImageMagick
Here are the problems I had to overcome. Following the instructions helped on item #1. :^)
1) I had a * in my password that was not allowed. Only characters and numbers.
2) Second, I was trying to use my SU account that was in MySQL for access permissions to write to the database. This is wrong, you must use the user account and password that is specified in your config.php file.
3) I tried using E:\ImageMagick and E:/ImageMagick without success so I left the entry blank for the time being. This allowed me to at least get Coppermine up and running.
It may be premature to say I have coppermine up and running as far as my website is concerned but I felt it was information that might help someone else get started.
-
OK. I got it working now on Windows 2000 with IIS.
Ron was correct, the IUSR_computername needed at least read and execute permissions to cmd.exe. Once I fixed this it started working fine.
Thanks Ron!
-
On another install I was able to get ImageMagick to work by putting a "/" character at the end: E:/ImageMagick/
-
Name = Leo Walbeek
submit_by = yggie@yggie.nl
subject = ImageMagick works under windows
message = Just a TIP!
(I didn't know where to put it!)
If you have trouble getting IM to work under windows, try to copy the cmd.exe to the PHP directory. For me it worked!
this worked for me too, been messing with permissions for a whole day now with no luck till i tried that, thx for the tip
-
One of my programmer has suggested the following hack to make Image Magick work on Windows + Apache even if IM is installed in c:\program files etc
in picmgmt.inc.php put
/*
* Hack for working with ImageMagick on WIndows even if IM is installed in C:\Program Files.
* By Aditya Mooley <aditya@sanisoft.com>
*/
if (eregi("win",$_ENV['OS'])) {
$cmd = "\"".str_replace("\\","/", $CONFIG['impath'])."convert\" -quality {$CONFIG['jpeg_qual']} {$CONFIG['im_options']} -geometry {$destWidth}x{$destHeight} ".str_replace("\\","/" ,$src_file )." ".str_replace("\\","/" ,$im_dest_file );
exec ("\"$cmd\"", $output, $retval);
} else {
$cmd = "{$CONFIG['impath']}convert -quality {$CONFIG['jpeg_qual']} {$CONFIG['im_options']} -geometry {$destWidth}x{$destHeight} $src_file $im_dest_file";
exec ($cmd, $output, $retval);
}
instead of just
$cmd = "{$CONFIG['impath']}convert -quality {$CONFIG['jpeg_qual']} {$CONFIG['im_options']} -geometry {$destWidth}x{$destHeight} $src_file $im_dest_file";
exec ($cmd, $output, $retval);
Can someone test this claim?
-
If you use W2003 just be shure to allow CMD.exe as an extention (just like PHP).
Sorry for being a n00b
I tried the search etc.
But how do I do this? I know where, since I manually added the php.exe associated with .php but what extension should I use to associate with cmd.exe?
thanx in advance
-
what he said ^^ and how do i allow read/write with IM?
-
I'd like to know that, too, please.