Knowledgebase: CGI-Bin Questions
After I edit my CGI script, it no longer functions. What could the reason be?
Posted by Russell Rademacher on 22 November 2009 09:58 AM
Perl CGI scripts must be uploaded to your account via FTP as ASCII files to run properly. Also, all CGI scripts must be executable. This requires setting the permissions on the file using your FTP program and making sure the script is world executable (CHMOD).

If you are getting an "Internal Server Error" and you have verified the CGI script was uploaded as an ASCII file and it is executable, there may be a syntax error in the code. The easiest way to determine this is to telnet into your account, go to the directory that contains the script (cd www/directory), and run the program from the prompt by typing in the name of the script. This will show the error in the program.
(147 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: