httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivar Bratberg <i...@imaker.no>
Subject Re: [users@httpd] cgi permission denied for C++ but not for perl
Date Tue, 23 Aug 2005 18:14:45 GMT
sorry Walter, ANDREW thank you, YOU saved my day !


Andrew Boyce-Lewis wrote:
> Make sure that selinux isn't causing the problem. 
> 
> Either set it to 'disabled' or 'permissive' in /etc/selinux/config (you 
> will need to reboot).
> 
> You should be able to see logs about selinux in /var/log/messages. 
> 
> Good luck,
>  -Andrew
> 
> 
> 
> Andrew E. Boyce-Lewis
> 
> System and Network Administrator
> 
> Conduit Internet Technologies, Inc.
> 
> 800.493.5045 x 210
> 
> 814.867.8248 Fax
> 
> http://www.conduit-it.com
> 
> aboyce@conduit-it.com <mailto:aboyce@conduit-it.com>
> 
> 
> 
> 
> On Aug 23, 2005, at 10:01 AM, Ivar Bratberg wrote:
> 
>> 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 "first.pl" in /var/www/cgi-script/
>> BUT
>> 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 127.0.0.1] (13)Permission 
>> denied: access to /cgi-bin/world.cgi denied
>> [Tue Aug 23 15:53:56 2005] [error] [client 127.0.0.1] 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:
>>
>> -----------snip-------------------
>>
>> 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
>> </Directory>
>>
>> ------snip-----------------
>>
>> I hope somebody can help me with this.
>>
>> Best regards,
>> IB
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org 
>> <mailto:users-unsubscribe@httpd.apache.org>
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org 
>> <mailto:users-digest-unsubscribe@httpd.apache.org>
>> For additional commands, e-mail: users-help@httpd.apache.org 
>> <mailto:users-help@httpd.apache.org>
>>
>>
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message