centOS 5.0 and Apache installation with Suexec setting

centOS 5.0 and Apache installation with Suexec setting

am 09.06.2007 22:23:07 von kwan

Hello guru,

I tried to figure out what the problem relate to my Apache
configuration for the VirtualHost, inside VirtualHost, it is a cgi-
script directory that will be used to run cgi script that created in
Perl/CGI. Everything seems working without the Suexec, but when I
install CentOS 5.0 (choose for SSL during the installation procedure),
the browser complaints about the 500 Internal Server Error, in the
error_log file contains
Permission denied exec of "/usr/home/www_root/support/public_html/cgi-
bin/test1.cgi" failed
Premature and of script headers: test1.cgi

NameVirtualHost 192.168.1.1

# it seems to create error, but I think it is how the suexec is setup
Group webgroup
User webuser
ServerName www.support.com
ServerAdmin support@localhost.com
DocumentRoot "/usr/home/www_root/support/public_html"
DirectoryIndex index.html default.html
ScriptAlias /cgi-bin/ "/usr/home/www_root/support/public_html/cgi-
bin/"

Options ExecCGI
AddHandler cgi-script .cgi .pl




chown webuser:webgroup /usr/home/www_root/support/public_html/cgi-bin
chmod 4711 /usr/home/www_root/support/public_html/cgi-bin

I get the problem nearly a week, but still can't solve, I tried the
example online, none of them are working:(

Re: centOS 5.0 and Apache installation with Suexec setting

am 10.06.2007 15:59:33 von kwan

On Jun 9, 1:23 pm, kwan wrote:
> Hello guru,
>
> I tried to figure out what the problem relate to my Apache
> configuration for the VirtualHost, inside VirtualHost, it is a cgi-
> script directory that will be used to run cgi script that created in
> Perl/CGI. Everything seems working without the Suexec, but when I
> install CentOS 5.0 (choose for SSL during the installation procedure),
> the browser complaints about the 500 Internal Server Error, in the
> error_log file contains
> Permission denied exec of "/usr/home/www_root/support/public_html/cgi-
> bin/test1.cgi" failed
> Premature and of script headers: test1.cgi
>
> NameVirtualHost 192.168.1.1
>
> # it seems to create error, but I think it is how the suexec is setup
> Group webgroup
> User webuser
> ServerNamewww.support.com
> ServerAdmin supp...@localhost.com
> DocumentRoot "/usr/home/www_root/support/public_html"
> DirectoryIndex index.html default.html
> ScriptAlias /cgi-bin/ "/usr/home/www_root/support/public_html/cgi-
> bin/"
>
> Options ExecCGI
> AddHandler cgi-script .cgi .pl
>

>

>
> chown webuser:webgroup /usr/home/www_root/support/public_html/cgi-bin
> chmod 4711 /usr/home/www_root/support/public_html/cgi-bin
>
> I get the problem nearly a week, but still can't solve, I tried the
> example online, none of them are working:(

create the directory in the suexec configuration directory will solve
the problem,