Skip to main content

PHP public_html permissons

Comments

10 comments

  • cPanelMichael
    Hello, Check to see if "Enable File Protect" is enabled under the "Security" tab in "WHM >> Tweak Settings". The File Protect functionality will check the permissions and ownership values on each user account's home and public_html directories and each addon domain's DocumentRoot directory and then set the values accordingly. Note that rather than disabling this option, you may want to consider switching to a different PHP handler: PHP Handlers - EasyApache 4 - cPanel Documentation Thank you.
    0
  • quizknows
    If you run multiple sites on a server, for security reasons you should ALWAYS use file protect, and public_html itself should be 750. Never should you set public_html itself as 755. Check your php handling, apache MPM, etc as necessary to make it work.
    0
  • mreidgs
    The only option I have for PHP handler is PHP or none. Default PHP is set to: ea-php56
    0
  • mreidgs
    System PHP-FPM Status: Off Should I turn this on?
    0
  • cPanelMichael
    The only option I have for PHP handler is PHP or none.

    Hello, Are you checking from within Web Host Manager? The "PHP Handlers" tab is found within the "WHM >> MultiPHP Manager" option. You can read about each PHP handler at: PHP Handlers - EasyApache 4 - cPanel Documentation Thank you.
    0
  • mreidgs
    Here's a screenshot
    0
  • cPanelMichael
    Hello, It looks like it's CGI that's available. You can install additional handlers using "WHM >> Software >> EasyApache 4" if you want to use a different handler. That said, check out the section on CGI for information on how PHP scripts are executed when it's enabled: PHP Handlers - EasyApache 4 - cPanel Documentation Thank you.
    0
  • mreidgs
    There are some differences between the 2 servers I have, both are with GoDaddy. One is the latest version of cpanel, but hasn't been migrated to EasyApache4, I ran the migration last week but I broke some Wordpress sites so I had to revert back. It has the option for configure php and suexec. The php handler is set to suphp and suexec is set to on. The other server is cpanel version 66.0.29, but has been migrated to EasyApache4, so it has the Multiphp option. The only option I have for php handler there is cgi.
    0
  • cPanelMichael
    The other server is cpanel version 66.0.29, but has been migrated to EasyApache4, so it has the Multiphp option. The only option I have for php handler there is cgi.

    You can install additional handlers such as suPHP using "WHM >> Software >> EasyApache 4". The "mod_suphp" package is found under the "Apache Modules" section. Thank you.
    0
  • mreidgs
    Ok, that seems to have solved the issue. Thanks!
    0

Please sign in to leave a comment.