Apache being used by php-fpm while running Nginx?

Xenor asked:

I wonder if anyone could help me with why this RAM is being used. I run a low end box, 512mb RAM with Centos 6.3, Nginx, PHP and MySQL but Apache is showing up when I run a ps aux and it is using a lot of RAM.

apache    1166  0.0  3.7  78620 19500 ?        S    Apr19   0:01 php-fpm: pool w
apache    1167  0.0  3.7  79076 19844 ?        S    Apr19   0:01 php-fpm: pool w
apache    1168  0.0  3.5  78312 18732 ?        S    Apr19   0:01 php-fpm: pool w
apache    1169  0.0  2.6  61744 13656 ?        S    Apr19   0:01 php-fpm: pool w
apache    1170  0.0  4.8  84744 25440 ?        S    Apr19   0:01 php-fpm: pool w
apache    1383  0.0  3.3  77112 17660 ?        S    Apr19   0:01 php-fpm: pool w

The 4th column is the percentage RAM column, which means Apache is using 21.6% of my server’s RAM. Why is Apache using all this when I am running Nginx?

I have checked if Appache is running with this:

/etc/init.d/httpd status
httpd is stopped

So Apache isn’t running but it is? I’m confused.

I am new to Linux and have managed to set up this VPS to host websites from scratch and without a control panel, but I can’t figure out why this RAM is being used. Shouldn’t php-fpm be running though Nginx?

If anyone could help that would be great. Google hasn’t thrown up much.

My answer:


This doesn’t show that Apache is running.

It shows that php-fpm is running under the apache user account.

That is, of course, what the headings for the columns say:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

When you view your processes with the headings, it then becomes obvious:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
apache    1166  0.0  3.7  78620 19500 ?        S    Apr19   0:01 php-fpm: pool w

Of course, with such a long display as ps aux might generate, the headings may scroll off your terminal. As you use the commands more, you’ll eventually learn which columns are which without having to refer to the headings.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.