Page 1 of 1

Change main IP

Posted: Mon Feb 01, 2016 5:00 pm
by leonardoasb
Hi,

I'm changing provider and am with the following difficulty . To perform the migration can not make the Vesta understand that the main ip changed , thus apache and nginx do not start.

Already follow some instructions here forum , but to no avail .

Could someone tell me how I change the ip , I'm using CentOS 7.1 x64 hundreds

I thank you for your help :)

Re: Change main IP

Posted: Mon Feb 01, 2016 5:52 pm
by skurudo
You can try use /usr/local/vesta/bin/v-update-sys-ip
or script from forum - viewtopic.php?t=5975

Re: Change main IP

Posted: Mon Feb 01, 2016 6:04 pm
by leonardoasb
Thanks for the quick response!

The topic of the file no longer is available to download, can provide me ?

Re: Change main IP

Posted: Mon Feb 01, 2016 6:07 pm
by skurudo
leonardoasb wrote: The topic of the file no longer is available to download, can provide me ?
Option 2 - Long way Create it yourself
all code for this file in topic.

Re: Change main IP

Posted: Mon Feb 01, 2016 6:15 pm
by leonardoasb
I take that code and saved with .sh it?

Re: Change main IP

Posted: Mon Feb 01, 2016 6:17 pm
by skurudo
leonardoasb wrote:I take that code and saved with .sh it?

Code: Select all

touch /usr/local/vesta/bin/v-change-server-ip

Code: Select all

chmod 0755 /usr/local/vesta/bin/v-change-server-ip

Code: Select all

nano /usr/local/vesta/bin/v-change-server-ip
and paste code... step by step.

Re: Change main IP

Posted: Mon Feb 01, 2016 6:25 pm
by leonardoasb
Thank you for your patience to explain step by step.

I will test and soon put the result here .

Thank you so much.

Re: Change main IP

Posted: Mon Feb 01, 2016 6:27 pm
by skurudo
leonardoasb wrote: I will test and soon put the result here .
Second way with script may be not ideal, but it can save your time anyway.
Good luck ;-)

Re: Change main IP

Posted: Tue Feb 02, 2016 10:35 am
by leonardoasb
Sku all, thank you.
Everything working!
Again, grateful.

Re: Change main IP

Posted: Tue Feb 02, 2016 10:38 am
by skurudo
Thanks ;-)
Have a nice day.