[Solved]: install failure: can't use imagemagick [Solved]: install failure: can't use imagemagick
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: install failure: can't use imagemagick

Started by rebelinababylon, February 26, 2004, 05:26:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rebelinababylon

I'm trying to set up CPG 1.2 locally on a Win98SE machine.  I got Apache, PHP4 and MySQL all working fine, even a PHPBB-forum.  

I installed and tested ImageMagick.  When trying to run the install.php script, I get this:

Warning: getimagesize(albums/userpics/im.gif): failed to open stream: No such file or directory in c:\program files\apache group\apache\htdocs\gallery\cpg1.2.1_standalone\install.php on line 87

Warning: unlink(albums/userpics/im.gif): No such file or directory in c:\program files\apache group\apache\htdocs\gallery\cpg1.2.1_standalone\install.php on line 88

The installer found the ImageMagick 'convert' program in 'c:/ImageMagick/', however it can't be executed by the script.


How can I solve this?

Joachim Müller

so, you're using the famous Server-OS "Windows98" :wink: ?
OK, read the documentation that comes with ImageMagick carefully, run the test script that comes with it. If you get it to run properly, look for help on the ImageMagick homepage. I'm not sure at all that ImageMagick is meant to run on a Win9x-platform (since it has a totally different infrastructure, compared to Windows NT and bigger).
Since you already have PHP (and performance can't be an issue on Win98), why don't you use GD, which already comes with the PHP for Windows package?

GauGau

rebelinababylon

Thanks GauGau.  

But where would I find GD then?  Where do I fill in in the "ImageMagick path"-box in the Coppermine-install screen? I have PHP4 installed under c:\PHP4 (duh!) but I don't have any file on my system called "GD" or anything.

I also downloaded the WinDLL-version of GD, but this does not seem to be the one needed to be used together with PHP.

PS: Don't laugh because I'm using Win98; i tried using Red Hat Linux first, but when installing the Apache Server I got such a strange error message even the guys at linuxquestions.org don't know what to make of it.  And yes, I am a newbie. :wink:

Joachim Müller

make sure you have read closely the faq, especially http://coppermine.sourceforge.net/faq.php?q=enableGD#enableGD
This board does not deal with server setup; it assumes you already have a server up-and-running and you're going to install coppermine on it.

GauGau

rebelinababylon

My server was up-and-running.  Apache, PHP, MySQL and all that.  I even had a postnuke site and a forum running locally.  

I located the php_gd2.dll file in c:\PHP4\extencions\ and uncommented the "extension=php_gd2.dll" line in php.ini

I restarted my system, and now my Apache server won't run anymore.  On http://localhost/ I now get a "server not found" message.  If I try jumpstarting PHP from a DOS-prompt, I get this:

PHP Warning:  Unknown(): Unable to load dynamic library './php_gd2.dll'

Do I need to move the php_gd2.dll file?  What happened?  I just followed the guidlines...  Or is Win98 to blame?

hyperion

Uncommenting the line is not enough.  You have to place a copy of the .dll file in the /system file, too. Apache will run again when you have changed the configuration correctly.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

rebelinababylon

Thanks for the tip! But my problem isn't solved yet.

I copied (not moved) php_gd2.dll from c:\PHP4 to c:\windows\system, rebooted, but nothing's changed.  http://localhost is still dead.

Do I need to make any adaptations to the Apache Configuration File httpd.conf?

hyperion

Sounds like you may have a syntax error.  Try overwriting with  a copy if the original php.ini to see if the server starts.  If it does, then you'll need to be more careful when uncommenting the line. (Also, you must not uncomment both GD1 and GD2.  You may only uncomment one.)
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

rebelinababylon

If I put the ";" back in front of the line that says "extension=php_gd2.dll" in the PHP.INI file, everything works fine again.  Deleting the ";" causes Apache to malfunction (no answer for http://localhost).

(There's no entry for GD1 in my PHP.INI file, only GD2)

Could it be that GD simply doesn't run on Win98? Is Coppermine Win98-compatible or am I just wasting time here with the wrong OS?

rebelinababylon

OK, I found out what the problem was:

in my PHP.INI-file, there was a line that said:

extension_dir = "./"

That's the default extension directory. But I put the DLL extension file in c:\windows\system, so the line had to be changed to:

extension_dir = "c:\windows\system"

And it works! Coppermine is running fine on my Win98-server now,  thanks for all the tips, guys!

asdf

Im running 98se and abyss web server,
I had the same problem and now it works! Thanks for your help