Jump to content
View in the app

A better way to browse. Learn more.

PHP论坛人

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Invision Community 5.0.0 ~ 5.0.x 之間的論壇版本升級

Featured Replies

Invision Community 5.0.0 ~ 5.0.x 之間的論壇版本升級

------------------------------------
暫時關閉論壇
------------------------------------

目的:避免升級過程中,會員操作導致資料錯誤或異常

論壇後端 -> 系統 -> 一般配置 -> 關閉或開啟論壇 -> x 關閉

關閉的原因 -> 建議填寫原因,例如:系統升級維護中,預計於 XX:XX 完成,造成不便敬請見諒

儲存 ->





-----------------------------------
下載Invision Community最新版本
-----------------------------------

建議在Windows就先解壓縮,雖然論壇升級是直接覆蓋檔案後升級,但可以先刪除不必要的檔案

然後重新壓縮為 ips.zip






------------------------------------
先備份資料庫、網站目錄
------------------------------------

升級前先備份DB資料庫、Web網站目錄,避免升級失敗無法回復

注意:先將今日的自動備份檔,改個檔名,再下備份指令 (不然檔名會重覆)

指令
bash /root/backup.sh





-------------------------
停止Nginx (重要)
-------------------------

在進行檔案替換前,請務必先停止Nginx,確保檔案替換時不會產生衝突

systemctl stop nginx


為什麼要先停?
避免檔案解壓時造成讀寫衝突



使用SFTP上傳Invision Community論壇的最新版本 (ips.zip)
前往論壇根目錄 /var/www/域名.com


SSH登入,解壓縮Invision Community論壇的最新版本 (ips.zip) 並覆蓋檔案
cd /var/www/域名.com


解壓縮並覆蓋舊檔案 (-o 參數表示覆蓋)
unzip -o ips.zip


然後刪除壓縮檔ips.zip
rm ips.zip



將所有權變更為網頁伺服器使用者 (確保 Nginx / PHP 有正確的讀寫權限)
chown -R www-data:www-data /var/www/域名.com

cd /var/www/域名.com


確認輸出顯示為 www-data www-data
ls -l



為了主機安全,設定標準檔案權限

將所有「目錄」設為 755
find /var/www/域名.com -type d -exec chmod 755 {} \;

將所有「檔案」設為 644
find /var/www/域名.com -type f -exec chmod 644 {} \;


---------------------
排程任務權限確認
---------------------

確保IPS論壇的 task.php 具備執行權限
chmod 755 /var/www/域名.com/applications/core/interface/task/task.php


檢查 crontab 設定 (如有需要)
crontab -l | grep task.php


----------------------------------
強化 conf_global.php 安全性
----------------------------------

修改權限為 640 或 600
chmod 640 /var/www/域名.com/conf_global.php


-------------
啟動Nginx
-------------

啟動Nginx,啟動Web服務
systemctl start nginx


------------------------
升級論壇
------------------------

瀏覽器進入論壇
https://域名.com/admin/upgrade/

依照提示,登入管理員帳號 -> 開始升級過程 -> 完成升級


注意:升級過程請勿關閉瀏覽器或中斷連線




------------------------
升級完成後,開啟論壇
------------------------


論壇後端 -> 系統 -> 一般配置 -> 關閉或開啟論壇 -> v (是) -> 儲存



論壇後端 -> 系統 -> 獲得支援 -> 清除系統快取


在 [獲得支援] 這裡,有些錯誤會提示你需要解決





------------------------
更新中文語言包
------------------------


如果有新版本的IPS中文包,則需要更新(覆蓋)





------------------------
重建網站地圖
------------------------

論壇後端 -> 系統 -> 搜尋引擎最佳化 -> 右上方的 重建網站地圖






------------------------
重建搜尋索引
------------------------

論壇後端 -> 系統 -> 搜尋 -> 右上方的 重建搜尋索引 -> 同意




注意事項

若使用第三方插件或模板主題,升級前請先確認有無推出新版本

升級後請徹底測試論壇功能,若有問題,請在論壇後端的支援頁,關閉部分第三方插件,確認是否為第三方插件的問題

Create an account or sign in to comment

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.