title: Permission Files Nescessity and Failed Open Stream
body: <p>I just installed XAMPP on Ubuntu and came across this error on my website page... </p>
  
  <pre><code>Warning: require_once(core/init.php): failed to open stream: Permission denied in 
  
  /opt/lampp/htdocs/lr/start.php on line 44
  
  Fatal error: require_once(): Failed opening required 'core/init.php' (include_path='.:/opt
  
  /lampp/lib/php') in /opt/lampp/htdocs/lr/start.php on line 44
  </code></pre>
  
  <p>So I then went across and ran several lines of code changing the permissions for <code>/opt/lampp/htdocs</code> and the <code>php.ini</code> file with this code</p>
  
  <pre><code>sudo chmod 777 filename
  </code></pre>
  
  <p>The problem is that I'm still receiving the error from php. So my questions is, what am I missing in terms of which files should be executable so that I can run my code.</p>