參考在 LifeType Taiwan 論壇精華文章的 「plog1.0.1升级lifetype 1.0.3实战」 ,
將本站由 LifeType 1.0.1 升級到 LifeType 1.0.6。
現在站是可以運作,不過不曉得這種方法有沒有問題,請幫忙指正。
我的升級作法:
下載升級檔案
lifetype-1.0.1-upgrade-1.0.2.tar.gz
lifetype-1.0.2-upgrade-1.0.3.tar.gz
lifetype-1.0.3-upgrade-1.0.4.tar.gz
lifetype-1.0.4-upgrade-lifetype-1.0.5.tar.gz
lifetype-1.0.5-upgrade-1.0.6.tar.gz
先備份 /var/www/html/plog 以及 /var/lib/mysql/plog
# cd /var/www/html
# service httpd stop
# tar cvfz ./plog.backup.tgz ./plog
# cd /var/lib/mysql
# service mysqld stop
# tar cvfz ./mysql.backup.tgz ./plog
將 /var/www/html/plog 中的幾個目錄複製到 bks4upgrade
# mkdir bk4upgrade
# cd /var/www/html/plog
# cp ./config/config.properties.php ../bk4grade
# cp -rf ./gallery ../bk4grade
# cp -rf ./templates ../bk4grade
# cp -rf ./styles ../bk4grade
# cp ./.htaccess ../bk4grade
(以下為 optional )
# cp -rf ./js ../bk4grade
# cp -rf ./lightbox2 ../bk4grade
其他你自己建立的目錄、檔案
解開所有的升級檔、從1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6 升級目錄的檔案依序覆蓋到你的 Lifetype 網頁目錄
# cd /var/www/html
# tar xvfz ./lifetype-1.0.1-upgrade-1.0.2.tar.gz
# tar xvfz ./lifetype-1.0.2-upgrade-1.0.3.tar.gz
# tar xvfz ./lifetype-1.0.3-upgrade-1.0.4.tar.gz
# tar xvfz ./lifetype-1.0.4-upgrade-lifetype-1.0.5.tar.gz
# tar xvfz ./lifetype-1.0.5-upgrade-1.0.6.tar.gz
# cd lifetype-1.0.1-upgrade-1.0.2
# cp -rf ./* ../plog
# cd ../lifetype-1.0.2-upgrade-1.0.3
# cp -rf ./* ../plog
1.0.4, 1.0.5, 1.0.6 依此類推覆蓋
將 bks4upgrade 再覆蓋到 /var/www/html/plog中
# cd /var/www/html/bks4upgrade
# cp -rf ./* /var/www/html/plog
修改 ./gallery ./templates ./tmp 的權限為 777
# chmod -R 777 ./gallery ./templates ./tmp
刪除 /var/www/html/plog/wizard.php
# rm /var/www/htm/plog/wizard.php
重新啟動 httpd 和 mysqld 服務
# service httpd start
# service mysqld start
大功告成!! 真累人!!!