chmod() operation not permitted - FatFree framework

Siddharth picture Siddharth · Mar 19, 2012 · Viewed 35.1k times · Source

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.

However, when I have deployed it on the server and trying to access it, it gives me a strange error which is -

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()

I have given 777 permissions to the webapp folder so chmod() should be allowed. The above suggests that there is an error while serving the template file front_page.php.

How can I fix this?

Answer

Learner picture Learner · Mar 19, 2012

For this you have to give the permissions recursively using -R for your "webapp" folder