Cannot access cPanel/WHM after reboot

zohair28

Member
Jan 26, 2010
13
1
53
Hi All,

During fixing /home file permissions. The /etc file permission changed and now SSHD is down. cPanel/WHM is working fine but I can not access server via SSH. I tried to reinstall SSH via cPanel/WHM RPM manager but I can not.

Is there any solution via WHM to restore /etc file permission for SSH. I tried to restart SSH and update cPanel via WHM but it is still down.

Any ideas how o solve this ???


Regards
 

thewebhosting

Well-Known Member
May 9, 2008
1,201
1
68
Re: SSHD down and I can not access server/ cPanel/WHM is working

I do not think so if there is anyway you can restore permissions of /etc folder from WHM. Regarding SSH not working issue, please make sure that the port you have set up for SSH is indeed open in your server firewall.
 

asadhaider

Registered
Jan 14, 2012
1
0
51
cPanel Access Level
Root Administrator
Re: SSHD down and I can not access server/ cPanel/WHM is working

Hi All,

During fixing /home file permissions. The /etc file permission changed and now SSHD is down. cPanel/WHM is working fine but I can not access server via SSH. I tried to reinstall SSH via cPanel/WHM RPM manager but I can not.

Is there any solution via WHM to restore /etc file permission for SSH. I tried to restart SSH and update cPanel via WHM but it is still down.

Any ideas how o solve this ???


Regards
Try this:
Code:
http://yourdomain.com:2086/scripts2/doautofixer?autofix=safesshrestart
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
Re: SSHD down and I can not access server/ cPanel/WHM is working

Hello,

Are you aware what permissions are changed exactly? If so the better solution is to connect to the server via console and fix them!

Thank you,
Nibin.
 

mrishadali

Registered
Apr 23, 2012
3
0
51
cPanel Access Level
Root Administrator
Re: SSHD down and I can not access server/ cPanel/WHM is working

Hi all,
I am a newbie with server management.
I did a graceful reboot yesterday. I can access it via SSH but cPanel and WHM not working.
Any help is appreciated.
Thanks
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
If you are running a firewall, take down the firewall or flush it to check if you can then access cPanel and WHM:

Code:
/sbin/iptables -F
You can see if you are running CSF or APF with the following:

Code:
whereis csf
whereis apf
If you have either, disable that firewall. Oftentimes, a reboot will knock out any rules you had for allowing the cPanel and WHM ports if whoever added the rules for the ports didn't actually save the changes with service iptables save.

If you are able to then access, please add these rules to the firewall after restarting iptables again to reload the rules:

Code:
service iptables restart
/sbin/iptables -I INPUT -p tcp -m tcp --dport 2082:2083 -j ACCEPT
/sbin/iptables -I INPUT -p tcp -m tcp --dport 2086:2087 -j ACCEPT
/sbin/iptables -I INPUT -p tcp -m tcp --dport 2095:2096 -j ACCEPT
Now, ensure the new rules save this time:

Code:
service iptables save