Get Mystery Box with random crypto!

Manjaro 系统 nginx & php7.4+ 出现 File not found 错误 Google | 吃瘪日常

Manjaro 系统 nginx & php7.4+ 出现 File not found 错误

Google和百度到的前几页答案基本都是用户组和权限问题所导致的, 照着修改后根本无济于事

正确的解决方案为
给 /usr/lib/systemd/system/php-fpm.service 文件中的
ProtectHome = true 前面加上 #

注释掉上面那行后执行:
systemctl daemon
systemctl reload+restart php-fpm

如果有更新 php 到 7.4 后突然出现 File not found 错误的也可尝试此方案

参考:
https://github.com/php/php-src/blob/PHP-7.4/sapi/fpm/php-fpm.service.in
https://blog.sbw.so/u/php-fpm-7.4-file-not-found-array-type-null-error.html