魔方财务安装提示错误:打开/install,出错

搜推网
2021-06-24 / 0 评论 / 15 阅读 / 正在检测是否收录...

问题描述:

Warning: main(/www/wwwroot/mofang/vendor/thinkphp/base.php): failed to open stream: No such file or directory in /www/wwwroot/mofang/public/api.php on line 40

Warning: main(/www/wwwroot/mofang/vendor/thinkphp/base.php): failed to open stream: No such file or directory in /www/wwwroot/mofang/public/api.php on line 40

Fatal error: main(): Failed opening required '/www/wwwroot/mofang/vendor/thinkphp/base.php' (include_path='.:/www/server/php/73/lib/php') in /www/wwwroot/mofang/public/api.php on line 40

问题解决思路:

第一步 :请检查你的php版本,是不是7.2或7.3

第二步 :数据库的版本必须是5.6,且要安装ionCube扩展
1606114141998136.png

第三步 :伪静态的设置

因为系统更实用thinkphp框架开发,所以必须要设置伪静态

Apache伪静态规则

  Options +FollowSymlinks -Multiviews

  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteCond %{REQUEST_FILENAME} !-f

  RewriteRule ^(.*)$ api.php?s=$1 [QSA,PT,L]

  SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

Nginx伪静态规则


location / {

if (!-e $request_filename) {

rewrite ^(.*)$ /api.php?s=$1 last;

break;

}

}
0

评论 (0)

取消