Current time: 11-24-2024, 11:33 PM Hello There, Guest! (LoginRegister)


Post Reply 
[Resuelto] Cambiar IP de dominio
Author Message
FresyMetal Offline
Junior Member
*

Posts: 48
Joined: Jul 2011
Reputation: 0
Post: #2
RE: Cambiar IP de dominio
Hola buenas, mira yo justo hoy estaba con lo mismo y por lo que podido localizar se hace asi (copia.pega)
Changing ispcp IP address

This howto describes howto change the ip address of the ispcp control panel. Some parts are in the database and some are in the configuration files.

Please report any bugs/hints/whatever in the following board thread: http://www.isp-control.net/forum/thread-6448.html

Thanks to kurgans for the information, the original thread was at http://www.isp-control.net/forum/thread-6234.html
Change IP in /etc/ispcp/ispcp.conf

BASE_SERVER_IP = yyy.yyy.yyy.yyy

Modifications to the database

Stop daemon ispcp

/etc/init.d/ispcp_daemon stop

Changes in mysql

mysql -u root -p
mysql> USE ispcp;
mysql> UPDATE server_ips SET ip_number = "yyy.yyy.yyy.yyy" 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 Bind and Apache IP

Hint: xxx.xxx.xxx.xxx = old IP, yyy.yyy.yyy.yyy = new IP

Replace the old ip in the affected files

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

Restart services

/etc/init.d/apache2 restart
/etc/init.d/bind9 restart

eso segun el howto
segun kurgans dice que falla el sed y que despues si te da fallo uses esto
Sed tiene algun problemilla de vez en cuando, y es que genera archivos en sites-enabled borrando los enlaces a sites-available.

Borra los archivos de sites-enabled
Y ejecuta el comando
a2ensite ispcp.conf
a2ensite 00_master.conf
a2ensite 01_awstats.conf

Reinicia apache y ya esta.

yo si soy de valencia Tongue jajajaja
09-16-2011 06:08 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Cambiar IP de dominio - FresyMetal - 09-16-2011 06:08 AM
RE: Cambiar IP de dominio - kurgans - 09-16-2011, 06:11 AM
RE: Cambiar IP de dominio - FresyMetal - 09-19-2011, 08:46 PM
RE: Cambiar IP de dominio - aherreros - 09-20-2011, 06:14 PM

Forum Jump:


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