In order to do that you will need to edit the file below:
After making changes you will need to update with the following :
This command will put any changes made to the /var/cpanel/cpanel.config file into effect.
The above settings in /var/cpanel/cpanel.config correspond to the following settings in the WHM in Main >> Server Configuration >> Tweak Settings.
To secure your server via WHM, you can go through our post on How to secure your server via WHM.