TOC PREV NEXT INDEX INDEX

Troubleshooting CGI scripts

Way2Host cannot offer technical support for scripts that we do not provide. If you are not familiar with CGI scripting, there are a number of books and online resources that can assist you. Some resources you may find useful include:

The following table answers some of the most common questions you may have as you work with CGI scripts and your Web page.

Question/Answer
Description
Question
I am getting the message "File Not Found" or "No Such File or Directory." What is wrong?
Answer
Upload your Perl or CGI script in ASCII mode, not binary mode.


Question
When I test my Perl script in local mode, I receive the following error: "Literal @domain now requires backslash at myscript.pl line 3, within string. Execution of myscript.pl aborted due to compilation errors." What is wrong?
Answer
This is caused by a misinterpretation by Perl. The "@" sign has a special meaning in Perl; it identifies an array (a table of elements). Since it cannot find the array named "domain," it generates an error. You should place a backslash (\) before the "@" symbol to instruct Perl to interpret it as a regular symbol, as in an email address.


Question
I am getting the message "POST not implemented." What causes this?
Answer
You are probably using the wrong reference for the CGI Email script. Use the reference /cgi-bin/cgiemail/mail.txt. Another possibility is that you are pointing to a cgi-bin script that you have not put in your /cgi-bin directory. In general, this message really means that the Web server is not recognizing the cgi-bin script you are calling as a program but as a regular text file.


Question
A message states that I don't have permission to access / (1). What's wrong?
Answer
This error message means that you are missing your index.htm file. Note that files that start with a "." are hidden files.
If you want to FTP this file, go to the home/[domainname] directory.


Question
A message states that I don't have permission to access/ (2). What's wrong?
Answer
Your CGI script is probably set as world writable. Way2Host's CGI security mechanism prevents execution of such CGI scripts. To ensure that the permission setting for your CGI script is correct be sure you have set the permission to:

755

You must also ensure that the directory in which your script is located has the same permission setting. For more information, see Setting Permissions.


Way2Host
support@way2host.com
© 2003 Way2Host
All rights reserved.

TOC PREV NEXT INDEX INDEX