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.