Page 1 of 1
My server changed the IP
Posted: Mon Jun 01, 2015 1:20 am
by edica
Hello,
What is the best way to change the IP in VestaCP?
Thanks.
Re: My server changed the IP
Posted: Mon Jun 01, 2015 7:42 am
by tjebbeke
Re: My server changed the IP
Posted: Mon Jun 01, 2015 1:15 pm
by edica
Just run the script? No need to do anything else?
Re: My server changed the IP
Posted: Mon Jun 01, 2015 1:30 pm
by skurudo
edica wrote:Just run the script? No need to do anything else?
Pray, I think ;-)
But this one-script works for users (I don't see many claims)
Re: My server changed the IP
Posted: Mon Jun 01, 2015 2:21 pm
by edica
I run the script but all sites are in error 500. :/
Re: My server changed the IP
Posted: Mon Jun 01, 2015 2:27 pm
by skurudo
What's in error logs? When your restart nginx/apache you get error?
Re: My server changed the IP
Posted: Mon Jun 01, 2015 3:08 pm
by edica
* Restarting nginx nginx
...done.
* Restarting web server apache2
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/conf.d/xx.xx.xx.xx.conf:1
...done.
Re: My server changed the IP
Posted: Mon Jun 01, 2015 3:36 pm
by skurudo
If you have here /etc/apache2/conf.d conf-file with old IP, remove/move/delete this file and restart apache2 again
Re: My server changed the IP
Posted: Mon Jun 01, 2015 3:48 pm
by edica
Best solution for IP change:
1. Log in Vesta with new IP and Rebuild in all users.
2. Change to new Netmask here: /usr/local/vesta/data/ips/your-ip
3. Reboot server.
4. The firewall on Vesta need to be restarted. (Bug?)
Now everything works!
Thank you.
Re: My server changed the IP
Posted: Mon Jun 01, 2015 4:19 pm
by skurudo
Nice! Thanks and you for mini-guide. ;-)