escapeshellcmd()

Having trouble installing serendipity?
Post Reply
Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 6:59 pm
Contact:

escapeshellcmd()

Post by Xanthouos »

I was wondering if this error is an s9y problem or a server problem?

Code: Select all

Synchronizing the database with the image folder

Skipping file: .empty not readable.
Done (Synchronized 0 images).

Resizing


Warning: escapeshellcmd() has been disabled for security reasons in /home/butlers/public_html/blog/include/functions_images.inc.php on line 469
Unable to execute: " -antialias -resize '110x110>' '/home/butlers/public_html/blog/uploads/kenny_snow.jpg' '/home/butlers/public_html/blog/uploads/kenny_snow.Thumb.jpg'", error: , return var: 127

Warning: escapeshellcmd() has been disabled for security reasons in /home/butlers/public_html/blog/include/functions_images.inc.php on line 469
Unable to execute: " -antialias -resize '110x110>' '/home/butlers/public_html/blog/uploads/kenny.jpg' '/home/butlers/public_html/blog/uploads/kenny.Thumb.jpg'", error: , return var: 127
Done (resized 0 images).
If you can't be a missionary, you can support a missionary.
~~~~~~~~~~~~~~~~~~~~~
www.GetMepis.com
Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 6:59 pm
Contact:

Post by Xanthouos »

I just got this reply from my host:
Hello,

Functions like escapeshellcmd, shell_exec etc are disabled in the server for security reasons. These are done because these can be exploited for serious security breaches. You will have to make necessary changes in your script to avoid these commands.
Is there some work-around available? Or am I doomed to no thumbnails in my s9y? :?
If you can't be a missionary, you can support a missionary.
~~~~~~~~~~~~~~~~~~~~~
www.GetMepis.com
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

There isn't a real work around to get imagemagick to work without the administrator removing that restriction...

But you could try setting "Use ImageMagick" to "no" under the "Image Conversion Settings" (in the configuration menu). Serendipity will then try to use the gd extensions in php. They are fairly common extensions, so there is a good chance your provider will have then enabled, and it would allow you to use thumbnails of images.
Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 6:59 pm
Contact:

Post by Xanthouos »

Thanks mgroeninger, worked like a charm!


I just LOVE s9y, and it's wonderful community!!! 8)
If you can't be a missionary, you can support a missionary.
~~~~~~~~~~~~~~~~~~~~~
www.GetMepis.com
Post Reply