title: chmod() operation not permitted - FatFree framework
body: <p>I have been developing an app in FatFree framework and now I am trying to deploy it on a server. Everything seems to be fine when I am running it on localhost.</p>
  
  <p>However, when I have deployed it on the server and trying to access it, it gives me a strange error which is -</p>
  
  <pre><code>Internal Server Error
  
  chmod(): Operation not permitted
  
  #0 /var/www/webapp/inc/main.php:62 Template::serve('front_page.php')
  #1 /var/www/index.php:65 F3::run()
  </code></pre>
  
  <p>I have given 777 permissions to the <code>webapp</code> folder so <code>chmod()</code> should be allowed. The above suggests that there is an error while serving the template file <code>front_page.php</code>.</p>
  
  <p>How can I fix this?</p>