| 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:
- You need to check your CGI-script permissions. Make sure there set to chmod 755.
- 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:
- The Perl value application has not been installed from the domain's web GUI.
- 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:
- Login to the site manager.
- Click on Domain Settings from the menu on the left.
- Select the Web Aliases tab.
- Click on the domain that you want to set up the alias for.
- Click on New Alias...
- Click on the Radio button next to Script Alias (CGI executable)
- 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 |
|