Alpha 3 - Admin/Settings/Graphics submenu is not working

Balazs

Joined: 2009-03-07
Posts: 14
Posted: Wed, 2009-03-25 08:31

Hi!

Admin/Settings/Graphics submenu is not working.
Any ideas?
Best regards.
Balazs

[img]http://partyarcok.archi-host.hu/alpha3gallery1.JPG[/img]

in graphic.php 273 line:

273. "imagemagick" => dirname(exec("which convert")),
274. "graphicsmagick" => dirname(exec("which gm")));

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-03-25 13:56
Quote:
exec() has been disabled for security reasons

Ask you host to fix that.

FAQ: Does G2 work with Safe Mode PHP?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Balazs

Joined: 2009-03-07
Posts: 14
Posted: Wed, 2009-03-25 14:32

Hm?

The server admin is not so dumb to allow exec(). Executing files is very dangerous to the server. Please fix the problem, because the alpha 2 version didn't need this command.

Balazs

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-03-25 23:12

Then you can't use IM.. you will have to use GD as a toolkit and give up image rotation and other functionality.

My hosted servers are properly setup and allows exec() calls and it is not 'dangerous' to me or others on the server.
ImageMagick, NetPBM and ffmpeg are all separate binaries and the only reasonable way to use them is by using exec().

bharat wrote:
The inability to call exec() is an issue, surely. Yes, you can use GD2 instead of ImageMagick/NetPBM in some cases, but GD2 supports far less media types than ImageMagick/NetPBM so you're restricting yourself to the media types that it supports and the server must be compiled with JPEG, GIF and PNG support built-in just to have those basic types. But without exec, how are you going to make thumbnails out of movies? PHP sure doesn't have support for that so if you can't use ffmpeg, you're out of luck. The fact that we call exec() doesn't make our app any less secure.

So if your host will not allow exec() then you are stuck with using GD or find a new host.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team