title: PHP file at server file root can't find necessary folder
body: <p>I am trying to install craft cms and I am getting the following error</p>
  
  <pre><code>Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /var/www/index.php
  </code></pre>
  
  <p>This is what my index.php folder is looking like</p>
  
  <pre><code>&lt;?php
  
  // Path to your craft/ folder
  $craftPath = '../craft';
  
  // Do not edit below this line
  $path = rtrim($craftPath, '/').'/app/index.php';
  
  if (!is_file($path))
  {
          exit('Could not find your craft/ folder. Please ensure that &lt;strong&gt;&lt;code&gt;$craftPath&lt;/code&gt;&lt;/strong&gt; is set correctly in '.__FILE__);
  }
  
  require_once $path;
  </code></pre>
  
  <p>The craft folder is only one directory above www and dont understand why it cant find it. </p>
  
  <p>Here are the parts of  my apache2.conf file that I think make a difference, the file is big and and I can't figure out how to copy the whole thing in nano</p>
  
  <pre><code>Include /etc/phpmyadmin/apache.conf
  
  DocumentRoot /var/www
  
  
  ServerRoot "/etc/apache2"
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/EEOwD.png" alt="enter image description here"></p>