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.

Jail Apache vs suPHP

Discussion in 'Security' started by PeteS, Jun 26, 2017.

  1. PeteS

    PeteS Active Member

    Joined:
    Jun 8, 2017
    Messages:
    31
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    Oregon
    cPanel Access Level:
    Root Administrator
    I see this issue discussed in several threads but no clear conclusion is offered. So I'm asking for that now.

    cPanel security recommendations say to use suPHP, and they say to enable Jail Apache. But Jail Apache requires mod_ruid2 which not compatible with mod_suphp. Therefore we can't follow the recommendations.

    Which is the official cPanel blessed recommendation...?
    1- remove suPHP (If so, what is an alternative compatible with mod_ruid2?)
    2- remove mod_ruid2 (If so, what is the recommended procedure if shell is available to accounts? What is the solution for Apache Symlink Protection which is disabled when Jail Apache/mod_ruid2 are unavailable?)
     
    jndawson likes this.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    If you are focused on security, I'd go with DSO and Mod_Ruid2. However, it's important to review the considerations for each handler on the following document:

    PHP Handlers - EasyApache 4 - cPanel Documentation

    You may also find this document helpful:

    How to Harden PHP - cPanel Knowledge Base - cPanel Documentation

    As far as protection against symlink attacks, we recommend using the cPanel hardened kernel or CageFS if possible:

    Symlink Race Condition Protection - EasyApache 4 - cPanel Documentation

    Thank you.
     
  3. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    991
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Not to hijack this thread, but how does one enhance server performance when using these security profiles?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Performance often depends on several factors. Could you provide some more details about the server in-question (e.g. types of websites, server hardware, amount of traffic)?

    Thank you.
     
Loading...

Share This Page