Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install nagios but instead of using apache i would like to use nginx. I installed nagios-cli and it automatically brings parts of apache which puts a script into /etc/init.d/apache2 and annoy me on every bootup. I have nginx with php,cgi and mono working fine. But i am unsure how to remove apache from my system

How do i remove apache or not get it included with nagios? I am using debian squeeze (6)

share|improve this question
up vote 2 down vote accepted

If you don't want to uninstall apache2 because you don't want to mess with dependencies, you can disable it by doing:

/etc/init.d/apache2 stop
update-rc.d apache2 disable

Then configure nginx to serve nagios (I don't have experience with it to help you)

share|improve this answer

maybe this howto help:


You need be able to execute perl scripts with nginx.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.