View Full Version : problems with self-compiled nginx

12th February 2013, 17:53
my nginx.conf contains: worker_processes 8;

And yet, if I do a: pstree I see:

| |-nginx---4*[{nginx}]
| |-nginx---6*[{nginx}]
| `-2*[nginx---{nginx}]

With the stock Debian nginx-full this always looked like this:

Its weird, I always had 10 nginx processes: the 8 workers, the 1 master process and now that I used fastcgi_cache 1 nginx: cache manager process - that is 10 in total but now after compiling my own, I have 20 or a similar high number, it seems to fluctuate.
I thought ISPCFG3 was watching nginx and restarting it but since I did an apt-get remove nginx nginx-full nginx-common it should only find the manually compiled one and NOT start it again :(

Any idea?

12th February 2013, 17:59
ISPConfig is not searching for a installed nginx, ispconfig is expecting a nginx at the path were it is normally installed by the native packages of the linux distribution. So if you want to compile your own nginx, ensure that is instaleld in the ame path and uses the same init script name then the nginx of the Linux distribution.

12th February 2013, 18:34
I think I did it right, except for this one there are no problems, ISPCFG3 is happy. I followed this tutorial: http://www.howtoforge.com/building-nginx-from-source-on-debian-squeeze

Am I right to expect the number of nginx processes to be 1 master process + number of worker processes + 1 cache manager?