Help required with Simplegal!

Associate
Joined
3 Sep 2003
Posts
1,699
Still having difficulty installing simplegal.

I have downloaded the latest version 3.2, installed it on my webhost, edited config.php domain, username and password, uploaded it all to my website after adding some images in a wildlife folder in albums.

However when I come to run cli.php I get this error:

Including config... http://brianinnesphotography.co.uk/simplegalScanning for albums... 1 album(s) found. Scanning album wildlife for images... 10 image(s) found. 3Stooges.jpg has no thumb, writing 3Stooges_thumb.jpg...
Warning: exec() has been disabled for security reasons in /home/brianinn/public_html/simplegal/cli.php on line 65
3Stooges.jpg has no sized image, writing 3Stooges_sized.jpg...
Warning: exec() has been disabled for security reasons in /home/brianinn/public_html/simplegal/cli.php on line 73
Finch2a.jpg has no thumb, writing Finch2a_thumb.jpg...
Warning: exec() has been disabled for security reasons in /home/brianinn/public_html/simplegal/cli.php on line 65
Finch2a.jpg has no sized image, writing Finch2a_sized.jpg...

Also, I seem to get a blank screen when I go to the main page, http://www.brianinnesphotography.co.uk/simplegal/index.php
no login for admin or anything?

What gives? The documentation doesn't seem to give any help on this! :(
 
Exec() has been disabled, that is a php function for sending a command to the command line. Such as ls, ping, traceroute, ifconfig, cd, or any number of other commands.

Now my guess is that Rob is using the exec() command to fork the php processing of the images out into multiple threads, this is because the image processing of each image is relatively long, and when you have a lot of them, running them in serial (one after the other) means the php code has the potential to run for too long meaning that the php processor will axe the code because php code runs with a time out so it doesn't spend to long processing, or keep looping over and over.

The long short of this is that if the exec has been disabled by your web host, its for security, they don't want mistakes or they don't want you to fork the php code, you can speak to their support department, but I imagine its not going to help.

Rob M may be able to help more TBH.

Fork - http://en.wikipedia.org/wiki/Fork_(operating_system)
Exec() - http://www.php.net/exec
Commands - http://www.ss64.com/bash/
PHP Command Line - http://uk.php.net/features.commandline
Serial - http://www.bitquabit.com/wp-content/uploads/2007/02/series_working.png
Parallel - http://www.bitquabit.com/wp-content/uploads/2007/02/parallel_working.png
 
Exec() has been disabled, that is a php function for sending a command to the command line. Such as ls, ping, traceroute, ifconfig, cd, or any number of other commands.

Now my guess is that Rob is using the exec() command to fork the php processing of the images out into multiple threads, this is because the image processing of each image is relatively long, and when you have a lot of them, running them in serial (one after the other) means the php code has the potential to run for too long meaning that the php processor will axe the code because php code runs with a time out so it doesn't spend to long processing, or keep looping over and over.

The long short of this is that if the exec has been disabled by your web host, its for security, they don't want mistakes or they don't want you to fork the php code, you can speak to their support department, but I imagine its not going to help.

Rob M may be able to help more TBH.

Fork - http://en.wikipedia.org/wiki/Fork_(operating_system)
Exec() - http://www.php.net/exec
Commands - http://www.ss64.com/bash/
PHP Command Line - http://uk.php.net/features.commandline
Serial - http://www.bitquabit.com/wp-content/uploads/2007/02/series_working.png
Parallel - http://www.bitquabit.com/wp-content/uploads/2007/02/parallel_working.png

Thanks for that! Looks like simplegal isn't going to be useable. Think I'll stick with my current lightbox2 based site, however I'll do some research to see if I can add my own php image upload script. :)
 
You have a rubbish host, not much you can do sorry! There's no security reason why you shouldn't be able to `exec`, provided they've been sensible and run your PHP scripts as your user (which I presume they haven't). By the sounds of it they don't display errors and don't have GD installed (hence the blank screen--it's not displaying the errors about at a guess GD not being installed).

You won't be able to resize images in PHP if you have neither GD nor the ability to call external programs like ImageMagick, which it sounds like you don't.
 
You have a rubbish host, not much you can do sorry! There's no security reason why you shouldn't be able to `exec`, provided they've been sensible and run your PHP scripts as your user (which I presume they haven't). By the sounds of it they don't display errors and don't have GD installed (hence the blank screen--it's not displaying the errors about at a guess GD not being installed).

You won't be able to resize images in PHP if you have neither GD nor the ability to call external programs like ImageMagick, which it sounds like you don't.
Or in other words, probably any script you use won't work on your host because they all use GD normally.
 
You have a rubbish host, not much you can do sorry! There's no security reason why you shouldn't be able to `exec`, provided they've been sensible and run your PHP scripts as your user (which I presume they haven't). By the sounds of it they don't display errors and don't have GD installed (hence the blank screen--it's not displaying the errors about at a guess GD not being installed).

You won't be able to resize images in PHP if you have neither GD nor the ability to call external programs like ImageMagick, which it sounds like you don't.


GD is installed according to phpinfo()

phpinfo also shows this:

disable_functions show_source, system, shell_exec, passthru, exec, popen, proc_open show_source, system, shell_exec, passthru, exec, popen, proc_open

Got a few months left of hosting so don't want to change servers yet. Thanks for the help anyway Rob!
 
Back
Top Bottom