Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 run apache2 with wsgi (for a django-app) on an ubuntu box. I want to use Nagios for server monitoring, and for this purpose it seems I have to add php support to apache.

When I installed apache2, I did this:

apt-get install apache2 apache2.2-common apache2-mpm-worker apache2-threaded-dev libapache2-mod-wsgi python-dev

What is the best way for me to add php support to apache2 without breaking my current installation and configuration?

share|improve this question
up vote 0 down vote accepted

just add the additional packages:

sudo apt-get install php5 libapache2-mod-php5
share|improve this answer
I'd add that if the installation is important enough to wring your hands in worry that things will break, having a good backup is probably a good idea...then if it did break you just restore the system. – Bart Silverstrim Feb 3 '10 at 13:07

Your Answer


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