Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

检测到搭建出现问题:PHP版本必须大于或等于5.6! #64

Open
sekzerd opened this issue Apr 5, 2023 · 1 comment
Open

Comments

@sekzerd
Copy link

sekzerd commented Apr 5, 2023

问题

  • 检测到搭建出现问题:PHP版本必须大于或等于5.6!

运行环境

  • 容器环境

  • 操作系统: Debian 11 bullseye

  • Database: MariaDB 10.11.2

  • PHP: 7.2

  • Nginx: 1.18.0

数据库已经导入,且数据库权限设置正确。目录权限跟随php.ini,为755
已经测试PHP版本5.6 7.0 7.4 8.2,而且是删除web目录重新从git clone到目录

相关的Nginx配置

root /xxxxx/xxxxxx/xxxx/public;

index index.html;

location / {
        try_files $uri $uri/ /index.html;
}

if (!-f $request_filename){
        rewrite (.*) /index.html;
}

location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}

每次切换PHP版本均已同步修改fastcgi_pass,问题依旧。

@tomchang881
Copy link

解决了吗?兄弟,我也遇到同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants