title: require_once: failed to open stream: Permission denied(lampp)
body: <p>I need help solving , what says to be a permission error in the <code>htdocs</code> folder, because i needed to alter them to even add folders in the first place.</p>
  
  <p>This is my <code>init.php</code> file:</p>
  
  <pre><code>&lt;?php
  //Start Session
  session_start();
  
  //Include Configuration
  require_once('config/config.php');
  
  //Helper Function Files
  require_once('helpers/system_helper.php');
  require_once('helpers/format_helper.php');
  require_once('helpers/db_helper.php');
  
  //Autoload Classes
  function __autoload($class_name){
  require_once('libraries/'.$class_name . '.php');
  }
  ?&gt;
  </code></pre>
  
  <p>I try to include it via `</p>
  
  <p>When i run my <code>index.php</code> file i get this error:</p>
  
  <pre><code>Warning: require_once(../../htdocs/PHP-Wizard/helpers/system_helper.php): failed to open stream: Permission denied in /opt/lampp/htdocs/PHP-Wizard/core/init.php on line 9
  
  Fatal error: require_once(): Failed opening required '../../htdocs/PHP-Wizard/helpers/system_helper.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/PHP-Wizard/core/init.php on line 9
  </code></pre>
  
  <p>I tried going one folder up with <code>../</code> , but it doesn't work.</p>
  
  <p>I looked around for a similar error to mine, but no luck. They all say <code>No such file or directory in (path)</code>.</p>
  
  <p>Could it be that it is the same error, or do i really need to change my permissions, if so, how can i do that?</p>
  
  <p>Edit: When i use <code>include_once('helpers/system_helper.php');</code> i get this error:</p>
  
  <pre><code>Warning: include_once(helpers/system_helper.php): failed to open stream: Permission denied in /opt/lampp/htdocs/PHP-Wizard/core/init.php on line 9
  
  Warning: include_once(): Failed opening 'helpers/system_helper.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/PHP-Wizard/core/init.php on line 9
  
  Warning: include_once(helpers/format_helper.php): failed to open stream: Permission denied in /opt/lampp/htdocs/PHP-Wizard/core/init.php on line 10
  
  Warning: include_once(): Failed opening 'helpers/format_helper.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/PHP-Wizard/core/init.php on line 10
  
  Warning: include_once(helpers/db_helper.php): failed to open stream: Permission denied in /opt/lampp/htdocs/PHP-Wizard/core/init.php on line 11
  
  Warning: include_once(): Failed opening 'helpers/db_helper.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/PHP-Wizard/core/init.php on line 11
  </code></pre>