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

vestacp change server ip

General questions about VestaCP
Post Reply
  • Print view
Advanced search
17 posts
  • Previous
  • 1
  • 2
ae9803
Posts: 2
Joined: Fri Oct 17, 2014 6:14 pm

Re: vestacp change server ip
  • Quote

Post by ae9803 » Fri Oct 17, 2014 6:37 pm

Ok an update,
I had to change the ip in the virtual hosts on both apache and nginx.
Top

crypto
Posts: 5
Joined: Wed Oct 08, 2014 8:16 pm

Re: vestacp change server ip
  • Quote

Post by crypto » Sun Oct 19, 2014 9:42 am

or look here for the easy way :

viewtopic.php?f=10&t=5975
Top

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

Re: vestacp change server ip
  • Quote

Post by skurudo » Sun Mar 29, 2015 7:04 pm

ae9803 wrote:Hello,
I know this is an old topic, but after following the steps, I still cannot get nginx started. It still shows the old IP address even after I changed it in the conf. file. Any advice? Starting nginx: nginx: [emerg] bind() to 104.131.86.75:80 failed (99: Cannot assign requested address) The old config file has been deleted and the new one has been created to 104.131.54.137.conf still doesnt work.
/etc/apache2/conf.d/your-old-ip.conf
/etc/nginx/conf.d/your-old-ip.conf
/usr/local/vesta/data/ips/your-old-ip

Search and remove file with your old IP
Top

protocore
Posts: 26
Joined: Thu Sep 24, 2015 1:10 pm

Re: vestacp change server ip
  • Quote

Post by protocore » Thu Oct 22, 2015 2:45 pm

uday4ru wrote:Great thanks for help , vps is up now on new ip.
thanks
This has not worked for me explain

there is nothing in the file ?>
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: vestacp change server ip
  • Quote

Post by baijianpeng » Tue Sep 27, 2016 12:25 pm

Today I met the same problem : my server changed IP so I can not open the website. I followed above mentioned steps, but still can not solve it.

Finally I noticed that I also need to modify the DNS file for that domain:
/home/admin/conf/dns/<your.domain.com>.db
There are also several records of old IP address in that file. We need to replace them with the new IP address.
Top

mr4k
Posts: 3
Joined: Fri Sep 30, 2016 2:18 pm

Re: vestacp change server ip
  • Quote

Post by mr4k » Fri Sep 30, 2016 2:35 pm

If somebody else stumbles this thread googling like i did here is the way that worked for me on Vesta 0.9.8-16.
I had only one IP on my old server and 1 IP on a new one.
On a new server:
1) Login to vesta via your browser
2) Go to "IP" page (your-vesta-ip:8083/list/ip/)
3) Click on "apply to selected" and choose "reread IP". Click white arrow to the right (submit).
Done.

Code: Select all

http://www.awesomescreenshot.com/image/1657011/726ca39e724b789aa793f6f82b94398d
Last edited by mr4k on Tue Oct 04, 2016 4:55 pm, edited 1 time in total.
Top

mr4k
Posts: 3
Joined: Fri Sep 30, 2016 2:18 pm

Re: vestacp change server ip
  • Quote

Post by mr4k » Tue Oct 04, 2016 4:57 pm

XoXiLhJ0mn wrote:Hi,

By doing so, you simply executed some functions written in the script that is included in the change-ip-script.

Skurudo mentions: Search and remove file with your old IP. This you did not understand. Now, there is a file under the Vesta directory which has the name euqal to ip address. As you did not change it, the re-read-ip did that.

The change-ip script does this as well. By executing the read-ip, you did the missing.

It would be helpful to everyone if the script change-ip into the vesta default scripts.
If i understood you correctly not all Vesta versions have change-ip script. If so is there a way to update Vesta in order it could have the script?
Top


Post Reply
  • Print view

17 posts
  • Previous
  • 1
  • 2

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