43 lines
1.6 KiB
Markdown
43 lines
1.6 KiB
Markdown
## 环境配置
|
||
|
||
ph-Bookshelf 是基于 php 的web程序,所以你需要一个支持 php 的web服务器
|
||
|
||
同时,ph-Bookshelf 使用了 php-xml 扩展,**若没有此扩展,会出现 `500` 错误**。
|
||
这个扩展在 php7.0 及以下还可能叫做 php-dom 扩展。
|
||
|
||
同时,(目前而言)web服务器还需要支持 .htaccess 伪静态规则配置。
|
||
如果你使用的是 Apache 或是基于 Apache 的服务器,只需要确保 .htacces 支持和 Mod_Rewrite 处于打开状态(一般都是打开的);
|
||
但如果你使用的是 Ngnix,IIS,亦或是其它不支持 .htaccess 的服务器,则需要根据下面的说明配置伪静态规则。
|
||
|
||
#### 伪静态配置
|
||
|
||
(待补)
|
||
|
||
## 下载 ph-Bookshelf
|
||
|
||
目前,唯一的官方获取 ph-Bookshelf 的方法是从 [GitHub 仓库][phb-repo]
|
||
clone/下载 最新代码。
|
||
|
||
<!--
|
||
|
||
这里演示了使用服务器 ssh 安装 ph-Bookshelf 的方案
|
||
|
||
```
|
||
$ cd /var/www/ # 进入你的服务器的网站根目录
|
||
$ git clone --depth=1 git@github.com:Eyre-S/ph-Bookshelf # 从 GitHub 仓库获取最新代码
|
||
$ mv ph-Bookshelf "<Name>" # 将 ph-Bookshelf 文件夹重命名为你想要的名字
|
||
|
||
```
|
||
|
||
-->
|
||
|
||
如果环境配置没有问题,那么现在这个站点就可以运行了...
|
||
是的,运行结果还是 ERROR Not Found。
|
||
|
||
但现在你可以下载
|
||
[预定义的 data 演示文件][demo-data]
|
||
来提前查看效站点运行果了
|
||
|
||
[phb-repo]: https://github.com/suk-ws/ph-Bookshelf
|
||
[demo-data]: https://srv.sukazyo.cc/resources/projects/ph-bookshelf/demo/data.zip
|