![]() |
|
Customer Support
Why do I get: Sbox Error exec of [some script] failed (Exec format error)?
The reason for this error is most likely because you are running a CGI or PHP script with both 1) a file extension that is unrecognized by the kernel, and 2) without naming the interpreter at the top of the script (i.e. #!/path/to/interpreter).This can happen if you misname a PHP script with an extension typed in all capital letters like ".PHP". Since unix servers are case-sensitive, ".PHP" is not recognized as a valid PHP extension while ".php" is. To remedy the error, rename the file with a valid PHP extension like .php or .phtml. Alternatively, put #!/usr/local/bin/php by itself on the first line of the file. For more information on using abnormal file extensions, see this other FAQ
If the above error happens with a Perl script, make sure that the script filename ends in ".pl" or ".cgi" and has the path to Perl stated in the hash-bang (#!) interpreter statement on the 1st line.
A Python script should end in ".py" or ".cgi". A Ruby script should end in ".ry" or ".cgi".
All CGI scripts will require a hash-bang followed by the full path to the script interpreter on the first line of the script. All cgi script will also need to have executable file permissions such as chmod 755.
User-Contributed Notes |
|
| There are no user-contributed notes for this topic. |
Related Questions:
How do I use sendmail with perl?
How do I use cgi scripts?
My formmail.pl script from Matt's Script Archive doesn't work.
Why does Sbox say "no such file or directory" but the files are there?
What Perl modules are installed?
Do you offer CGI? What scripts can I install?
I can't get the python socket module to work?
What is the path to perl or some other program?
Why do I get: Sbox error file is world writable?
Sendmail does not work or does not accept my optional arguments.
Importing the Python cgi module doesn't work.
How do I use MySQL with Python?
What version of Python do you support and what modules are available?
Why do I get: Sbox error file not world executable?
Why do I get: Sbox error the directory containing [some script] is world writable?
Why do I get: Sbox Error exec of [some script] failed (Permission denied)
Why do I get: Sbox error: cannot run suid scripts
Why do I get: Sbox Error exec of [some script] failed (Resource temporarily unavailable)
Browse Categories:Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales |
