Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

(jjhorner) First Script

by jjhorner (Hermit)
on Jul 17, 2000 at 21:26 UTC ( [id://22871]=note: print w/replies, xml ) Need Help??


in reply to First Script

A few points for a beginner:

  • Check file permissions. Make sure you have the read/execute bit set for all.
  • Use '-w' and 'strict'. It will make debugging more complex scripts easier
  • use '-T' to make sure you aren't tainting your script.
  • Read maverick's post above. Good points.
  • Make sure your directory (in your httpd.conf file) has ExecCGI as an option.
  • It looks as though you are trying to call it from /cgi-bin, so it should be accessible.
  • Let us know if any of this fixed it.
J. J. Horner
Linux, Perl, Apache, Stronghold, Unix
jhorner@knoxlug.org http://www.knoxlug.org/

Replies are listed 'Best First'.
RE: (jjhorner) First Script
by Kozz (Friar) on Jul 18, 2000 at 07:44 UTC
    jjhorner made some great points above. I think he likely hit it on the head with respect to the ExecCGI option in your httpd.conf file. Go to www.apache.org to read up on documentation on this config file. Your other temporary fix (assuming your current httpd.conf allows it) is to override the global access directives with your own .htaccess file in the same dir as your script with a single line that says
    Options ExecCGI
    But this will only fix it for that directory, like I said. You'll also want to make sure your httpd.conf contains a handler for the .cgi and .pl scripts. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://22871]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-16 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found