1 下载
git clone https://github.com/cydrobolt/polr.git
2 Composer 安装
curl -sS https://getcomposer.org/installer | php
- 找到配置文件
/www/server/php/72/etc/php.ini
,搜索disable_functions
,删除putenv
; - 安装
cd polr
composer install --no-dev -o
3 重命名配置文件
cp .env.setup .env
4 设置目录
- 设置运行目录为
/public
5 伪静态
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
Lasted update: May 27, 2020 at 10:59 pm