服務(wù)器php7.2卸載安裝7.4之后,打開網(wǎng)站一直無法訪問,查看nginx錯誤日志發(fā)現(xiàn)一直報這個錯誤:
2023/02/23 11:12:55 [error] 4735#0: *21 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ReflectionException: Class translator does not exist in /www/wwwroot/dev_admin/vendor/laravel/framework/src/Illuminate/Container/Container.php:779
排查懷疑是vendor問題,于是執(zhí)行 composer install結(jié)果報錯如下

原來是缺少fileinfo擴(kuò)展
解決方案:安裝fileinfo擴(kuò)展

再執(zhí)行composer install 報錯如下

php.ini文件里面的,proc_open刪除
再執(zhí)行composer install 報錯如下

表示 php 中,函數(shù) proc_open 禁用了,需要在 php.ini 禁用函數(shù) disable_functions 中刪除這個函數(shù),將php.ini文件里面的putenv刪除
再執(zhí)行composer install文章來源:http://www.zghlxwxcb.cn/news/detail-413140.html

執(zhí)行完畢,再訪問網(wǎng)站ok了文章來源地址http://www.zghlxwxcb.cn/news/detail-413140.html
到了這里,關(guān)于FastCGI sent in stderr: "PHP message: PHP Fatal error的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!