Hi,
I try to use imagemagick, but it gives me an error. And tells me to use gd, when i try to use gd 2 setting, it says that my webserver is not configured for gd2. I have gd2.dll enable in php.ini, and when I use this command php -m, it shows gd is active. I don't know why it is not working.
Can somebody help me.
Iam running windows 2003 server web edition. IIS 6.0, also running php 4 something.
http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#VersionGD
Post details, e.g. the actual error messages you get.
this is the error i get, when i try to install coppermine on my computer.
Warning: exec(): Unable to fork [d:/imagemagick626/convert images/coppermine_logo.png albums/userpics/im.gif] in c:\album\install.php on line 113
Warning: getimagesize(albums/userpics/im.gif): failed to open stream: No such file or directory in c:\album\install.php on line 114
Warning: unlink(albums/userpics/im.gif): No such file or directory in c:\album\install.php on line 115
Welcome to Coppermine installation
• • • ERROR • • •
The following errors were encountered and need to be corrected first:
The installer found the ImageMagick 'convert' program in 'd:/imagemagick626/', however it can't be executed by the script.
You may consider using GD instead of ImageMagick.
apply the needed permissions on the ImageMagick folder as suggested in the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#permissions_iis_windows) and the tutorial (http://coppermine-gallery.net/tutorial/permissions/iis.php). This is not a matter of coppermine setup though, but server setup. Review your idea of self-hosting.
Hi,
I got it to work,
thanks for your help ;)
instead of making a new thread, I figured I'd hijack this one, as it seems to be the same problem.
OS: fedora core 4
www: apache 2.2.2
php: 5.1.4 (compiled from source, with the --with-gd option)
mysql: 5.0.22
according to the phpinfo() script, I'm using the bundled gd library, proof of which is here: http://ats.dtdns.net/temp/test.php?action=php5
Now I've downloaded GD v2.0.33, but I assume I have to recompile php to use it? In any case, I get the following error from CPG after successfully uploading a jpeg and hitting "Continue":
"PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed"
everything on this system is using their default paths, and again, i've verified via phpinfo() that the GD library IS installed. Ideas anyone, short of recompiling php using the v2.0.33 GD lib?
Hmm... are you trying to work with jpgs? The GD list doesn't say it supports jpg.
Don't recompile PHP with GD support - use a package instead. If you must compile on your own, make sure to use the proper parameters (--with-gd is not enough).
transdance, you're right - I was uploading a jpeg, I didn't catch the lack of jpeg support.
Gaugau. what package do you suggest? Also, if I do decide to recompile, if --with-gd isn't enough, what else is there? is it --with-gd=/path/to/gd ?
thanks for you time and help guys :)
I suggest reviewing Fedora resources to find a matching package. I'm not familiar with Fedora's packet manager.
Either use the php-gd rpm or recompile following the instructions at php.net to include jpeg support. Note that you should use the verson of GD which is bundled with PHP if you recompile.