Home
 

Customer Support

Search for keywords:

Browse by category:

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 perl
will return
/usr/bin/perl
If 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.

User-Contributed Notes

add a note
06-May-2003 01:32
This can also happen if your homedirectory is not mounted on one of the
webservers. 

If you think this is what is happening to you, you'll need to copy the
entire Sbox error message (including the server hostname at the end of
the error) and report it to the support department.

04-Jun-2003 18:02
if you have 2 VirtualDocumentRoot settings on the same IP, this could
happen.

30-Jun-2003 11:21
You may have destroyed your home directory through your FTP program (or
shell prompt) by deleting /bin, /lib /dev/ or other essential
environmental files

add a note

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


Tiny Modwest Logo         Copyright 2000-2008 by Modwest, Inc.          About Us    |    Blog    |    Jobs    |    Web Design    |    Contact Us