💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### 环境需求 *** ``` PHP >= 5.6 PDO PHP Extension MBstring PHP Extension CURL PHP Extension ``` ### 开始安装 *** 源码仓库: `Github` : https://github.com/iredcap/pay `Gitee` :https://gitee.com/iredcap/pay >[info]如果国内访问composer的速度比较慢,可以参考这里的说明使用 [国内镜像](https://pkg.phpcomposer.com/) 首先克隆下载应用项目仓库 `git clone https://github.com/iredcap/pay ` 然后切换到目录下面,再Composer安装Thinkphp5核心框架仓库以及依赖包: `composer install ` 完成依赖包和Tp5核心包的安装 常见安装问题: 1. PHP7.0以上出现 `No input file specified ` ``` //.htaccess 文件 RewriteRule 参考配置 ^(.*)$ index.php [L,E=PATH_INFO:$1] ^(.*)$ index.php?/$1 [QSA,PT,L] ``` 2. phpStudy环境 PHP5.6.27-nts+Apache:session_start(): Cannot send session cache limiter - headers already sent php.ini文件中把always_populate_raw_post_data = -1前面的注释去掉就可以了 3. LNMP下500错误参考 `fastcgi_param PHP_ADMIN_VALUE "open_basedir=/home/wwwroot/:/tmp/:/proc/"; ` 根据实际情况修改或注释掉上面这句 4. phpstudy环境下若出现提交数据500错误 将public 目录下 .htaccess 文件中 RewriteRule 部分换为` ^(.*)$ index.php [L,E=PATH_INFO:$1] `即可解决。 5. 某些Nginx版本下出现,控制器不存在问题,参考以下配置 ``` server { listen 80; root /www/wwwroot/iredcap/public/; index index.php index.html index.htm; server_name www.iredcap.cn redcap.cn; location / { # try_files $uri $uri/ =404; index index.php add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Method GET,POST,PUT,DELETE,OPTIONS; try_files $uri @rewrite; } #重写规则 location @rewrite { #如果有admin.php 文件,重写 rewrite ^/admin.php(.*)$ /admin.php?s=$1 last; #如果有 index.php 文件 ,重写 rewrite ^/index.php(.*)$ /index.php?s=$1 last; #重写到 index.php rewrite . /index.php?s=$uri last; } } ```