image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old December 31st, 2000, 06:53 PM
Registered User
 
Join Date: Dec 2000
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
softbreeze is on a distinguished road
I am attempting to run a cgi from the CGI-EXECUTABLES directory. Apache is using the default configuration file; no changes.

The first time a cgi document is accessed, Apache returns, \"Access Forbidden\". However, if the cgi is accessed directly (which errors) first, Apache functions properly. Thereafter, each access to the document returns the error. So, here is what happens:

localhost/cgi-bin/my.cgi/[html] Access Forbidden
localhost/cgi-bin/my.cgi CGI Error
localhost/cgi-bin/my.cgi/[html] Works Correctly

then, when the process is repeated...

localhost/cgi-bin/my.cgi/[html] Access Forbidden
localhost/cgi-bin/my.cgi CGI Error
localhost/cgi-bin/my.cgi/[html] Works Correctly

The Apache error log states that a directory is being accessed and therefore access is denied. A directory??

Any idea what\'s going on and how to fix this?

Thanks.
Reply With Quote
  #2  
Old January 26th, 2001, 08:49 PM
Registered User
 
Join Date: Nov 2000
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
jazzy is on a distinguished road
I had a similar issue when I was setting up apache on my os x box - then I remembered a little something called the apache.conf file where all sorts of cool config stuff for apache resides. Towards the bottom you will find two settings of note. The first is one to allow server side includes (in the form of cgi) - line 807. The second, starting on line 812, is one to use server parsed html files (shtml). After you make the approapriate changes to the comments here, save the file out (don't forget that normal users can't make changes to this file), and then restart the Apache Server. Provided your scripts are good, you should be right as rain after that.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line question (Info for running processes?) chemistry_geek Unix & X11 1 November 8th, 2002 12:29 AM
Getting a CGI script to work locally on my Mac simX Mac OS X System & Mac Software 11 July 12th, 2002 02:43 PM
Understanding my path and running my dumb perl programs karavite Mac OS X System & Mac Software 6 November 22nd, 2001 03:18 PM


All times are GMT -5. The time now is 12:14 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.