Forums | MacLife
You are not logged in.
#1 2006-09-07 3:45 pm
Apache and CGI-BIN HELLLLLP!!!!
I am running a G4 with the webserver enabled, and I am using the WebServer/Documents folder in the main Library for serving HTML.
I want to get to http://192.168.1.7/cgi-bin/install.cgi
I am NOT using the sites folder for the user, I am using the main WebServer/Documents folder, and I created the CGI-BIN myself.
Whenever I go to access it though, I get Forbidden without the filename there or Not Found with the file name there. I have tried CHMOD the folder via FTP to 777, but it wont keep. I need to get this up and running, how do I enable CGIso I can go to the cgi-bin/install.cgi file I need to access!
I followed the directions here: http://www.cgi101.com/book/connect/mac.html
to uncomment the CGI stuff in the httpd.conf, but I still can't get it to work. (I even tried changing the path to /Library/WebServer/Documents in the httpd file, still no luck)
HEEEEEELLLLLLLLLLLLLP!!!!
emotion entertainment inc.
emotionDV.com - FCP/FCX for the masses
FundMyFilm.ca - A Means to "The End"
Offline
#3 2006-09-07 4:28 pm
Re: Apache and CGI-BIN HELLLLLP!!!!
when I CHMOD anything via Transmit (The cgi already shows as 755 for all the .cgi files) it does not stay. IE when I CHMOD the folder, to 755 OR 777, when I get info again, it is back to 000. This is driving me nuts.
if I go to the root folder, it shows everything in there. but click on cgi-bin, I get Forbidden, which I understand, but the Not Found when I try and go directly to a file in that folder! Comon now!!!
Last edited by emotionDV (2006-09-07 4:32 pm)
emotion entertainment inc.
emotionDV.com - FCP/FCX for the masses
FundMyFilm.ca - A Means to "The End"
Offline
#4 2006-09-07 7:53 pm
- registered_user
- bulletproof
- From: padding: zero-pixels;
- Registered: 2000-12-19
- Posts: 16026
- Website
Re: Apache and CGI-BIN HELLLLLP!!!!
sudo chmod 755 /Library/Webserver/Documents/cgi-bin
?
Offline
#5 2006-09-07 10:18 pm
Re: Apache and CGI-BIN HELLLLLP!!!!
Your cgi-bin is actually located at:
/Library/WebServer/CGI-Executables/
If you want to run a different one you'll need to change a line in your httpd.conf file
Right now its set to this:
ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"
Change the file path to point to your new folder if you want to use your folder, otherwise just put your CGI scripts in the pre-defined location.
Offline
#6 2006-09-08 10:58 am
Re: Apache and CGI-BIN HELLLLLP!!!!
THANK YOU!!!! Now I have a problem with the install of the software, but I can deal with that.
You guys rock!
emotion entertainment inc.
emotionDV.com - FCP/FCX for the masses
FundMyFilm.ca - A Means to "The End"
Offline
