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: 333
        
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?
© Server Fault or respective owner