Click to See Complete Forum and Search --> : Configuring Apache Server
val04
Jul 25th, 2001, 07:12 AM
I tried following the instructions found in Apache's documentation but I still get the same error message when I try to submit my html file to a cgi script. The error message is as follows: "Forbidden. You don't have permission to access /testform.cgi on this server." Similarly, when I view the error log, it displays. "Options ExecCGI is off in this directory C:/program files/apache group/apache/realdocs/testform.cgi"
Help! What should I do?
:(
scoutt
Jul 25th, 2001, 10:38 AM
don't answer this question, I have answered this question 3 times and he has never gave me a response.
what are you brain dead or just stupid????? :confused:
http://www.vbforums.com/showthread.php?threadid=89515
denniswrenn
Jul 25th, 2001, 10:46 AM
Maybe you could try adding ExecCGI to the options list in the directory permisions thing?
<Directory ......>
Options ExecCGI
</Directory>
scoutt
Jul 25th, 2001, 11:04 AM
it should already be enabled, if he didn't change anything
val04
Jul 26th, 2001, 03:55 AM
I tried adding Options ExecCGI but I still can't get it to work. I'm not sure if I added it properly in the code. I attached a zipped copy of my httpd file just in case you want to see it.
I think the problem has something to do with ExecCGI because every time I view the error log, the message is, "Options ExecCGI is off in this directory c:/"Program Files/Apache Group/Apache/realdocs/testform.cgi"
Anyway, thanks for the advice.
scoutt
Jul 26th, 2001, 12:25 PM
I got that ExecCGI when I didn't have cgi working. i fixed it but I could not tell you what you did, so this one works fine for me. I hav eto look into it more. I left your document root as realdocs so everything you have must go into this directory, including cgi scripts.
next time don't go gung ho on it and start changing everything until you get it working.
scoutt
Jul 26th, 2001, 12:44 PM
well I was searching your http.conf file and I think I found the problem. you had
ServerName pop3.norton.antivirus
this has to be either localhost or 127.0.0.1
plus you didn't have some of the scriptalias running.
and beside you added ExecCGI to almost everything. Also the one I sent is also capable of running php scripts if you install php.
val04
Jul 26th, 2001, 07:33 PM
thanks for all the help! got the server to work already. I used the file you attached. it is just kinda weird that whenever I submit my html file to a cgi script, i get the error: page cannot be displayed when in fact, i'm sure that i placed the file in the correct directory and my action gets the correct path of the filename.
thanks again anyway.
scoutt
Jul 26th, 2001, 07:43 PM
did you make sur ethat you are using the shebang line in your script?
#!c:/perl/bin/perl
or where ever you installed perl at.
val04
Jul 27th, 2001, 08:28 PM
yes i'm sure i used the proper shebang line in my script. anyway, i'll inform you once i get it fully working.
Thanks again. :)
denniswrenn
Jul 28th, 2001, 10:20 PM
Did you send out the proper headers?
#!c:/perl/bin/perl
print "Content-Type: text/html \n\n\n";
print "Does it work?!?!";
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.