ispCP - Board - Support
[SOLVED] Change network IP - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED] Change network IP (/thread-6234.html)

Pages: 1 2


[SOLVED] Change network IP - homodo - 03-29-2009 04:55 AM

Change my network IP, how to modify my order for the job ISPCP
I have altered the /etc/network/interfaces and /etc/ispcp/ispcp.conf,but can not open my admin site.


RE: Change network IP - kurgans - 03-29-2009 05:22 AM

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


RE: Change network IP - homodo - 03-29-2009 06:15 AM

(03-29-2009 05:22 AM)kurgans Wrote:  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


tkanks i trying


RE: Change network IP - aseques - 04-17-2009 10:39 PM

I've just created a howto in the documentation with your post. You can check it at:
http://www.isp-control.net/documentation/howto/ispcp/change_ip

Note: Can someone move this to the howto section?


RE: Change network IP - BeNe - 04-17-2009 10:52 PM

Quote:Note: Can someone move this to the howto section?
What exactly ?

Greez BeNe


RE: Change network IP - aseques - 04-17-2009 11:59 PM

(04-17-2009 10:52 PM)BeNe Wrote:  
Quote:Note: Can someone move this to the howto section?
What exactly ?

Greez BeNe

Well, basically the whole thread, so people can know how to change the IP with some easy steps.

Cheers


RE: Change network IP - BeNe - 04-18-2009 12:29 AM

Best and more cleaner would be if you create a new Topic in the Howto Section with the Link in it to the Wiki.

Greez BeNe


RE: Change network IP - aseques - 04-18-2009 01:18 AM

(04-18-2009 12:29 AM)BeNe Wrote:  Best and more cleaner would be if you create a new Topic in the Howto Section with the Link in it to the Wiki.
Ok, just created:

http://www.isp-control.net/forum/thread-6448.html


RE: Change network IP - BeNe - 04-18-2009 07:41 PM

Thanks for it!

Greez BeNe


RE: [SOLVED] Change network IP - acaiger - 01-11-2010 01:49 PM

Can someone explain this line:

UPDATE server_ips SET ip_number = "server2-ip" WHERE ip_id = 1;

What is the meaning of 'server2-ip' or should it be replaced with my new IP number ie yyy.yyy.yyy.yyy as it is shown on the wiki page?