Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Disabling Mod_Ruid2

Discussion in 'EasyApache' started by sonicsam, Sep 3, 2017.

Tags:
  1. sonicsam

    sonicsam Member

    Joined:
    Apr 5, 2012
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    I am using Mod_Security but finding lots of problems with running with mod_ruid2 so I have been considering disabling mod_ruid2 and enabling suphp in easyapache but if I do all the sites show permissions errors (which makes sense I guess).

    Is there and easy way to fix this without having to check every site?
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,664
    Likes Received:
    69
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    use below at you own risk but have used many times with no issues

    Change all permissions for folders from 777 to 755
    find /home/*/public_html -type d -exec chmod 755 {} \;

    Change all permissions for files from 666 to 644
    find /home/*/public_html -type f -exec chmod 644 {} \;

    Remove any php_value and php_flag entries in .htaccess files as they will produce an Internal Server Error if in an account's .htaccess
    find /home -type f -name '.htaccess' -exec grep -Hrn 'php_value' '{}' \;
    find /home -type f -name '.htaccess' -exec grep -Hrn 'php_flag' '{}' \;

    after you find the php directive above either remove them or relocate them to the clients php.ini

    after you have completed you can tail your Apache error_log
    to see if there is anything else that may be out of wack

    since your running mod_ruid2 no need to seach for nobody files :)

    =======================================

    and an even easier method is to switch CloudLinux & cageFS

    and enable LSAPI and no need to switch anything
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You may also find the following document helpful for information about permission and ownership requirements with suPHP:

    PHP Handlers - EasyApache 4 - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice