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 Web Server
  • Search

My server changed the IP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
edica
Posts: 126
Joined: Tue May 26, 2015 7:31 pm

My server changed the IP
  • Quote

Post by edica » Mon Jun 01, 2015 1:20 am

Hello,

What is the best way to change the IP in VestaCP?

Thanks.
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: My server changed the IP
  • Quote

Post by tjebbeke » Mon Jun 01, 2015 7:42 am

Try this:

viewtopic.php?f=10&t=5039&start=10#p24187
viewtopic.php?f=10&t=5975
Top

edica
Posts: 126
Joined: Tue May 26, 2015 7:31 pm

Re: My server changed the IP
  • Quote

Post by edica » Mon Jun 01, 2015 1:15 pm

Just run the script? No need to do anything else?
Top

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

Re: My server changed the IP
  • Quote

Post by skurudo » Mon Jun 01, 2015 1:30 pm

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)
Top

edica
Posts: 126
Joined: Tue May 26, 2015 7:31 pm

Re: My server changed the IP
  • Quote

Post by edica » Mon Jun 01, 2015 2:21 pm

I run the script but all sites are in error 500. :/
Top

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

Re: My server changed the IP
  • Quote

Post by skurudo » Mon Jun 01, 2015 2:27 pm

What's in error logs? When your restart nginx/apache you get error?
Top

edica
Posts: 126
Joined: Tue May 26, 2015 7:31 pm

Re: My server changed the IP
  • Quote

Post by edica » Mon Jun 01, 2015 3:08 pm

* 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.
Top

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

Re: My server changed the IP
  • Quote

Post by skurudo » Mon Jun 01, 2015 3:36 pm

If you have here /etc/apache2/conf.d conf-file with old IP, remove/move/delete this file and restart apache2 again
Top

edica
Posts: 126
Joined: Tue May 26, 2015 7:31 pm

Re: My server changed the IP
  • Quote

Post by edica » Mon Jun 01, 2015 3:48 pm

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.
Top

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

Re: My server changed the IP
  • Quote

Post by skurudo » Mon Jun 01, 2015 4:19 pm

Nice! Thanks and you for mini-guide. ;-)
Top


Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “Web Server”



  • 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