Jump to content
PHP論壇人

13-1.安裝新的vBulletin論壇


Recommended Posts

Posted (edited)

-----------------------------
安裝新的vBulletin論壇
-----------------------------

在此步驟 lnmp vhost add

 

Allow Rewrite rule? (y/n) 
允許偽靜態,按 y

 


Please enter the rewrite of programme, wordpress,discuzx .........
(Default rewrite: other):

偽靜態的檔案名稱,輸入 vbb

等到 lnmp vhost add 新增域名,申請SSL憑證後

開始寫入 vbb.conf 配置檔案的偽靜態

vi /usr/local/nginx/conf/rewrite/vbb.conf 

 

 


-----------------------------------------------------
解壓縮論壇程式.zip
-----------------------------------------------------

cd /home/wwwroot/域名.com

unzip -o vbb604.zip

 

 


-----------------------------------------------------
更改目錄的擁有人/群組 www www
-----------------------------------------------------

看到擁有人/群組是 root root
ls -l

 

改為 www www,指令
chown www:www -R /home/wwwroot/域名.com/*


可看到已改為 www www
ls -l

 

 


-----------------------------------------------------
在論壇根目錄,更改檔案的副檔名
-----------------------------------------------------

將 robots.txt.new 更改為 robots.txt

指令
mv robots.txt.new robots.txt

 

 

-----------------------------------------------------
將config.php.new   chmod 755
-----------------------------------------------------

將 config.php.new   chmod 755

chmod 0755 /home/wwwroot/域名.com/core/includes/config.php.new

 


如果沒chmod 755就沒有權限寫入,將出現錯誤消息

There was an error:

Was not able to write to the file /域名.com/core/includes/config.php. Please check your write permissions and try again.

Please go back and try again.

 

 


-----------------------------------------------------
開始安裝 
-----------------------------------------------------

瀏覽器輸入 https://域名.com

有部份還是寫 vBulletin 5,官方還沒改為 vBulletin 6

 

 


-----------------------------------------------------
刪除 makeconfig.php
-----------------------------------------------------

刪除 makeconfig.php (位於 /core/install/makeconfig.php)

cd /home/wwwroot/域名.com/core/install

rm makeconfig.php

 

在刪除 makeconfig.php 之後

返回瀏覽器,按F5重新整理,再繼續安裝

 


-----------------------------------------------------
資料庫不是 utf-8
-----------------------------------------------------

Action Required

The current database character set is 'latin1'. It is strongly recommended that you use the utf-8 character set when running vBulletin. However if other applications are using this database then changing the character set can affect them.

Do you automatically want to change your database to use utf-8?

 


資料庫還不是 utf8mb4_general_ci

在install安裝之前,可先用 phpmyadmin 將資料庫修改為 utf8mb4_general_ci

或者 install 到這個步驟,可自動更改,按 Yes 按鈕

 

 

-----------------------------------------------------
General Settings
-----------------------------------------------------

 


-----------------------------------------------------
Administrator Account Setup
-----------------------------------------------------
設置管理員帳號

 


-----------------------------------------------------
Install Complete
-----------------------------------------------------
You may review the install steps by pressing 'Back to Install' then 'Show Details'.

Please delete the install directory now.

請刪除install目錄

 

 

-----------------------------------------------------
按 Go to Admin CP,有畫面才是偽靜態運行正確
-----------------------------------------------------
Please delete the install directory now.

你需要刪除 根目錄/core/install/,刪除這個install目錄

按下 Go to Admin CP 按鈕,有以下畫面才是偽靜態運行正確

或者瀏覽器輸入 https://域名.com,論壇版面沒亂掉,才是偽靜態有運行

 

 

刪除install目錄

rm -f -r /home/wwwroot/域名.com/core/install/

 

 


接下來,導入中文語言包

 

更新中文語言包

 

論壇後台設置Nginx偽靜態

 

Edited by Jack
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...