Step 1. 安装 1Pane

Step 2. 创建 PHP运行环境

(这次我安装的是 8.4.6,安装 7 以后的版本都行),并安装扩展(扩展模板选择默认,然后再添加 fileinfoimagick)

Step 3. 下载 ImgURL 压缩包

下载地址:https://github.com/helloxz/imgurl/releases

Step 4. 新建 PHP站点

站点新建完成后, ImgURL 压缩包上传到站点根目录并解压

Step 5. 关闭 防盗链

Step 6. 设置 伪静态

location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~* \.(db3|json)$ {
  deny all;
}
location ~* ^/(temp|upload|imgs|data|application|static|system)/.*.(php|php5)$ {
    return 403;
}

Step 7. 测试

访问自己的域名安装 ImgURL ,如果正常会看到 ImgURL 安装界面

参考

  1. ImgUrl Github项目