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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disabling Mod_Ruid2

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

Tags:
  1. sonicsam

    sonicsam Member

    Joined:
    Apr 5, 2012
    Messages:
    12
    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,610
    Likes Received:
    51
    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
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    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.
     
Loading...

Share This Page