title: AWS:EC2 - php files are not working
body: <p>When I load my website, no pages are loading and looking into Apache logs, i see the following errors</p>
  
  <pre><code>[Thu Jun 25 09:42:59.279803 2015] [:error] [pid 31196] PHP Warning:  include_once(/var/www/htdocs/inc/inc/util/sessionmanager.php): failed to open stream: No such file or directory in /var/www/htdocs/inc/util/inag.php on line 13
  [Thu Jun 25 09:42:59.279854 2015] [:error] [pid 31196] PHP Warning:  include_once(): Failed opening '/var/www/htdocs/inc/inc/util/sessionmanager.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/htdocs/inc/util/inag.php on line 13
  [Thu Jun 25 09:42:59.279875 2015] [:error] [pid 31196] PHP Warning:  require_once(/var/www/htdocs/inc/inc/config.php): failed to open stream: No such file or directory in /var/www/htdocs/inc/util/inag.php on line 14
  [Thu Jun 25 09:42:59.279884 2015] [:error] [pid 31196] PHP Fatal error:  require_once(): Failed opening required '/var/www/htdocs/inc/inc/config.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/htdocs/inc/util/inag.php on line 14
  </code></pre>
  
  <p>I have changed the root directory from /var/www/html to /var/www/htdocs for which I did the following changes in https.conf</p>
  
  <pre><code>DocumentRoot "/var/www/html" =&gt; "/var/www/htdocs"
  </code></pre>
  
  <p>And it worked</p>
  
  <p>I also tried to change</p>
  
  <pre><code>&lt;Directory "/var/www"&gt;
    AllowOverride None
    # Allow open access:
    Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>to </p>
  
  <pre><code>&lt;Directory "/var/www"&gt;
    AllowOverride All
    # Allow open access:
    Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>but it did not work for the purpose (loading index.php for pretty url).</p>
  
  <p>Any idea how to get the php files loading properly?</p>