re: [MacPerl-WebCGI] A v B = ?
[email protected] Sat, 10 Mar 2001 09:50:57 +0900
| Newsgroups | perl.macperl.webcgi |
|---|---|
| Message-ID | <v0401170bb6cf1c409a43@[211.132.153.164]> |
[email protected] wrote: >So, where is it that you're running the code and receiving those errors? on my mac under MacPerl As to issue of the script running on your mac, but not on the server as a CGI : this may not be due to the '-w' switch a such, but if you insist on not using it you'll find people will be reluctant to help you, (see below) A generic 500 error check list is: * is the path to perl correct (in the she-bang line) * does the script have the correct permissions to run * if you transferred it from another machine using a different OS, are you sure the line endings are correct? If these three steps don't solve your problem you need the error logs Then the next thing to do is to check out the DOCs which come with all Perl distros, because in all of the Perl NG and mailing lists, CGI related postings are notorious for being trivial and easily solved (by using '-w', 'use strict;' and checking the 3 things above). In keeping with this, this is the same reason why MacPerl has a separate CGI list, (it didn't always). In the perl community in general the minute you post anything in which it's apparent that you haven't read the docs and you haven't followed any of the basic guidelines set out in the FAQs because you haven't read them, people either don't reply to your posting or get downright nasty/abusive, because they've seen the same kinds of posting over, and over again, and consider them only marginally better than spam (but only beause the posters aren't trying to squeeze money out of them) :~) (from POD FAQ 9: ) My CGI script runs from the command line but not the browser. (500 Server Error) If you can demonstrate that you've read the following FAQs and that your problem isn't something simple that can be easily answered, you'll probably receive a courteous and useful reply to your question if you post it on comp.infosystems.www.authoring.cgi (if it's something to do with HTTP, HTML, or the CGI protocols). Questions that appear to be Perl questions but are really CGI ones that are posted to comp.lang.perl.misc may not be so well received. The useful FAQs and related documents are: CGI FAQ http://www.webthing.com/tutorials/cgifaq.html Web FAQ http://www.boutell.com/faq/ WWW Security FAQ http://www.w3.org/Security/Faq/ HTTP Spec http://www.w3.org/pub/WWW/Protocols/HTTP/ HTML Spec http://www.w3.org/TR/REC-html40/ http://www.w3.org/pub/WWW/MarkUp/ CGI Spec http://www.w3.org/CGI/ CGI Security FAQ http://www.go2net.com/people/paulp/cgi-security/safe-cgi.txt