httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Cavicchini <>
Subject An Apache/Linux newbee's question - 2
Date Wed, 06 Mar 2002 07:36:12 GMT
I've just installed my Apache on my Linux RH.
When I try to run a CGI script (e.g. the printenv script in the cgi-bin
directory), Apache say me "Forbidden".
I checked ScriptAlias (it's OK), I checked file permissions (they're OK), I
checked the shebang in the script (it's OK).
If I run the script manually (./printenv) it runs properly (but it doesn't
run if I write only "printenv" without "./" before).

Please, could you give me any help?
I've just checked the file permissions: they are 777 on printenv (!).
I think this is sufficient.
But it doesn't work again.
I can open the html pages without problems, but I cannot run any CGI script.
With Apache on Windows 2000 it runs perfectly.

Below you can see my cgi-bin directory:

[root@IDS cgi-bin]# pwd
[root@IDS cgi-bin]# ls -al
totale 24
drwxr-x---    2 root     root         4096 mar  6 07:44 .
drwxr-xr-x   12 root     root         4096 mar  5 15:26 ..
-rwxrwxrwx    1 mino     mino          268 mar  5 18:07 printenv
-rwxr-x---    1 mino     mino          757 ott 15 18:21 test-cgi

Could you give me any help?
Thank you

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message