httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James <ja...@linux-source.org>
Subject [users@httpd] SuexecUserGroup not working in Apache 2.4 + FCGID 2.3
Date Mon, 26 May 2014 05:38:08 GMT
Hi,

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      domain.com
        ServerAdmin     email@domain.com
        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. James

Mime
View raw message