[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

~/Sites and CGI

Hi,

I'm having trouble getting the web server to run my perl CGI scripts on my Powerbook, which is running OS X 10.3.6.

I followed this guide :

http://docs.info.apple.com/article.html?artnum=42734

When I try to access the CGI, I get a 403 message :

You don't have permission to access /~test/bluewave/tmp2.cgi on this server.

This is the httpd.conf section :

<Directory />
    Options FollowSymLinks
    AllowOverride Options
</Directory>

% cat ~/Sites/.htaccess
Options +ExecCGI

% ls -l ~/Sites/bluewave/tmp2.cgi
-rwxr-xr-x 1 test test 129 30 Nov 12:09 /Users/test/Sites/bluewave/tmp2.cgi

I can access regular html in the bluewave directory, but the CGI won't run.

Any ideas?

Max.
0
davidmaxwaterman
Asked:
davidmaxwaterman
  • 3
1 Solution
 
periwinkleCommented:
You really should put the +ExecCGI in the httpd.conf section...

In your virtual host in the httpd.conf , you should have something like:

<Directory /Users/test/Sites>
Options FollowSymLinks
order allow,deny
allow from all
<Limit GET POST>
order allow,deny
allow from all
</Limit>
</Directory>
ScriptAlias /cgi-bin/ /Users/test/Sites/
0
 
ahoffmannCommented:
Options FollowSymLinks +ExecCGI
0
 
periwinkleCommented:
ahoffman - yep - thanks for the catch!
0
 
davidmaxwatermanAuthor Commented:
Just to followup...

Since this is an Apple OS X specific configuration, I think the fully correct answer is what I was told on Apple's support web site :

http://discussions.info.apple.com/webx?14@216.YbZJaKEiCEC.2@.68a02433/2

But I am sure that what you put would also have worked :)

Thanks for your help!

Max.
0
 
periwinkleCommented:
David -

Glad to hear that your problem is solved - and thanks for the points!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now