» 
Apache CGI configuring
I'm trying to learn a little about apache. I'm running it on my iBook. I downloaded a survey script and followed the install instructions as best I could. When I run the script and click the submit button I get the following error:
Method Not Allowed
The requested method POST is not allowed for the URL /~myname/cgi-bin/survey/survey.cgi
I'm learning a bit. I think I need to edit a httpd.conf file to allow CGI scripts to be ran by apache.
(from apache docs -The source code of your CGI program or a "POST Method Not Allowed" message. That means that you have not properly configured Apache to process your CGI program. Reread the section on configuring Apache and try to find what you missed.)
(From configuring Apache -The ScriptAlias directive tells Apache that a particular directory is set aside for CGI programs. Apache will assume that every file in this directory is a CGI program, and will attempt to execute it, when that particular resource is requested by a client.
The ScriptAlias directive looks like:
ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/
The example shown is from your default httpd.conf configuration file, if you installed Apache in the default location. )
I've looked and read a bit, but I can't seem to find this file. Maybe it has not been created? The Find command locates four files with httpd in the file name but none are httpd.conf. Perhaps I need to create this file but I can't seem to figure out where I'd put it. Although there is a httpd.conf.pd file that looks like some sort of script.
I'm lost now. In reading it seems I should have this file. It should have been created when Apache was installed. I can't find it or a src directory mentioned in the docs for apache. Any suggestions..?
Am I making sense or am I way off track? If you can help I'd appreciate it. I hope this makes enough sence to help you help me. This is mostly a copy from an email to a friend (Pretorian ?? Spelling ??) who visits this site as well but I know he's pretty busy and can't be my personnel tech support every time so I'm asking you guys. Thanks
|