Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90932 - apache-2.0.52 suexec not working
Summary: apache-2.0.52 suexec not working
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-29 21:18 UTC by corey
Modified: 2005-04-30 10:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description corey 2005-04-29 21:18:06 UTC
Everything looks as though it _should_ be working: 
 
 w2 root # apache2 -V 
 Server version: Apache/2.0.52 
 Server built: Apr 4 2005 15:26:32 
 Server's Module Magic Number: 20020903:9 
 Architecture: 32-bit 
 Server compiled with.... 
 -D APACHE_MPM_DIR="server/mpm/worker" 
 -D APR_HAS_SENDFILE 
 -D APR_HAS_MMAP 
 -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="/usr" 
 -D SUEXEC_BIN="/usr/sbin/suexec2" 
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" 
 -D DEFAULT_ERRORLOG="logs/error_log" 
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/conf/mime.types" 
 -D SERVER_CONFIG_FILE="/etc/apache2/conf/apache2.conf" 
 
 
 w2 root # ls -l /usr/sbin/suexec2 
 -rws--x--- 1 root apache 10892 Apr 4 15:29 /usr/sbin/suexec2* 
 
 
 w2 root # suexec2 -V 
 -D AP_DOC_ROOT="/var/www" 
 -D AP_GID_MIN=100 
 -D AP_HTTPD_USER="apache" 
 -D AP_LOG_EXEC="/var/log/apache2/suexec_log" 
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin" 
 -D AP_SUEXEC_UMASK=077 
 -D AP_UID_MIN=1000 
 -D AP_USERDIR_SUFFIX="public_html" 
 
 
 ...however, three issues: 
 
 w2 conf # apache2 -l 
 Compiled in modules: 
 core.c 
 worker.c 
 http_core.c 
 mod_so.c 
 
 There's no 'suexec: enabled; valid wrapper ...' in the above. 
 
 And: 
 
 w2 root # tail /var/log/apache2/error_log 
 [Wed Apr 27 11:39:22 2005] [notice] Digest: generating secret for digest authentication ... 
 [Wed Apr 27 11:39:22 2005] [notice] Digest: done 
 [Wed Apr 27 11:39:23 2005] [notice] Apache/2.0.52 (Gentoo/Linux) configured -- resuming normal operations 
 
 So, you can see that there's no: '[notice] suEXEC mechanism enabled ...' in the log 
 
 
 Also, when I use the 'User' and 'Group' directives in my <VirtualHost> - I get the following when I start apache: 
 
 * Apache2 has detected a syntax error in your configuration files: 
 Syntax error on line 51 of /usr/lib/apache2/conf/vhosts/vhosts.conf: 
 User cannot occur within <VirtualHost> section 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2005-04-30 08:23:11 UTC
did you load mod_suexec?
Comment 2 corey 2005-04-30 10:01:51 UTC
> From Benedikt Boehm 2005-04-30 08:23 PST -------  
> did you load mod_suexec?


That's the problem...

I'll close this out, many thanks for the help!

Very sorry for the brain-dead bug report...