Skip to main content

Does cPanel protect against bad file permissions?

Comments

4 comments

  • Infopro
    For SuPHP, files 644 and directories 755. Configure PHP and suEXEC - Documentation - cPanel Documentation
    0
  • nivekau
    Thanks Infopro, but I don't understand your response. Does cpanel now have some sort of built in protection against file and folder permissions that are LESS restrictive than 0755 (folders) and 0644 (files) ?
    0
  • Jcats
    No, like Infopro said, its from SuPHP, it protects you from using unnecessary permissions which could lead to security issues. Since PHP runs as the user, there is never any reason you should need higher permissions outside off 755/644. Occasionally some PHP scripts need execute permissions, example the scripts that pipe emails into tickets for billing software like WHMCS/CE
    0
  • cPanelMichael
    Hello, You can also post the output from /usr/local/apache/logs/error_log if you are encountering additional 500 error messages in your browser after correcting the permissions on the files to ones supported by suPHP. We should be able to determine the cause of the error message based on the output. Thank you.
    0

Please sign in to leave a comment.