Current time: 11-16-2024, 05:32 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Change network IP
Author Message
homodo Offline
Junior Member
*

Posts: 55
Joined: Sep 2008
Reputation: 0
Post: #1
[SOLVED] Change network IP
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.
(This post was last modified: 04-18-2009 07:41 PM by BeNe.)
03-29-2009 04:55 AM
Find all posts by this user Quote this message in a reply
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
homodo Offline
Junior Member
*

Posts: 55
Joined: Sep 2008
Reputation: 0
Post: #3
RE: Change network IP
(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
03-29-2009 06:15 AM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #4
RE: Change network IP
I've just created a howto in the documentation with your post. You can check it at:
http://www.isp-control.net/documentation.../change_ip

Note: Can someone move this to the howto section?
04-17-2009 10:39 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #5
RE: Change network IP
Quote:Note: Can someone move this to the howto section?
What exactly ?

Greez BeNe
04-17-2009 10:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #6
RE: Change network IP
(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
04-17-2009 11:59 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #7
RE: Change network IP
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
04-18-2009 12:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #8
RE: Change network IP
(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
04-18-2009 01:18 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #9
RE: Change network IP
Thanks for it!

Greez BeNe
04-18-2009 07:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
acaiger Offline
Newbie
*

Posts: 5
Joined: Sep 2009
Reputation: 0
Post: #10
RE: [SOLVED] Change network IP
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?
01-11-2010 01:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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