2011年7月15日

Twminiserver xoops2.5備份與還原(ssh&Rsync)

1. 停apache2&mysql,方法:/etc/init.d/apache2 stop     /etc/init.d/mysql stop
2.將/root/backFTP3內的網頁資料放入/var/www/xoops及/var/xoops_data及/var/xoops_lib,資料庫資料放入/var/lib/mysql/xoops
3. /var/lib/mysql下改資料庫權限擁有者chown -R mysql.mysql xoops
4.清空/var/xoops_data/caches/smarty_compile# rm -rf *
5.修改 /var/www/xoops# vi mainfile.php
      define('XOOPS_URL', 'http://新主機ip位址/xoops');
6.啟動apache2&mysql ,/etc/init.d/apache2 start    /etc/init.d/mysql start
7.注意/var/xoops_data及/var/www/xoops/uplaods ,templates_c權限

沒有留言:

張貼留言