[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

suEXEC witch mod_userdir

Hi everybody,

We have a apache2-worker in production enviroment with 200 users,
this users can access at their websites by domain name
http://www.userdomani.org (virtualhost configuration) or by username
http://www.domanin.org/~username (mod_userdir). The VirtualHost
configuration work's perfectly, the problem is with mod_userdir,
mod_userdir doesn't execute suEXEC and consequently the CGI's aren't
executed by suexec :( We investigated for several days but we have
not been able to find the problem.

Configuration details:

Directory structure: /home/ong/USERNAME/public_html

# cat /etc/apache2/suexec/www-data

# The first two lines contain the suexec document root and the suexec userdir
# suffix. Both features can be disabled separately by prepending a # character.
# This config file is only used by the apache2-suexec-custom package.

# cat /etc/apache2/mods-enabled/userdir.conf
<IfModule mod_userdir.c>
      UserDir public_html
      UserDir disabled root
      <Directory /home/ong/*/public_html>
              AllowOverride FileInfo AuthConfig Limit Indexes Options
             Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
              <Limit GET POST OPTIONS>
                      Order allow,deny
                      Allow from all
              <LimitExcept GET POST OPTIONS>
                      Order deny,allow
                      Deny from all

# cat /etc/apache2/conf.d/php-fcgi.conf
<IfModule !mod_php4.c>
<IfModule !mod_php4_filter.c>
<IfModule !mod_php5.c>
<IfModule !mod_php5_filter.c>
<IfModule !mod_php5_hooks.c>
<IfModule mod_actions.c>
<IfModule mod_alias.c>
<IfModule mod_mime.c>
<IfModule mod_fcgid.c>
  DefaultInitEnv PHPRC=/etc/php5/cgi
  AddHandler php-fcgi .php .php3
  Action php-fcgi /fcgi-bin/php-fcgi-wrapper
  AddType application/x-httpd-php .php .php3
  # you could run another "php5-cgi" command by just changing this alias
  Alias /fcgi-bin/ /home/httpd/fcgi-bin.d/php5-default/
  Alias /fcgi-bin.4/ /home/httpd/fcgi-bin.d/php4-default/
  Alias /fcgi-bin.admin/ /home/httpd/fcgi-bin.d/php5-admin/
  # Turn on the fcgid-script handler for all files within the alias
  <Location /fcgi-bin/>
        SetHandler fcgid-script
        Options +ExecCGI
  <Location /fcgi-bin.4/>
        SetHandler fcgid-script
        Options +ExecCGI
  <Location /fcgi-bin.admin/>
        SetHandler fcgid-script
        Options +ExecCGI



Reply to: