httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivar Bratberg <>
Subject [users@httpd] cgi permission denied for C++ but not for perl
Date Tue, 23 Aug 2005 14:01:11 GMT
Problems with cgi permissions.
Hello, I have just intalled Apache 2.0.1 on fedora core 4, gnome
I manage to use a perl script for a cgi script by putting the perl file 
"" in /var/www/cgi-script/
if I do the following:
Make a simple c++ program writing to stout "hello world"
try to compile using g++ 4.0.something,
renaming the file to world.cgi
chmod 755 world.cgi

i get

You don't have permission to access /cgi-bin/ttt.cgi on this server.
Additionally, a 403 Forbidden error was encountered while trying to use 
an ErrorDocument to handle the request.

In the errorlog it says :
[Tue Aug 23 15:53:56 2005] [error] [client] (13)Permission 
denied: access to /cgi-bin/world.cgi denied
[Tue Aug 23 15:53:56 2005] [error] [client] File does not 
exist: /var/www/html/favicon.ico

I have tried to fix thins in the httpd.conf file, even though I think it 
should not be necessary:


ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all


I hope somebody can help me with this.

Best regards,

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

View raw message