Hello. Hope everyone is safe and healthy.
I'm following the recommendations on hardening cpanel provided by Imunify here: 17 Ways to Improve cPanel Security in 2021
How would the suggested change be reflected in the stanza below? The suggested changes don't really line up exactly as the pattern in the existing file.
Currently in /etc/apache2/apache.conf first stanza (although Imunify says it's located in /etc/httpd/conf/httpd.conf file) :
===============================================
Suggested Imunify change:
To the following:
[/CODE]
===============================================
Also suggested from Immunify but I can't find it in WHM:
===============================================
And finally:
Toggling mod_ruid2 ON in Apache configuration does not take effect. It defaults to off.
I'm following the recommendations on hardening cpanel provided by Imunify here: 17 Ways to Improve cPanel Security in 2021
How would the suggested change be reflected in the stanza below? The suggested changes don't really line up exactly as the pattern in the existing file.
Currently in /etc/apache2/apache.conf first stanza (although Imunify says it's located in /etc/httpd/conf/httpd.conf file) :
===============================================
Code:
<Directory "/">
AllowOverride All
Options Indexes ExecCGI FollowSymLinks IncludesNOEXEC
</Directory>
Code:
Options Indexes FollowSymLinks
Code:
Options FollowSymLinks
===============================================
Also suggested from Immunify but I can't find it in WHM:
Code:
You can disable compilers using WHM. The Compilers Tweak option setting will let you disable compilers for any unprivileged user. The Compiler Tweak setting is found in the Security Center of WHM.
And finally:
Code:
CPanel Security Advisor:
Apache vhosts are not segmented or chroot()ed.
Enable “mod_ruid2” in the “EasyApache 4” area, enable “Jail Apache” in the “Tweak Settings” area, and change users to jailshell in the “Manage Shell Access” area. Consider a more robust solution by using “CageFS on CloudLinux”. Note that this may break the ability to access mailman via Apache.