coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: xsivejeff on July 17, 2005, 07:57:08 AM

Title: disabled exec()
Post by: xsivejeff on July 17, 2005, 07:57:08 AM
On my host server...... exec() is disabled for security reasons.  Will Coppermine run like that?
The board I use..... bbBoard v2 uses image magick but it uses it as a perl module Image::Magick.
Title: Re: disabled exec()
Post by: Joachim Müller on July 17, 2005, 08:48:17 AM
With exec being disabled, you can use coppermine with GD (if you have it, most servers do support GD, as it comes with regular PHP distributions). Please refer to the FAQ (http://coppermine.sourceforge.net/faq.php) to find out.
Title: Re: disabled exec()
Post by: kegobeer on July 17, 2005, 02:46:52 PM
Ask your host if curl is enabled.  If so, there's a workaround already posted on our forum.  Search the forum for curl.
Title: Re: disabled exec()
Post by: Nibbler on July 17, 2005, 06:40:29 PM
exec() is used to run ImageMagick, it has nothing to do with disabled URL fopen. You can replace it in the code with passthru() if that is not also disabled. I think there are instructions for that somewhere.
Title: Re: disabled exec()
Post by: xsivejeff on July 17, 2005, 09:51:33 PM
Replaced exec() with passthru().  Now I get:

Warning: Wrong parameter count for passthru() in /home/xsivejef/public_html/fiatgallery/include/picmgmt.inc.php on line 162
Title: Re: disabled exec()
Post by: Nibbler on July 17, 2005, 09:55:34 PM
Yes, that's why I said to look for instructions as opposed to blindly changing bits of code.

http://forum.coppermine-gallery.net/index.php?topic=5287