![]() |
|
Customer Support
Why does Sbox say "no such file or directory" but the
files are there?
Sbox may sometimes give you an error that your script filename does not exist. If you know that it does exist then the problem is actually that the code inside your script references another file that does not exist - probably because you gave the the wrong filename or wrong path to the file. One thing to check if all of your PHP scripts are showing this error is your account's /sitebin/php symlink. If it does not exist or is not pointing to a valid php executable in /usr/local/bin, then this error will occur. See this FAQ for more information.
If you are trying to invoke another program in the code, make sure you are specifying the correct path to that program. The "which" command can show you the correct path to other commands and programs:
which perlwill return
/usr/bin/perlIf you cannot get a shell prompt, you can also browse your directories with ftp to get the correct path to the commands that you want your script to execute.
If you are trying to reference your own files in your script, make sure that you have the correct path to your files.
If all these things are correct and you still get this error, did you destroy some files in your home directory? Do you have a /bin, /dev, /etc, /lib, /logs, /tmp, /usr, and /var directories in there? If you did destroy required system files, you will need to contact us to restore them.
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.
What Perl modules are installed?
Do you offer CGI? What scripts can I install?
I can't get the python socket module to work?
Why do I get: Sbox error file is world writable?
What is the path to perl or some other program?
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 exec of [some script] failed (Exec format error)?
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 |

