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.


Post a Comment

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

Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/remydamo/websites/qc4blog/www/wp-content/plugins/sweetcaptcha-revolutionary-free-captcha-service/library/sweetcaptcha.php on line 81

Warning: fsockopen() [function.fsockopen]: unable to connect to www.sweetcaptcha.com:80 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/remydamo/websites/qc4blog/www/wp-content/plugins/sweetcaptcha-revolutionary-free-captcha-service/library/sweetcaptcha.php on line 81