Frequently Asked Hosting Questions
FAQs : : Troubleshooting
Why doesn't my Perl Script work?
There are three main reasons that you get a HTTP 500 server error when running your Perl script.
1. the permissions are set to 644, it needs to be 755. You can change the permissions by clicking on the 644 number on the right side of the page in the file manager.
2. the script gets uploaded in binary mode. With FTP you have got to choose ASCII so it converts the windows newlines to UNIX. You must upload the script with an FTP client (like WS_FTP or CuteFTP) and make sure that it is uploading through ASCII.
3. If it is printing some text, but before any other output for cgi scripts, you have to have:
print "Content-Type: text/htmlnn";
BUSINESS WEB HOSTING TERMS TO KNOW