Site Design
e-Commerce
Support
Hosting
About Us
Contact Us



 
 
CGI

What version of PERL are you running?
 
We are running PERL 5.6
What is the path to the PERL interpreter?
All perl files must start with "#!/usr/bin/perl" in the first line of the script.
What is the path for you mail program?
It's location is /usr/slib/sendmail.
What is the location of my home directory?
You can find the path to your home directory in the Account Management Control screen.
What transfer mode should I use when I FTP my files?
You must transfer CGI files using the ASCII transfer mode in your FTP program.
Where do I put my CGI files?
You should upload CGI files to your "cgi-bin" directory. Scripts outside of this directory will not work.
What permissions should I give my CGI files?
The permission of your CGI file should be set to 755 (-rwxr-xr-x) or 775 (-rwxrwxr-x). Changing the permissions of your CGI files can be done by either using an FTP program.
How do I call my CGI scripts?
To call your CGI scripts from the web use http://www.yourdomain.com/cgi-bin/filename.cgi
Can I run CGI scripts in all directories?
No, you can only run CGI scripts in the "cgi-bin" directory.
Can I have my CGI scripts auto-execute at a certain time? (cron job)
No, not at this time, but we plan to offer it next year 2005. Please don't ask for an update until 2005.
Can I get telnet or ssh access to configure my CGI scripts?
We do not offer telnet or ssh access for security purposes, but we will review this one again.
Internal Server Error or Permission Denied Error
Check that your directory permissions are set to 755 (drwxr-xr-x). If you are still, getting an Internal Server Error, your script is not configured correctly. Begin troubleshooting by following the checklist below.
  1. Upload PERL script using ASCII mode.
  2. Check that script permissions are set to 755 (-rwxr-xr-x).
  3. Check that the first line of the PERL script is #!/usr/bin/perl
  4. Run your script through the PERL Check which is located in your Account Management Control.
Do I have access to the web server error log?
No, but you can create your own error log, here's how:
Copy the following code into CGI script. Replace PATH with your root directory path in the Account Management Control. An error log file named mycgi.log will then be placed in your root directory.
use CGI::Carp qw(carpout);
BEGIN {
use CGI::Carp qw(carpout);
open(LOG, ">>PATH/mycgi.log") or die("Unable to open mycgi-log: $!\n");
carpout(LOG);
}