update of apache2 – websites no longer working

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:

  1. 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
  2. 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
  3. restart apache
    sudo /etc/init.d/apache2 restart

That’s it.

sources

Post a Comment

Your email is never published nor shared. You're allow to say what you want...

Powered by sweetCaptcha