suexec is supported out of the box
just chmod u+s /usr/sbin/suexec, set User and Group attributes under
your VirtualHost containers, and you're done.

Bibby [EMAIL PROTECTED] wrote:
> Hi, all.
> 
> I want to recompile httpd-1.3.x(shipped in base system) to support suexec,
> i followed this unofficial doc:
> http://www.openbsdsupport.org/ApacheSuexecChroot.html#recompilesuexec
> 
> It works fine in 4.1 -release, but in 4.2 -release, i can't find the log
> file(with option
> --suexec-logfile="/logs/suexec_log" or
> -suexec-logfile="/var/www/logs/suexec_log").
> 
> I got this error message:
> ---------------
> failed to open log file
> fopen: No such file or directory
> [Wed Nov  7 00:32:12 2007] [error] [client 172.16.252.1] Premature end of
> script headers: /cgi-bin/www.host.com/test.pl
> ---------------
> 
> and this is 'test.pl', it works fine without suexec in chroot env:
> ---------
> 
> #!/usr/bin/perl
> print "Content-type: text/plain\n\n";
> opendir(DIRHANDLE, "/");
> @filenames = readdir(DIRHANDLE);
> foreach $file (@filenames) { print "$file\n"; }
> closedir(DIRHANDLE);
> ----------------
> 
> 
> ----
> Best Regards.
> 
> Michael Bibby(Huangbin Zhang)
> 
> - RedHat Enterprise Linux 5 Client
> - OpenBSD 4.2 -release

-- 
Those who can, do.
Those who can't, sue.

Reply via email to