New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

[RESOLVED] Hostname resetting after network restart

Started by locvfx, February 20, 2017, 03:23:41 AM

Previous topic - Next topic

locvfx

This happened when you have a public Cloud VPS. To fix this issue, just follow these steps:

1. Start, we need to set hostname
# hostname your_hostname
(it must be sub domain, for example  ns1.domain.com)


2. edit  /etc/sysconfig/network :
# nano /etc/sysconfig/network

change you hostname value accordingly
HOSTNAME=subdomain.yourdomain.com

3. Edit your hostss file
# nano /etc/hosts
127.0.0.1 subdomain.yourdomain.com
YOUR_SERVER_PUBLIC_IP subdomain.yourdomain.com

4. You need to add an A record to your sub domain, point to your server IP

5. Restart cwpsvr
# service cwpsrv restart