PeteS

Well-Known Member
Jun 8, 2017
194
35
28
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?)
 
  • Like
Reactions: jndawson

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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.
 

SoftDux

Well-Known Member
May 27, 2006
1,024
5
168
Johannesburg, South Africa
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.
Not to hijack this thread, but how does one enhance server performance when using these security profiles?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Not to hijack this thread, but how does one enhance server performance when using these security profiles?
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.