HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Apache now runs as 'apache' user after PHP upgrade (http://www.howtoforge.com/forums/showthread.php?t=55960)

MaxPower 28th January 2012 02:41

Apache now runs as 'apache' user after PHP upgrade
 
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).

Thanks!

falko 28th January 2012 13:58

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.

MaxPower 13th February 2012 18:45

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?

till 13th February 2012 18:52

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


All times are GMT +2. The time now is 05:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.