title: Ubuntu localhost issue
body: <p>Now I know that there are plenty of posts on setting up localhost in Ubuntu with apache2 and PHP.</p>
  
  <p>However, I have been racking my brains for around 2 hours and I've had about enough now.</p>
  
  <p>This is basically a test site; I want to see if it works with the url </p>
  
  <p><code>personalisedchampagnestore.localhost</code></p>
  
  <p>I have installed apache2 and php5. I have tested localhost, which works with the default html page.</p>
  
  <p>P.S. These are similar to the defaults, so I've stripped a lot of it out</p>
  
  <p>I have then configured the following files:</p>
  
  <p><strong>apache2.conf</strong></p>
  
  <pre><code>&lt;Directory /var/www/vhosts/personalisedchampagnestore/PersonalisedChampagneStore/web/&gt;
      Options Indexes FollowSymLinks
      AllowOverride All
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p><strong>sites-available/personalisedchampagnestore.conf</strong></p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName personalisedchampagnestore
  
      ServerAdmin webmaster@localhost
      DocumentRoot /var/www/vhosts/personalisedchampagnestore/PersonalisedChampagneStore/web/
  
  
      ErrorLog ${APACHE_LOG_DIR}/personalisedchampagnestore/error.log
      CustomLog ${APACHE_LOG_DIR}/personalisedchampagnestore/access.log combined
  
  &lt;/VirtualHost&gt;
  
  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  </code></pre>
  
  <p>and finally </p>
  
  <p><strong>/etc/hosts</strong></p>
  
  <pre><code>127.0.0.1   localhost
  127.0.0.1   personalisedchampagnestore
  127.0.1.1   liam-VirtualBox
  
  # The following lines are desirable for IPv6 capable hosts
  ::1     ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  </code></pre>
  
  <p>After saving, I have restarted apache2, enabled the site using <code>sudo a2ensite personalisedchampagnestore</code>, and enabled mod_rewrite using <code>sudo a2enmod rewrite</code>. I've also removed the .htaccess and added in a blank index.html page, but I still get the following error:</p>
  
  <pre><code>Server not found
  
  Firefox can't find the server at www.personalisedchampagnestore.localhost.
  </code></pre>
  
  <p>I also have looked in the <code>/var/log/apache2/error.log</code> file and there isn't anything there. Also, I've looked in the error log I set up which is <code>/var/log/apache2/personalisedchampagnestore/error.log</code>, and this file is completely empty.</p>
  
  <p>Has anyone got any suggestions? I assume this is something very tiny that I have missed and I will end up kicking myself.</p>
  
  <p><strong>Edit:</strong></p>
  
  <pre><code>Server version: Apache/2.4.7 (Ubuntu)
  
  PHP 5.5.9-1ubuntu4 (cli) (built: Apr  9 2014 17:08:27) 
  Copyright (c) 1997-2014 The PHP Group
  Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
  with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
  
  Ubuntu 14.04 LTS
  </code></pre>