Ray Olszewski assists with:
>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 is an uncompiled, text script - JDM]
>it needs to be mode 555 (anyone can read or execute it),
[' needed to be done.]
>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.
[' was 755 so I left it alone.]
>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.
[It is the first. - poor communication on my part.]
>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.
[OK. When I try to execute the file by typing the path and
file name (as root) from the command line, I get:
bash: /home/httpd/cgi/bin/script.pl: No such file or directory
ls -l /home/httpd/cgi-bin returns:
-r-xr-xr-x 1 melonj melonj 24839 Dec 8 13:25
script.pl
Also, another correction to my first message:
When I submit the form, I get a 'File Not Found -
The requested URL /cgi-bin/script.pl was not found on
this server.
It is when I manually erase the file name from the browser address
http://10.102.14.149/cgi-bin/script.pl, I get:
Forbidden - You don't have permission to access cgi-bin
on this server.]
>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]