Hi
i have a problem when i reboot my server i can't access anymore in cpanel because the system can't find the hostname but looking in /etc/hosts i have it! I can get whm back only if i type from ssh "hostname host.domain.com" how can i fix?
Hi
i have a problem when i reboot my server i can't access anymore in cpanel because the system can't find the hostname but looking in /etc/hosts i have it! I can get whm back only if i type from ssh "hostname host.domain.com" how can i fix?
You also need to check your network configuration file:
/etc/sysconfig/network
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
I have a similar problem, although I don't lose connectivity to the server.
Every time the box gets rebooted the hostname will reset back to the default it was when first setup by my webhost, and therefore I have to go in cpanel, change hostname, and then also edit /etc/hosts cause it keeps leaving some leftover name which doesn't have counterpart in the dns.
Any idea where cpanel keeps the default hostname template (if any)?
Thanks,
- Adriano
Manually add the hostname in /etc/hosts and /etc/sysconfig/network this will fix the problem.
Unless you're running on a Virtuozzo VPS, if you keep losing your hostname you need to speak to your VPS provider.
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com