how to change ips

ultimategp1

Verified User
Joined
Jul 6, 2008
Messages
35
Hi i switched datacenters and got a new ip for directadmin already....but what i dont get is how to change the ip for the server (i have 3 old ips being used with users in them and dont know how to change those old ips to new ones)

and also does this mean that i will also have to change my netmask? if so how and to what?

please let me know thanks!
 
Don't forget to contact DirectAdmin Sales to have them change the license IP# for your server.

Jeff
 
User accounts listed against old and new IP's

I too have had to change the IP address of my server.

I added the new IP address and modifed each of the user accounts to use the new IP address.

Now under IP Management, the old IP address still has 5 users using it, as well as the new IP address having the 5 users using it. I can't delete the old IP address because it says there are still users assigned, yet I have moved all 5 users to the new IP address.

On top of that, each of the users websites now only displays the Apache welcome page instead of the proper website.

How do I fix this mess?
 
Hello pcwitchdoctor

Usually DA makes all the configuration and overwrites the files as necessary.
But if not , edit the files below manually.

Each domains document root must be pointed to
/home/username/domains/your_domain.com/public_html
instead of
/var/www/html
in the file
usr/local/directadmin/data/users/username/httpd.conf

You might also need to check
etc/httpd/conf/ips.conf
to see if it has the correct values.

Edit the DocumentRoot parameter in both files to reflect the correct path,
and restart httpd.
 
Last edited:
There's a script in the DirectAdmin scripts directory which will automatically change everything needed to move users from one IP# to another.

Jeff
 
There's a script in the DirectAdmin scripts directory which will automatically change everything needed to move users from one IP# to another.

Jeff

I did use that script. It made a real mess of things. It only moved the primary web address and missed any users sub domains or additional names like pop.domain.com stayed at the old IP address. I then had to manually change the IP's for the addresses it missed.
 
Hello pcwitchdoctor

Usually DA makes all the configuration and overwrites the files as necessary.
But if not , edit the files below manually.

Each domains document root must be pointed to
/home/username/domains/your_domain.com/public_html
instead of
/var/www/html
in the file
usr/local/directadmin/data/users/username/httpd.conf

You may also need to check
etc/httpd/conf/ips.conf
to see if it has the correct values.

Edit the DocumentRoot parameter in both files to reflect the correct path,
and restart httpd.

usr/local/directadmin/data/users/username/httpd.conf is correct.

etc/httpd/conf/ips.conf has both the old and new IP's. If I remove the old IP's, they are re-inserted by Diract Admin automatically, just as it say's in the rem statements at the top of the file.

I have 5 users on the system. IP management says I have 6 users assigend to the old IP address, and 5 users assiged to the new IP address. When I check each users settings, they are set to the new IP address only. I do not have 11 users, only 5.

I can't remove the old IP as Diract Admin say's I still have users assiged to the IP address, which I don't.
 
Back
Top