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

Change Hostname Problem

General questions about VestaCP
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
jeepou
Posts: 2
Joined: Sat Feb 07, 2015 4:24 pm

Change Hostname Problem
  • Quote

Post by jeepou » Sat Feb 07, 2015 4:29 pm

Hi all,

Sorry to disturb here, on a fresh VestaCP install, I have a little problem with the command:

v-change-sys-hostname mail.domain.com

it's return me a "v-change-sys-hostname: command not found"

Is there any solution about that? or other manual way to change the hostname?

Thank you so much.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Change Hostname Problem
  • Quote

Post by joem » Sat Feb 07, 2015 6:08 pm

jeepou wrote:Hi all,

Sorry to disturb here, on a fresh VestaCP install, I have a little problem with the command:

v-change-sys-hostname mail.domain.com

it's return me a "v-change-sys-hostname: command not found"

Is there any solution about that? or other manual way to change the hostname?

Thank you so much.

Code: Select all

hostname mail.domain.com
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Change Hostname Problem
  • Quote

Post by skurudo » Sun Feb 08, 2015 1:17 am

jeepou wrote:Hi all, v-change-sys-hostname mail.domain.com
it's return me a "v-change-sys-hostname: command not found"
Is there any solution about that? or other manual way to change the hostname?
/usr/local/vesta/bin/v-change-sys-hostname mail.domain.com

?
Top

jeepou
Posts: 2
Joined: Sat Feb 07, 2015 4:24 pm

Re: Change Hostname Problem
  • Quote

Post by jeepou » Sun Feb 08, 2015 12:48 pm

Thank you skurudo! It's work now!
Top

realjumy
Posts: 50
Joined: Sun Jul 06, 2014 12:51 pm

Re: Change Hostname Problem
  • Quote

Post by realjumy » Mon Jan 14, 2019 9:42 am

My problem is that the command works, but it doesn't persist after rebooting. Is anyone else experiencing the same issue?
Top

MAN5
Posts: 86
Joined: Sun Jan 31, 2016 4:14 am

Os: Ubuntu 15x
Web: apache + nginx
Re: Change Hostname Problem
  • Quote

Post by MAN5 » Wed Feb 06, 2019 8:26 am

Haha.
My assumption ..
This could be your ubuntu updated to 16.04. By default Ununtu16.04 BIN path directory have to do some changes.

http://linuxbsdos.com/2017/06/28/how-to ... your-path/
Top

fasttrackhost
Posts: 15
Joined: Tue Feb 05, 2019 7:10 pm

Os: Ubuntu 17x
Web: apache
Re: Change Hostname Problem
  • Quote

Post by fasttrackhost » Wed Feb 06, 2019 5:15 pm

You must make diferrence betwen:
1. your server hostname
2. vestacp configuration of your server ip and hostname

To change your server hostname you should use:

sudo hostnamectl set-hostname newhostname.yourdomain.com

change "newhostname.yourdomain.com" by relevant data. You should use a fully qualified domain name as in example and not only "yourdmain.com" as your server hostname. This will persist for ever, even after reboot.

On the other hand if you want to change the new hostname or ip you must do as Skurudo wrote above (/usr/local/vesta) and check that everything realy changed in Vestacp (because i had to it once and some files have to be edited by hand, there is no automatic way). You must go in several .config file in "/etc/user/config/web -or- dns" (replace user with your vestacp admin user: normally "admin") and in "/usr/local/vesta"
Top

mukunda
Posts: 5
Joined: Mon Mar 04, 2019 5:54 am

Os: CentOS 6x
Web: apache + nginx
Re: Change Hostname Problem
  • Quote

Post by mukunda » Fri Apr 12, 2019 3:54 am

v-change-sys-hostname mail.domain.com
Данная команда у меня заработала после перезагрузки сервера (если после установки vestacp перезагрузку не делали, то и эта команда тоже не будет работать: /usr/local/vesta/bin/v-change-sys-hostname mail.domain.com).
Top


Post Reply
  • Print view

8 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
 

 

cron

Login  •  Register

I forgot my password