Jack Posted April 21 Share Posted April 21 (edited) 本教程使用 军哥LNMP一键安装包 环境 Linux + Nginx + MariaDB 10.6 + PHP 8.1 在此步骤 lnmp vhost add 允许伪静态 Allow Rewrite rule? (y/n) 按 y Please enter the rewrite of programme, wordpress,discuzx ......... (Default rewrite: other): 自定义伪静态的文件名称,先输入 vbb 也就是之后的 vbb.conf 在lnmp vhost add 添加域名,申请SSL证书完成后 开始写入 vbb.conf 配置文件的伪静态 vi /usr/local/nginx/conf/rewrite/vbb.conf 在 vbb.conf 写入额外的一小段Nginx伪静态 (宝塔面板应该也可用) ----------------------------------------------------- 解压论坛程序.zip ----------------------------------------------------- cd /home/wwwroot/域名.com unzip -o vBulletin604.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 ----------------------------------------------------- /core/includes/config.php.new 将 config.php.new CHMOD 755 如果没修改就没有权限写入,将出现错误消息 ----------------------------------------------------- 开始安装 ----------------------------------------------------- 浏览器输入 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,论坛版面没乱掉,才是伪静态有运行 ----------------------------------------------------- 中文语言包 ----------------------------------------------------- 接下来,导入中文语言包 更新中文语言包 ----------------------------------------------------- 后台设置伪静态 ----------------------------------------------------- 论坛后台设置Nginx伪静态 Edited April 21 by Jack Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now