Main ip

whyzex

Verified User
Joined
Oct 19, 2010
Messages
14
Hey everyone,

I had an ip to my server, anyway we changed the ip's, and the directadmin still shows the MAIN ip as the old one, so only one domain actually works,
how can I set the MAIN(shared) ip to the new one, so my sites could work again?

Thanks,
Gal.
 
Check the DirectAdmin scripts directory; there's a script in there you can use to change all the IP#s.

Jeff
 
Hmm, can you give me the exact folder and command please?, im not used to mess around with directadmin too much.
 
If you don't mess around with DirectAdmin too much (your words) then I must warn you that if you don't feel comfortable finding and looking into the DirectAdmin scripts directory, then I really don't feel comfortable telling you how to find scripts which if you make an error could cause a lot more problems than you have now.

So let me point out that I am NOT responsible for any use or misuse of any information I post in these forums; if you don't feel comfortable, then you should hire someone to manage your server (or at least this project for you). Probably not me, though as I charge a minimum of one hour, and this is a one-minute project.

The script is found at: /usr/local/directadmin/scripts/ipswap.sh

and it must be run as root.

The format is:
Code:
# /usr/local/directadmin/scripts/ipswap.sh <old.ip> <new.ip>
You don't type in the # character; it's there to remind you that the script must be run as root.

Jeff
 
*** Done swapping 80.*.149.* to 188.*.97.* ***

Its now all fine in the panel (thanks!), but when i access the ip itself for example: http://*.*.*.*, it just gets inside one of the my users(the must important one, through it shouldnt, it has it own domain), and all the other users dont seem to work, probably because the main one jumps to this one(everyone just redirects to this..)

UPDATE: okay it works! just had to manualy delete the old ip in each user, thanks alot jeff!
 
Back
Top