[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:-

  • 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.


last edited (December 9, 2002) by KDivad Leahcim, Number of views: 1797, Current Rev: 2 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.