[CentOS] Cetos 4 with Secure Linux - Apache perl problems...
Ed Clarke
clarke at cilia.org
Wed Jul 13 11:29:34 UTC 2005
Exactly where are you trying to run "test.cgi" from? If you're running
virtual hosts AND you do not
have the virtual hosts ScriptAlias directory under /var/www AND you're
running SuExec then you
will get this error. Permitted ScriptAlias path is hard coded in the
suexec binary. I had to recompile
it here to make things happy.
So in my case there was no interaction with selinux at all, it was all
SuExec.
Ed Clarke
Ignacio Vazquez-Abrams wrote:
>On Tue, 2005-07-12 at 17:07 -0500, Scott Heisler wrote:
>
>
>>I'm trying to get perl working correctly on a new server and have a
>>tough time. The server works fine for all standard web pages and hosts
>>about 10 domains. Here's is my test.cgi CGI script I'm trying to run:
>>
>>#!/usr/bin/perl
>>
>>print "Content-type: text/html\n\n";
>>print "Hello!";
>>
>>
>
>
>
>>When I attempt to access the file via a web browers, I get this:
>>
>>[Tue Jul 12 16:46:11 2005] [error] [client 209.74.180.78] (13)Permission
>>denied: exec of '/var/www/cgi-bin/test.cgi' failed
>>[Tue Jul 12 16:46:11 2005] [error] [client 209.74.180.78] Premature end
>>of script headers: test.cgi
>>
>>
>
>
>
>>What am I missing?
>>
>>
>
>http://fedora.redhat.com/docs/selinux-apache-fc3/
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>CentOS mailing list
>CentOS at centos.org
>http://lists.centos.org/mailman/listinfo/centos
>
>
More information about the CentOS
mailing list