Read the man page:
man suexec
On Sat, 2003-04-26 at 17:07, rbragg wrote:
Hi,
Do I have to re-compile apache from the tarball and forget the rpm if I want to use suexec? It doesn't seem to work off the rpm.
Thanks Rick
Well, after reading the man page, it seem that my system should be working, but here is my info:
apache looks like it should be OK:
[root@xxxx httpd]# /usr/sbin/httpd -V Server version: Apache/2.0.40 Server built: Feb 25 2003 05:01:56 Server's Module Magic Number: 20020628:0 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/etc/httpd" -D SUEXEC_BIN="/usr/sbin/suexec" .......
and suexec also looks OK:
[root@xxxx httpd]# /usr/sbin/suexec -V -D AP_DOC_ROOT="/var/www" -D AP_GID_MIN=500 -D AP_HTTPD_USER="apache" -D AP_LOG_EXEC="/var/log/httpd/suexec.log" -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin" -D AP_UID_MIN=500 -D AP_USERDIR_SUFFIX="public_html" ..........
But this is what I get when I try to use it:
[root@xxxx httpd]# /usr/sbin/httpd -t Syntax error on line 1046 of /etc/httpd/conf/httpd.conf: User cannot occur within <VirtualHost> section
the "User" (and Group) directives cause httpd to fail.
Thanks Rick