Saving templates permission denied


Active member
Hey everyone,

I keep getting permission denied when saving templates, the data and internal data folders are set to 777 including their subdirectories. Is this correct? What should the .data file permissions be as well as everything else under these two folders? 644?

Thank you :)


Active member
Just checked there and that directory is 777 and when I save a template it gives the error:

file_put_contents(/public_html/internal_data/templates/S.10,L.1,account_personal_details.php): failed to open stream: Permission denied

Jake Bunce

XenForo moderator
Staff member


If you have shell access then try running these commands to recursively set permissions in those directories:

chmod -R 777 data

chmod -R 777 internal_data

You might also try 755 permissions. Depending on how PHP is installed, 755 may still be writable. I have seen some server configurations throw errors with 777.