Home >> Category >>Subject

Category: CGI scripts
Subject: None
 
 
Questions
 
Why do I get an internal server error or forbidden on my CGI-scripts?

The most common reasons for this are as follows:
  1. You need to check your CGI-script permissions. Make sure there set to chmod 755.
  2. Check your CGI-bin to make sure it's set to chmod 755.
-- Updated: 02/04/03

What is the path to perl?
The path is:

/bin/perl

-- Updated: 02/04/03

Where do I upload my CGI scripts?
The location to upload your CGI-scripts is as follows:

/usr/local/apache/cgi-bin

-- Updated: 02/04/03

What is the path to sendmail?
The path to sendmail is:

/bin/sendmail

-- Updated: 02/04/03

Why does my perl script give an error?
If you're sure the script is configured properly, the most common reasons are:
  1. The Perl value application has not been installed from the domain's web GUI.
  2. The permissions on the perl script have not been set to chmod 755.
-- Updated: 02/04/03

How do I get server side includes to work on my VDS account?

You will need to create a .htaccess file with the following content:

Options +Includes
AddType text/html .shtml .shtm
AddHandler server-parsed .shtml .shtm

Make sure the page that you are calling the include from has a file extension of .shtm or .shtml.

-- Updated: 02/04/03

How do I get SSI's to parse on regular .html files?

You can add the follow to the .htaccess file in the main HTML directory:

Options +Includes
AddType text/x-server-parsed-html .html
AddType text/x-server-parsed-html .htm

Note: Be sure not to duplicate entries in your .htaccess file. If one of the lines above is already present there's no need to make a second entry.

-- Updated: 02/04/03

How do I setup an cgi-bin on a sub or parked domain?

Follow the following steps:
  1. Login to the site manager.
  2. Click on Domain Settings from the menu on the left.
  3. Select the Web Aliases tab.
  4. Click on the domain that you want to set up the alias for.
  5. Click on New Alias...
  6. Click on the Radio button next to Script Alias (CGI executable)
  7. Create an alias name (most common is: /cgi-bin/) and enter the absolute path.
Example:
Main domain: mydomain.com
Sub Domain: subdomain.com
If subdomain.com points to a folder called subdomain within mydomain.com, and you want to create a cgi-bin for the subdomain, you would need to enter the absolute path as:

/usr/local/apache/htdocs/subdomain/cgi-bin/

Note: Make sure that the cgi-bin folder has been created within the subdomain folder.

-- Updated: 02/04/03