Lithium Could not write compiled template - Ubuntu


When setting up the Lithium PHP Web Framework it is necessary to allocate the correct permissions to the app/resources folder, otherwise you will get a message like the one below, when Lithium tries to write the view cache files:

The solution is simple, but not very well documented:

  • sudo chmod 777 path_to_app/resources -R

And voila! Your permissions are setup and you should now have a working Lithium instance.

Alternatively, you can use this script to have any missing directories and file permissions setup by Lithium when it encounters this error.

Facebook Twitter Google+ LinkedIn Buffer
Leave us a Comment

Connect With Us

Get our monthly newsletter with tech tips for business professionals