Control Web Panel

WebPanel => Installation => Topic started by: locvfx on February 20, 2017, 03:23:41 AM

Title: [RESOLVED] Hostname resetting after network restart
Post by: locvfx on February 20, 2017, 03:23:41 AM
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
Title: Re: [RESOLVED] Hostname resetting after network restart
Post by: majorb on July 30, 2018, 10:01:06 PM
Thanks!

Dev, pls add this info to that page.
http://centos-webpanel.com/system-requirements