Current time: 12-24-2024, 10:17 PM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] Change the main domain name
Author Message
koko92_national Offline
Junior Member
*

Posts: 70
Joined: Jul 2008
Reputation: 0
Post: #1
[HowTo] Change the main domain name
Hi I've had a situation that i had to change the domain name that access the ISP. Here is how i've change it:

Code:
#nano /etc/apache2/sites-available/00_master.conf

Find admin.{DOMAIN} where {DOMAIN} is your out of date domain name.
and replace with admin.{DOMAIN_2} where {DOMAIN_2} is your new domain name.
Ctrl + O; Ctrl +X;

Code:
#mv /var/cache/bind/admin.{DOMAIN}.db /var/cache/bind/admin.{DOMAIN_2}.db
#nano /var/cache/bind/admin.{DOMAIN_2}.db

Find and replace everywhere {DOMAIN} with {DOMAIN_2}
Ctrl + O; Ctrl +X;

Code:
#nano /etc/bind/named.conf

Find

Code:
// dmn [admin.{DOMAIN}] cfg entry BEGIN.
zone "admin.{DOMAIN}" {
        type    master;
        file    "/var/cache/bind/admin.{DOMAIN}.db";
        notify  YES;
};
// dmn [admin.{DOMAIN}] cfg entry END.

and replace with

Code:
// dmn [admin.{DOMAIN_2}] cfg entry BEGIN.
zone "admin.{DOMAIN_2}" {
        type    master;
        file    "/var/cache/bind/admin.{DOMAIN_2}.db";
        notify  YES;
};
// dmn [admin.{DOMAIN_2}] cfg entry END.

Ctrl +O; Ctrl + X;

Code:
#nano /etc/ispcp/ispcp.conf

Find

Code:
BASE_SERVER_VHOST = admin.{DOMAIN}

and replace it with

Code:
BASE_SERVER_VHOST = admin.{DOMAIN_2}

Ctrl +O; Ctrl + X;

Code:
#/etc/init.d/bind9 restart
#/etc/init.d/apache2 restart
#/etc/init.d/ispcp_daemon restart
#/etc/init.d/ispcp_network restart

Tested on ISPCP OMEGA 1.0.3 and works like a charm.
03-13-2011 09:09 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)