Check the permissions on ther file itself. Assuming the cgi-bin program is a
script (that is, it is text, not a compiled program), it needs to be mode
555 (anyone can read or execute it), so the very unpriveleged userid
(nobody) under which apache runs can read and excecute the file. Similarly,
the directory itself needs to be at least mode 444 (anyone can read it) so
apache can open the script for reading.

Also make sure you have the directory name right. At one point in your
message, you refer to /home/https/cgi-bin, but in the next paragraph you
refer to /home/cgi-bin . It needs to be the first of these.

If this doesn't fix it, make sure you can execute the script from the
command line. It won't execute correctly this way, but it should run enough
to return some error.

At 08:36 PM 12/8/99 EST, [EMAIL PROTECTED] wrote [in part]:
>I'm running RedHat 5.1 with Apache Web Server. I've been successful in seeing 
>and replacing the "It worked! Test Page for Apache Installation" 
>(/home/httpd/html/index.html) from other machines.
>
>I have a HTML Form in the same directory as the test page.  When I place 
>script-files in /home/httpd/cgi-bin and set the Form Method=Post 
>Action=/cgi-bin/scriptname.pl I get a "Forbidden" Error (accessing cgi-bin) 
>when I submit the form. 
>What am I doing wrong here?
>
>Permissions for /home/httpd, /home/cgi-bin, and /home/html are all drwxr-xr-x
>I haven't created any .htaccess in any directories to override the *.conf 
>files, which are very close to defaults but listed below:
[deleted here]
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------

Reply via email to