Edit Tweak Settings From An SSH Console
Sometime you may need to edit the cPanel tweak settings page inside WHM. But you may not have access to your server using the GUI. For example, if your SSL settings have changed it’s possible WHM will lock you out of your server. You will need to make changes to the server to gain access again. This is especially true if you have the option “redirect to hostname” activated and you change your server’s hostname to something that does not resolve correctly. You would get locked out of your server.
You can log in to your server using the root account and first, ensure you have nano installed on your server
yum install nano -y
Next, once installed open up the cpanel.config file;
nano /var/cpanel/cpanel.config

From here you can see the list of options that would normally be displayed in WHM when clicking on the “tweak settings” link. You can enable and disable option’s here by swapping the values assigned to features for example;
To disable force SSL logins, change the line requiressl=1 to requiressl=0 or, to change the maximum amount of emails accounts can send per house change the line maxemailsperhour=100
Finally, after you have made the required edits remember to enable your new settings always restart cPanel by issuing the command;
/usr/local/cpanel/scripts/restartsrv_cpsrvd
Always ensure you have a firewall installed to your cPanel server.
Tired of paying for cPanel? Get a free cPanel license on our cPanel NVMe VPS Plans.
How was this article? – Edit the cPanel Tweak Settings page using SSH
More from cPanel
How To Install A Cloudflare Origin SSL Certificate In cPanel
Free SSL Certificates from places like cPanel or Let's Encrypt are great. When Let's Encrypt first introduces free SSL Certificates …
Create a SWAP partition on CentOS, RHEL and AlmaLinux without a reboot
SWAP is a memory type that Linux NVMe VPS Servers use to process requests. Memory will be held in SWAP …
Help fixing Error: last request failed: [AUTH] Authentication failed.
The Error: last request failed: [AUTH] Authentication failed error can be caused by a range of things. It could be …