CGI Scripts

Joined
Nov 22, 2006
Messages
33
Reaction score
0
Points
6
Hi all,

I setup my httpd.conf file following the directions on this site:

http://www.cgi101.com/book/connect/mac.html

I am able to view .html pages hosted in my "Sites" directory, but I can't view .pl or .cgi files.
When I try to open a .pl file in my web browser, it says "Forbidden. You don't have permission to access /~hsujd/printenv.pl on this server."
I checked the permissions of my .pl file, and it is world executable.
I checked the apache error log, and it says that "Options ExecCGI is off in this directory: /Users/hsujd/Sites/printenv.pl"
In my httpd.conf file, I have the line "Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI"

Could someone please help me?

Thanks,
Dan
 
Joined
Jan 4, 2006
Messages
1,385
Reaction score
146
Points
63
Location
Hamburg, Germany
Your Mac's Specs
MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)
Did you check whether the CGI module in active in /etc/httpd/httpd.conf ? Just in case ;)

LoadModule cgi_module libexec/httpd/mod_cgi.so
 
OP
D
Joined
Nov 22, 2006
Messages
33
Reaction score
0
Points
6
Yes, this module is active, but thanks I was unaware of it.

Did you check whether the CGI module in active in /etc/httpd/httpd.conf ? Just in case ;)

LoadModule cgi_module libexec/httpd/mod_cgi.so
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top