[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
PerlFAQUpload
When I upload a Perl script to my web server that I know works, it won't run. Why?
Back to Perl FAQ Main Page.
Things to check:-
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
PerlFAQUpload
When I upload a Perl script to my web server that I know works, it won't run. Why?
Back to Perl FAQ Main Page.
Things to check:-
- Have you uploaded it in ASCII mode in your FTP client? You should have!
- If it's a Linux/UNIX server, have you chmod'd the script correctly? Scripts should be chmod'd to 755.
- Does the web server know that it should be executing the scripts? Placing them in the cgi-bin folder is a good start. Some web servers are configured not to run CGI scripts.
- Is the path to Perl correct (top line of script).
- Are there missing modules on the server? use DBI may work fine on your computer, but what if the DBI module isn't installed on the server? It won't work!
- Is the script returning valid HTTP headers? You may have got away with it during testing on your computer, but most web servers require you to print these properly.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
