PDA

View Full Version : suexec problems on RH9


JonnyRock
10th August 2004, 10:19 PM
ok,

I am trying to suexec stuff in user's home directories for virtualhosts. I am using RH9/apache. ideally I would like everythign to be suexec in all of the user's public_html directories by default. it seems that in order to have suexec at all I have to make the following entrie in the httpd.conf within a VirtualHost directive:

SuexecUserGroup user group

and then I get the followig errors in my suexec logs:

[2004-08-10 16:36:11]: uid: (501/user) gid: (501/501) cmd: classadmin.pl
[2004-08-10 16:36:11]: command not in docroot (/home/user/public_html/cgi/admin/classadmin.pl)

I was under the impression from the doccumentation that having

-D AP_USERDIR_SUFFIX="public_html" set in suexec would enable me to suexec things in users' userdirs.

am I missing something?

# httpd -V
Server version: Apache/2.0.40
Server built: Apr 21 2004 11:49:03
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"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

# 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"