Results 1 to 11 of 11

Thread: Configuring Apache Server

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Unhappy Configuring Apache Server

    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?


  2. #2
    scoutt
    Guest
    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?????

    http://www.vbforums.com/showthread.php?threadid=89515

  3. #3
    denniswrenn
    Guest
    Maybe you could try adding ExecCGI to the options list in the directory permisions thing?

    <Directory ......>
    Options ExecCGI
    </Directory>

  4. #4
    scoutt
    Guest
    it should already be enabled, if he didn't change anything

  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37
    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.

  6. #6
    scoutt
    Guest
    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.

  7. #7
    scoutt
    Guest
    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.

  8. #8

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Smile thanks

    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.

  9. #9
    scoutt
    Guest
    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.

  10. #10

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37
    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.

  11. #11
    denniswrenn
    Guest
    Did you send out the proper headers?


    Code:
    #!c:/perl/bin/perl
    print "Content-Type: text/html \n\n\n";
    
    print "Does it work?!?!";

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width