Tutorial: reconfiguring virtual hosts after upgrading to Apache 2.4.7 on Ubuntu – what you need to change

 

Once upon a time, I was running Apache 2.2.22. I had set up my virtual hosts by making up some fantasy domain names for each of my sites, such as drupal.kevin. I would then edit /etc/apache2/vhosts.conf to add information about my DocumentRoot, DirectoryIndex and CustomLog for each of my sites. Because I wanted to make sure they were always backed up properly, I kept my websites in my /home folder rather than /var/www/html, which meant I also needed a symlink from there to my websites directory. Lastly, I would add a line for every virtual host in /etc/hosts, such as

127.0.0.1 drupal.kevin

So far so good. Unfortunately, all that stopped working after upgrading from Ubuntu 12.04 LTS (Precise Pangolin) to 14.04 LTS (Trusty Tahr)… Continue reading

Advertisements

Tutorial: Cryptswap1 errors, wonky monitor displays & how to fix things after an Ubuntu 14.04 upgrade

Last week I ran into some serious problems with my Ubuntu 12.04 after some routine updates. I wasn’t able to determine exactly what happened but it was related to one of our usual suspects, the cryptswap1 error at bootup, which announces that ‘the disk drive for /dev/mapper/cryptswap1 is not ready yet or not present‘.

I tried various things suggested in forums, including this one. Unfortunately, due to a slightly different config, this culminated in me somehow partially disabling my swap space. I happened to have a Debian Live CD lying around, so I proceeded to do a harddrive backup (mainly to rescue that morning’s downloaded emails), but that was tricky because my /home folder was encrypted. Though I am told it is possible, I didn’t have the time on top of all this to go & read up on how this could be done via a Live CD!

Continue reading