![]() |
|
Customer Support
Do you offer CGI? What scripts can I install?
You can install whatever scripts you like (short of trying to hack us). If you ran into something that you needed but that you don't have access to install, you can always discuss it with us to see if we'd add it or help solve the problem another way.Your cgi scripts should can be put in your cgi-bin directory located in /htdocs/www/cgi-bin. Since we have ExecCGI turned on, you are not required to put your cgi scripts there and can run them from anywhere under your DocumentRoot (usually /htdocs/www).
To a CGI script, and to you at a shell or ftp promt, the path to your home directory is: /
We use an Apache module version of the sbox wrapper on all cgi scripts. Sbox does 3 things:
1. It makes sure that when a script executes, it has the the user/group permissions of the owner of that script.
2. Before sbox runs a script, it will perform a chroot to your home directory (so "/www/vhosts/m/mydomain.com" becomes just "/" - the same as it is when you telnet or ssh into your account on the server). Sbox also adjusts any environment variables to match the new directory structure, such as REQUEST_URI and SCRIPT_NAME.
3. Sbox also imposes limits on the amount of memory, cpu, and disk space your script can use. These limits are:
Maximum CPU time: 2 minutes
Max size of a file you can create: 1 gigabyte
Max memory: 32 megabytes
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?
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 |

