suPHP permission requirements for all files or only PHP scripts?

Posted by puk on Server Fault See other posts from Server Fault or by puk
Published on 2011-11-05T05:49:35Z Indexed on 2012/06/17 15:18 UTC
Read the original article Hit count: 266

Filed under:
|
|

Generally with PHP, files/folders have a permission of 0777 when we want to write to them. suPHP forbids a permission of 0777. Instead, files are supposed to have a permission of 0644 and folders have a permission 0755. However, this is always worded differently

What is the exact rule and to what files does it apply to? If I have README file somewhere in a nested directory does its permission need to be updated, or does it only apply to .php files?

© Server Fault or respective owner

Related posts about php

Related posts about permissions