Apache now runs as 'apache' user after PHP upgrade

Discussion in 'Installation/Configuration' started by MaxPower, Jan 28, 2012.

  1. MaxPower

    MaxPower New Member

    Hi all,

    I was wondering if someone knows what's up.

    I have ISP Config 2 running on my server and all has been well until today. I needed to upgrade PHP from 5.1 to 5.3.

    I removed the php-* packages, and installed the equivalent php53-* packages.

    I've noticed since then, that PHP seems to be writing files to the server with the 'apache' user context.

    I'd love to know how I can fix this. I'm running CentOS 5.6 (upgraded from 5.5).

  2. falko

    falko Super Moderator ISPConfig Developer

    If you use mod_php, this depends on the user and group that Apache is running as. I think apache is the correct user for CentOS.
  3. MaxPower

    MaxPower New Member

    Sorry for not coming back sooner.

    Yes, apache is the correct user, but not when using ISPConfig.

    Each apache/http domain would write files under its own user:group context (ie. web1_admin:web1).

    Since updating PHP this has stopped. I've modified the permissions on the domains to apache, but it's far from ideal and not great security.

    Anyone have any suggestions how I can get this behaviour back?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Pleasecheck that you use "php-fcgi" as php mode and that suexec is enabled in the website settings.

Share This Page