title: Change Document root of LAMP folder
body: <p>I need to change the document root to something else.</p>
  
  <p>for example I want my root as  ~/Dropbox/www instead of /var/www/html </p>
  
  <p>To achieve that I've changed my /etc/apache/sites-availabl/000-default.conf file
  to </p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName localhost
      ServerAdmin webmaster@localhost
      DocumentRoot ../../home/ahmar/Dropbox/www/
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>when I restart the server it seems fine </p>
  
  <p>But When I open my localhost</p>
  
  <p>it gives me a forbidden error
  with this message</p>
  
  <blockquote>
    <p>Forbidden</p>
    
    <p>You don't have permission to access / on this server.</p>
    
    <p>Apache/2.4.7 (Ubuntu) Server at localhost Port 80</p>
  </blockquote>