ArafatKn.Com

Go Ahead with the Power of Technology

How to Turn off force SSL Redirection on cPanel/WHM

You can do this by editting “Tweak Settings” on WHM.

If you are able to access WHM panel as root. Then Follow system-1. If you are unable to access WHM due to SSL error and have SSH access then follow system-2.

System-1:

Login to WHM as root.
Then go to “Tweak Settings” under “Server Configuration”.
Click on “Redirection” Tab.
Select “off” in “Always redirect to SSL” option. See below image.
Capture141

Then click on “Security” Tab.
Select “off” in “Require SSL” option. See below image.
Capture142

Thats all. Done.
Now logout from WHM. Now visit http://server-ip/whm or htpp://yourdomain.com/whm or http://yourdomain.com:2086/ and you will be redirected to http://yourdomain.com:2086/ or http://server-ip:2086/

System-2:

Login as root via any SSH client (example. PUTTY).
Now write

vi /var/cpanel/cpanel.config

This will open the cpanel.config file with VI Editor.
Press “insert” button of your keyboard. This will start editting the file.
Now find “alwaysredirecttossl” and “requiressl” line. and assign them “0”. See below code:

alwaysredirecttossl=0

requiressl=0

Now press “esc” (escape) button of your keyboard. and write “:wq”.

:wq

This will save your file and exit VIM Editor.
Now close SSH Client (PUTTY) and login to WHM.
Now visit http://server-ip/whm or htpp://yourdomain.com/whm or http://yourdomain.com:2086/ and you will be redirected to http://yourdomain.com:2086/ or http://server-ip:2086/

Leave a Reply

Your email address will not be published. Required fields are marked *

Personal Blog of ARAFAT ISLAM © 2016