Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   Problem enabling all .cgi or .pl files
Date:   2002-01-11 13:58:00
From:   johnkoetsier
hey, thanks for the article.


Since I'm just playing around on my own box, I want to enable all .cgi or .pl files to be executed by the webserver, wherever they happen to be.


I've uncommented the AddHandler for CGIs (see here:
# To use CGI scripts:
#
AddHandler cgi-script .cgi
)
but still get the Forbidden message when I try to access them.


Everything else you talked about worked for me.


Any suggestions?

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Morbus Iff photo Problem enabling all .cgi or .pl files
    2002-01-12 08:55:00  Morbus Iff | O'Reilly Author [View]

    When you try to run one of a scripts, what do you see in your error log after getting the message?
    • Here's what the error_log says:
      2002-01-14 15:03:50  johnkoetsier [View]

      Message:

      [Mon Jan 14 15:01:05 2002] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /Library/WebServer/Documents/helloWorld.cgi

      Which basically tells us what we already knew ... I think.
      • OK, fixed it ...
        2002-01-14 15:13:15  johnkoetsier [View]

        I added Exec/CGI to the options for:

        <Directory "/Library/WebServer/Documents">

        I guess it's a bit confusing, since there are a couple of things in httpd.conf that could be seen as overlapping, since I had already allowed CGIs anywhere by uncommenting this:
        # AddHandler cgi-script .cgi
        (or so I thought).

        In any case, I am now up and happily (if insecurely) running. This is only a dev box for playing with, so I'm not too worried.

        Thanks again for the article!