Edit the cPanel Tweak Settings page using SSH

Edit the cPanel Tweak Settings page using SSH

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 and you will need to make changes to the server to gain access again. This us 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 login to your server using the root account and first, ensure you have nano installed to your server

Yum install nano -y

Next, once installed open up the cpanel.config file;

nano /var/cpanel/cpanel.config

cPanel Tweak Settings

 

 

 

 

 

 

 

 

 

 

 

 

 

Free cPanel VPS License

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 forces 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

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

How was this article?

Edit the cPanel Tweak Settings page using SSH
2 5 100%

cPanel

Select Language
Free cPanel VPS License with 8x E5-2630v3 vCores, 750GB Space, 10GB Ram & 5TB BandwidthJUST £32.95 /Month
+ +

FREE IPs & SUBNETS

X

ON SELECTED OPENVZ AND KVM VPS SERVERS. AVAILABLE IN MULTIPLE LOCATIONS AROUND THE WORLD

 

 

Are you currently hosting with Liquid Web or HostGator? Receiving a really bad service? speak to us on live chat! we have helped hundreds of Liquid Web and HostGator customers get back online

THANK YOU FOR SENDING!

YOUR E-MAIL HAS BEEN SAVED