Current time: 11-27-2024, 12:15 PM Hello There, Guest! (LoginRegister)


Post Reply 
Como cambiar rápidamente de IP en ISPCP
Author Message
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #1
Como cambiar rápidamente de IP en ISPCP
Cambiar ISPCP de IP

Para demonio del panel:

/etc/init.d/ispcp_daemon stop

Cambiar IP en mysql

mysql -p
mysql> USE ispcp;
mysql> UPDATE server_ips SET ip_number = "nueva-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

Reestructurar
/var/www/ispcp/engine/ispcp-rqst-mngr

Arrancar Demonio
/etc/init.d/ispcp_daemon start

Cambiar IP en archivos como bind y apache en una pasada.

sed -i "s/ip-vieja/ip-nueva/g" /etc/apache2/sites-enabled/* /etc/bind/* /var/cache/bind/* /etc/ispcp/*/working/*

Cambiar ip de eth0

Reniciar los servicios de apache bind eth0

Ya tenemos ispcp corriendo en la nueva ip.
(This post was last modified: 04-07-2009 10:45 PM by kurgans.)
04-07-2009 08:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Como cambiar rápidamente de IP en ISPCP - kurgans - 04-07-2009 08:50 PM

Forum Jump:


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