SuexecUserGroup not working in Apache 2.4

Posted by James W. on Server Fault See other posts from Server Fault or by James W.
Published on 2014-05-26T03:52:06Z Indexed on 2014/05/27 9:30 UTC
Read the original article Hit count: 213

Filed under:
|

I have upgraded my PHP from version 5.3 to 5.4 via yum which requires upgrading Apache from version 2.2 to 2.4. After doing configuration, it turns out that the userid and groupid is still using the global user/group which is "apache".

<VirtualHost *:80>
        ServerName      example.com
        ServerAdmin     [email protected]
        DocumentRoot "/path/to/webroot"
        ....
        ....
        <IfModule mod_fcgid.c>
          SuexecUserGroup user-name group-name
         <Directory "/path/to/webroot">
          Options +ExecCGI
          AllowOverride All
          AddHandler fcgid-script .php
          FcgidWrapper /path/to/webroot/php-fcgi-scripts/php-fcgi-starter .php
          Order allow,deny
          Allow from all
         </Directory>
        </IfModule>
         ........
</VirtualHost>

/etc/httpd/modules/base.conf:

LoadModule suexec_module modules/mod_suexec.so

I would appreciate if anyone could advise what was I missed.

Thanks.

© Server Fault or respective owner

Related posts about php5

Related posts about apache-2.4