Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Unable to access WHM login page. Error: HTTP error 401  (Read 8523 times)

0 Members and 1 Guest are viewing this topic.

aneeshs

  • Guest
Unable to access WHM login page. Error: HTTP error 401
« on: April 29, 2017, 07:06:31 pm »
While trying to access the WHM login page via browser, if you get an error "HTTP error 401. You do not have permission to access this page" and the error log (/usr/local/cpanel/logs/error_log) is showing an error "Dropping connection from (IP) because of tcp_wrappers at cpsrvd.pl line 3552", perform the below modifications to resolve the issue:

- Check /etc/hosts.allow
   vi /etc/hosts.allow

- Add the below lines:
   cpaneld: ALL
   whostmgrd: ALL
   webmaild: ALL

- Check /etc/hosts.deny
   vi /etc/hosts.deny

- Add # to the below lines:
   cpaneld: ALL
   whostmgrd: ALL
   webmaild: ALL

If you are unable to edit /etc/hosts.allow or /etc/hosts.deny, check the attribute and remove the 'a' and 'i' attributes:

# lsattr /etc/hosts.deny /etc/hosts.allow
----ia-------e- /etc/hosts.deny
----ia-------e- /etc/hosts.allow

# chattr -ia /etc/hosts.deny /etc/hosts.allow

Now you will be able to edit /etc/hosts.allow or /etc/hosts.deny and do the modification.