На старом сервере.
Снимаем дамп базы:
[[email protected]]# mysqldump billmgr -p > billmgr.sql
Пароль базы в /usr/local/ispmgr/etc/billmgr.conf
Сохраням бэкап и копируем на новый сервер вместе с дампом и конфигом:
[[email protected]]# scp /usr/local/ispmgr/var/backup/allback/BILLmanager-2015-06-12.tar.gz [email protected]:/root
[[email protected]]# scp /usr/local/ispmgr/etc/billmgr.conf [email protected]:/root
[[email protected]]# scp billmgr.sql [email protected]:/root
На новом сервере.
Установка панели:
[[email protected]]# yum update
[[email protected]]# yum install jwhois cronie
[[email protected]]# wget "http://download.ispsystem.com/install.4.sh"
[[email protected]]# sh install.4.sh
Применяем старый конфиг:
[[email protected]]# cd /usr/local/ispmgr/
[[email protected]]# mv billmgr.conf billmgr.conf.old
[[email protected]]# cp /root/billmgr.conf .
[[email protected]]# cd /root/
Заливаем базу:
[[email protected]]# mysql billmgr -p < billmgr.sql
Сертификаты прописываем для SSL:
[[email protected]]# vim /usr/local/ispmgr/etc/manager.crt
[[email protected]]# vim /usr/local/ispmgr/etc/manager.key
[[email protected]]# vim /etc/httpd/conf/chain.crt
Прописать новый пароль для базы:
[[email protected]]# vim /usr/local/ispmgr/etc/billmgr.conf
DBPassword 123456
Перезапуск панели:
[[email protected]]# killall billmgr
[[email protected]]# killall ihttpd
[[email protected]]# /usr/local/ispmgr/sbin/ihttpd ip-адрес 1500
Конфиг для апача:
[[email protected]]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.old
[[email protected]]# vim /etc/httpd/conf/httpd.conf
NameVirtualHost ip-адрес:80
<VirtualHost ip-адрес:80>
ServerName billing.ru
DocumentRoot /usr/local/ispmgr/bin/
ServerAdmin [email protected]
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
</VirtualHost>
<VirtualHost ip-адрес:443 >
ServerName billing.ru
DocumentRoot /usr/local/ispmgr/bin/
ServerAdmin [email protected]
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
SSLEngine on
SSLCertificateFile /usr/local/ispmgr/etc/manager.crt
SSLCertificateKeyFile /usr/local/ispmgr/etc/manager.key
SSLCACertificateFile /etc/httpd/conf/chain.crt
</VirtualHost>
[[email protected]]# service httpd restart
Всякие шаблоны:
[[email protected]]# yes | cp -R notify/ /usr/local/ispmgr/etc/
[[email protected]]# yes | cp -R docs/ /usr/local/ispmgr/etc/
[[email protected]]# killall billmgr
Перенос шкурки:
[[email protected]]# tar -czvf local.tar.gz /usr/local/ispmgr/skins/sirius/local/
[[email protected]]# scp local.tar.gz [email protected]:/root
[[email protected]]# tar -xzvf local.tar.gz
[[email protected]]# cd usr/local/ispmgr/skins/
[[email protected]]# cp -R sirius/local/ /usr/local/ispmgr/skins/sirius/
Снимаем дамп базы:
[[email protected]]# mysqldump billmgr -p > billmgr.sql
Пароль базы в /usr/local/ispmgr/etc/billmgr.conf
Сохраням бэкап и копируем на новый сервер вместе с дампом и конфигом:
[[email protected]]# scp /usr/local/ispmgr/var/backup/allback/BILLmanager-2015-06-12.tar.gz [email protected]:/root
[[email protected]]# scp /usr/local/ispmgr/etc/billmgr.conf [email protected]:/root
[[email protected]]# scp billmgr.sql [email protected]:/root
На новом сервере.
Установка панели:
[[email protected]]# yum update
[[email protected]]# yum install jwhois cronie
[[email protected]]# wget "http://download.ispsystem.com/install.4.sh"
[[email protected]]# sh install.4.sh
Применяем старый конфиг:
[[email protected]]# cd /usr/local/ispmgr/
[[email protected]]# mv billmgr.conf billmgr.conf.old
[[email protected]]# cp /root/billmgr.conf .
[[email protected]]# cd /root/
Заливаем базу:
[[email protected]]# mysql billmgr -p < billmgr.sql
Сертификаты прописываем для SSL:
[[email protected]]# vim /usr/local/ispmgr/etc/manager.crt
[[email protected]]# vim /usr/local/ispmgr/etc/manager.key
[[email protected]]# vim /etc/httpd/conf/chain.crt
Прописать новый пароль для базы:
[[email protected]]# vim /usr/local/ispmgr/etc/billmgr.conf
DBPassword 123456
Перезапуск панели:
[[email protected]]# killall billmgr
[[email protected]]# killall ihttpd
[[email protected]]# /usr/local/ispmgr/sbin/ihttpd ip-адрес 1500
Конфиг для апача:
[[email protected]]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.old
[[email protected]]# vim /etc/httpd/conf/httpd.conf
NameVirtualHost ip-адрес:80
<VirtualHost ip-адрес:80>
ServerName billing.ru
DocumentRoot /usr/local/ispmgr/bin/
ServerAdmin [email protected]
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
</VirtualHost>
<VirtualHost ip-адрес:443 >
ServerName billing.ru
DocumentRoot /usr/local/ispmgr/bin/
ServerAdmin [email protected]
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
SSLEngine on
SSLCertificateFile /usr/local/ispmgr/etc/manager.crt
SSLCertificateKeyFile /usr/local/ispmgr/etc/manager.key
SSLCACertificateFile /etc/httpd/conf/chain.crt
</VirtualHost>
[[email protected]]# service httpd restart
Всякие шаблоны:
[[email protected]]# yes | cp -R notify/ /usr/local/ispmgr/etc/
[[email protected]]# yes | cp -R docs/ /usr/local/ispmgr/etc/
[[email protected]]# killall billmgr
Перенос шкурки:
[[email protected]]# tar -czvf local.tar.gz /usr/local/ispmgr/skins/sirius/local/
[[email protected]]# scp local.tar.gz [email protected]:/root
[[email protected]]# tar -xzvf local.tar.gz
[[email protected]]# cd usr/local/ispmgr/skins/
[[email protected]]# cp -R sirius/local/ /usr/local/ispmgr/skins/sirius/
Комментариев нет:
Отправить комментарий