Why do I get: Sbox error file not world executable?
Applies to: Grid System
All cgi scripts (except scripts ending in accepted PHP extensions) need world executable file permissions in order to run. If the permissions on the file are wrong, then Sbox will refuse to execute it and give you an error message like:
Sbox Error /www/vhosts/e/example.com/htdocs/www/cgi-bin/af.cgi not world executable
where "/www/vhosts/e/example.com" is the true path to your home directory.
To fix this at a shell prompt or command-line ftp prompt, telnet/ssh or ftp to the server, which will put you in your home directory once you are logged in. Then type this at the command prompt:
chmod o+x htdocs/www/cgi-bin/af.cgi
where "htdocs/www/cgi-bin/af.cgi" is the relative path from your home directory to the cgi script that is causing the Sbox error.
Many graphical ftp programs have a point and click way to change permissions on a file as well.
When permissions are set correctly, the last symbol in the permission column (1st column) of a detailed file listing will be an "x". For example, if your formmail.pl cgi script is giving you this error, you need to change the permissions so that it looks like this:
|-rw-r--r-x||1||yourusername||yourusername||59734||Jan 30 2001||formmail.pl|
For more information about unix file permissions and chmod, check out these links:
13867/0%Last update: 2011-12-21 16:36
Author: FAQ Admin
You can comment this FAQ