When I updated apache2 to a newer version, suddenly my previous webistes no longer worked! (in fact, my subdomains did not work).
What I had to do was the following:
- reinstall ‘libapache2-mod-php5′ package – previous apache2 php module had been automatically removed and linking back to previous version of the module did not work
sudo apt-get install libapache2-mod-php5
- edit all my /etc/apache2/sites-available/* files and replace <VirtualHost *> with <VirtualHost *:80>
for more info, read http://www.debian.org/releases/stable/i386/release-notes/ch-information.en.html#apache2
- restart apache
sudo /etc/init.d/apache2 restart