Skip to content

Update install.md #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/zh/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Flarum 处于 **测试阶段**。这意味着她有一些 Bug 🐛🐞、功能
在您安装 Flarum 之前,请确保您的服务器满足以下要求,以便顺利的安装和运行 Flarum:

* **Apache**(需要启用 mod\_rewrite 重写模块) 或 **Nginx**
* **PHP 7.1+**,需要启用 curl, dom, gd, json, mbstring, openssl, pdo\_mysql, tokenizer, zip 扩展
* **PHP 7.1+(但暂时不支持8.x)**,需要启用 curl, dom, gd, json, mbstring, openssl, pdo\_mysql, tokenizer, zip 扩展
* **MySQL 5.6+** 或 **MariaDB 10.0.5+**
* **允许 SSH(命令行)**,以运行 Composer

Expand All @@ -37,7 +37,7 @@ Flarum 使用 [Composer](https://getcomposer.org) 来管理其依赖包和扩展
composer create-project flarum/flarum . --stability=beta
```

您可以在命令执行期间配置您的 Web 服务器。请确保网站根目录(Webroot)设置为 `/您的/论坛/路径/public`,并按照下面的说明设置 [URL 重写](#url-重写)。
您可以在命令执行期间配置您的 Web 服务器。请确保网站根目录(Webroot)设置为 `/[您的论坛路径]/public`,并按照下面的说明设置 [URL 重写](#url-重写)。

当一切就绪后,在浏览器中访问您的论坛网址,在安装向导的指引下完成安装。

Expand All @@ -48,7 +48,7 @@ composer create-project flarum/flarum . --stability=beta
Flarum 在 `public` 目录中附带了一个 `.htaccess` 文件,请确保它有正确生成。**如果没有启用 `mod_rewrite` 模块,或禁用了 `.htaccess`,Flarum 将无法正常运行。** 请确认您的主机提供商(或您的 VPS)是否启用了这些功能。如果您的服务器由您自行管理,您可能需要在您的网站配置中添加以下内容来启用 `.htaccess` 文件:

```
<Directory "/您的/论坛/路径/public">
<Directory "/[您的论坛路径]/public">
AllowOverride All
</Directory>
```
Expand All @@ -62,7 +62,7 @@ Flarum 在 `public` 目录中附带了一个 `.htaccess` 文件,请确保它
Flarum 附带了一个 `.nginx.conf` 文件,请确保它有正确生成。假如您已经在 Nginx 中建立了一个 PHP 站点,您应当在站点配置中添加以下内容,以导入默认的重写规则:

```nginx
include /您的/论坛/路径/.nginx.conf;
include /[您的论坛路径]/.nginx.conf;
```

### Caddy
Expand Down