工具箱源码 轻松打造个性化在线工具箱

工具箱源码 轻松打造个性化在线工具箱

工具箱源码 轻松打造个性化在线工具箱

PHP >= 7.2.5
MySQL >= 5.7
fileinfo 扩展
使用 Redis 缓存需安装 Redis 扩展
去除禁用函数 proc_open、putenv、shell_exec、proc_get_status(必须是命令行的 PHP 版本,你装了多个 PHP 版本,命令行版本的 PHP 和你的网站配置的 PHP 可能不是同一个,嫌麻烦可以下载 full 包)

部署
下载 Release 代码

设置运行目录为 public

关闭防跨站(open_basedir)

设置伪静态

去除静态文件代理

打开 nginx 配置
删除图中选中的内容

工具箱源码 轻松打造个性化在线工具箱

安装依赖

full 包,已安装依赖,无需重复安装

配置阿里镜像源

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
升级 compose

composer self-update
安装依赖

composer install –no-dev
设置目录权限

一般是默认允许的(如有无法上传、无法打开页面或其他未知问题可以设置一下目录权限)

Apache 的所属组为 www-data,那么就请修改 www 为 www-data

chmod -R 755 *
chown -R www:www *
打开你的域名 /install

伪静态
Nginx
  1. location / {if (!-e $request_filename){rewrite ^(.*)$ /index.php?s=$1 last; break;
  2. }
  3. }
Apache

  1. Options +FollowSymlinks -Multiviews
  2. RewriteEngine On
  3. RewriteCond %{REQUEST_FILENAME} !-d
  4. RewriteCond %{REQUEST_FILENAME} !-f
  5. RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]