Current time: 01-25-2021, 05:09 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Change network IP
Author Message
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #2
RE: Change network IP
Stop daemon ispcp

/etc/init.d/ispcp_daemon stop

mysql

mysql -u root -p
mysql> USE ispcp;
mysql> UPDATE server_ips SET ip_number = "server2-ip" WHERE ip_id = 1;
mysql> UPDATE `domain` SET `domain_status` = 'change' WHERE `domain_status` = 'ok';
mysql> UPDATE `subdomain` SET `subdomain_status` = 'change' WHERE `subdomain_status` = 'ok';
mysql> UPDATE `domain_aliasses` SET `alias_status` = 'change' WHERE `alias_status` = 'ok';
mysql> UPDATE mail_users SET status="toadd" where status="ok";
mysql> quit

Run script
/var/www/ispcp/engine/ispcp-rqst-mngr

Start ispcp daemon

/etc/init.d/ispcp_daemon start

Change bin and apache IP

sed -i "s/xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx/g" /etc/apache2/sites-enabled/* /etc/bind/* /var/cache/bind/* /etc/ispcp/*/working/*

Restart services

/etc/init.d/apache2 restart
/etc/init.d/bind9 restart
03-29-2009 05:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[SOLVED] Change network IP - homodo - 03-29-2009, 04:55 AM
RE: Change network IP - kurgans - 03-29-2009 05:22 AM
RE: Change network IP - homodo - 03-29-2009, 06:15 AM
RE: Change network IP - aseques - 04-17-2009, 10:39 PM
RE: Change network IP - BeNe - 04-17-2009, 10:52 PM
RE: Change network IP - aseques - 04-17-2009, 11:59 PM
RE: Change network IP - BeNe - 04-18-2009, 12:29 AM
RE: Change network IP - aseques - 04-18-2009, 01:18 AM
RE: Change network IP - BeNe - 04-18-2009, 07:41 PM
RE: [SOLVED] Change network IP - acaiger - 01-11-2010, 01:49 PM
RE: [SOLVED] Change network IP - kilburn - 01-11-2010, 05:52 PM

Forum Jump:


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