Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Hostname change won't persist

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
hellowodl
Posts: 1
Joined: Mon Jul 30, 2018 9:07 pm

Os: Ubuntu 15x
Web: nginx + php-fpm
Hostname change won't persist
  • Quote

Post by hellowodl » Mon Jul 30, 2018 9:15 pm

Changing the hostname seems pretty straightforward using v-change-sys-hostname, yet it seems impossible to let this persist through reboots.

Code: Select all

root@weacceptcrypto:~# v-change-sys-hostname weacceptcrypto.org
root@weacceptcrypto:~# hostname
weacceptcrypto.org
Works nice and dandy methinks.
Up next! Reboot the whole thing:

Code: Select all

root@weacceptcrypto:~# hostname
weacceptcrypto
oh you little ducker

Any ideas to let this persist through reboots?
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Hostname change won't persist
  • Quote

Post by dreiggy » Fri Aug 10, 2018 9:17 pm

Try to log out and log in.
Top

RealAct
Posts: 1
Joined: Fri Aug 17, 2018 11:11 am

Os: CentOS 6x
Web: apache
Re: Hostname change won't persist
  • Quote

Post by RealAct » Fri Aug 17, 2018 11:23 am

Hello,

It is advisable to ensure that the required hostname is correctly specified in /etc/hosts file in the server.

Regards,
-Eli
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Hostname change won't persist
  • Quote

Post by skamasle » Fri Aug 31, 2018 9:43 am

Its normal if you use a vps, say your provider change hostname from node, if not in any reboot will be changed.
Top

baoang
Posts: 40
Joined: Fri Feb 23, 2018 7:31 am

Os: CentOS 5x
Web: nginx + php-fpm
Re: Hostname change won't persist
  • Quote

Post by baoang » Wed Sep 12, 2018 2:44 pm

$hostname will give you an immediate change, but for persistent change, a better solution is to modify the /etc/sysconfig/network file.

Code: Select all

vi /etc/sysconfig/network
and then locate HOSTNAME= line, change it to what you want and restart your machine.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password