suPHP permission requirements for all files or only PHP scripts?
- by puk
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
SuPHP won't allow chmod of 777 so we need to set all files to 644 and directories to 755
Your scripts and directories can now, only have a maximum of 755 permissions
Set file permission(s) to allow read access only by you (e.g., chmod 600 filename.suphp).
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?