Question
Why does Security Advisor report "Apache vhosts are not segmented or chroot()ed"?
Answer
You will see this notice when your server is not configured to load user sites in a jailed environment. When a server is configured without jailed users, users may have access to data outside of their environment. The notice can be removed by following the procedure below.
Procedure
- Check to see if mod_ruid2 is installed on your server by running the following command:
rpm -qa|grep mod_ruid2
- If mod_ruid2 is not installed, install it at WHM "Home / Software / EasyApache 4".
- Navigate to "Home / Server Configuration / Tweak Settings" in WHM.
- Click on the "Security" tab.
- Select the "On" option next to "EXPERIMENTAL: Jail Apache Virtual Hosts using mod_ruid2 and cPanel® jailshell."
- Click the "Save" button.
- Navigate to "Home / Account Functions / Manage Shell Access" in WHM.
- Deselect the "Jailed" and "Disabled" checkboxes.
- Click the "Apply to" button under "Jailed Shell" to change the shell of accounts from Normal to Jailed.
- Click the "OK" button in the "Are you sure?" pop-up.
Comments
0 comments
Article is closed for comments.