FastCGI sent in stderr: "PHP message: PHP Fatal error

这篇具有很好参考价值的文章主要介绍了FastCGI sent in stderr: "PHP message: PHP Fatal error。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

服务器php7.2卸载安装7.4之后,打开网站一直无法访问,查看nginx错误日志发现一直报这个错误:

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问题,于是执行 composer install结果报错如下

FastCGI sent in stderr: "PHP message: PHP Fatal error

原来是缺少fileinfo扩展

解决方案:安装fileinfo扩展

FastCGI sent in stderr: "PHP message: PHP Fatal error

再执行composer install 报错如下

FastCGI sent in stderr: "PHP message: PHP Fatal error

php.ini文件里面的,proc_open删除

再执行composer install 报错如下

FastCGI sent in stderr: "PHP message: PHP Fatal error

表示 php 中,函数 proc_open 禁用了,需要在 php.ini 禁用函数 disable_functions 中删除这个函数,将php.ini文件里面的putenv删除

再执行composer install

FastCGI sent in stderr: "PHP message: PHP Fatal error

执行完毕,再访问网站ok了文章来源地址https://www.toymoban.com/news/detail-413140.html

到了这里,关于FastCGI sent in stderr: "PHP message: PHP Fatal error的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 解决Git提交代码报错: ERROR: commit xxxxx: missing Change-Id in message footer

    在近期的工作中完成代码修改提交代码时Git报错并提示提交不成功,具体错误如下:  原因是Change-Id缺失。至于解决方法,Git在报错时已经提示了,如下图黄框所示: 首先,复制命令  gitdir=$(git rev-parse --git-dir); scp -p -P 29418 lijunlin@192.168.64.47:hooks/commit-msg ${gitdir}/hooks/ 并执行

    2024年02月05日
    浏览(42)
  • python报错解决:Fatal error in launcher: Unable to create process using

    安装库的时候用pip突然报错 很奇怪为什么pip安装不了,想一想,好像是我昨晚把其中一个python版本的包的文件夹给删掉了,就报错找不到pip.exe ,但是这里我有了3.11版本的了,完全不影响使用,简单记录一下解决方法 查找pip.exe所在的位置 我这里有两个,上面的那个是删掉的

    2024年02月05日
    浏览(36)
  • jenkins 源码管理 returned status code 128: stdout: stderr: fatal: unable to access “****” 403 解决办法

    在配置jenkins 源码管理 远程链接git时 提示 报错 Failed to connect to repository : Command\\\"usr/bin/git ls-remote -h http://admin@192.138.3.13:8005/scm/tes/repository-test.git HEAD\\\" returned status code 128: stdout: stderr: fatal: unable to access ‘http://admin@192.138.5.102:8005/scm/tes/repository-test.git/’: The requested URL returned erro

    2024年02月11日
    浏览(44)
  • IDEA 出现 FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed 解决方法

    对于IDEA无法启动,原先出现过这个Bug:出现Missing essential plugin: com.intellij (platform prefix: null) Please reinstall IntelliJ IDEA 解决方法 该问题主要来源于粉丝,是看了我上述的报错,之后遇到的另一个Bug: 启动IDEA过程中 ,运行了idea.bat后显示的报错 问题如下:

    2024年04月27日
    浏览(34)
  • PHP CGI、FastCGI、PHP-FPM、PHP-CGI 区别

    PHP CGI、FastCGI、PHP-FPM、PHP-CGI 是不同的PHP执行方式和处理程序。它们有以下区别: PHP CGI (Common Gateway Interface):PHP CGI是一种通过CGI协议与Web服务器通信的PHP执行方式。在每次请求时,Web服务器会将请求传递给PHP解释器,PHP解释器会解析并执行PHP脚本,并将结果返回给Web服务器

    2024年02月11日
    浏览(38)
  • 成功解决git clone遇到的error: RPC failed; curl 16 Error in the HTTP2 framing layer fatal: expected flush af

    用git的时候可能会遇到这个问题: (base) zhouzikang@7443-8x4090-120:~/project$ git clone https://github.com/123/123.git Cloning into ‘StyleSwap’… error: RPC failed; curl 16 Error in the HTTP2 framing layer fatal: expected flush after ref listing 如图 尝试通过像这样设置 git config 来强制 git 使用 HTTP 1.1 然后使用git操作

    2024年02月13日
    浏览(43)
  • 利用Fastcgi+PHP-FPM非授权访问实现代码执行

    目录 Fastcgi Record Fastcgi Type PHP-FPM(FastCGI进程管理器) Nginx(IIS7)解析漏洞 security.limit_extensions配置 漏洞演示 今天要和大家分享的是利用Fastcgi和PHP_FPM实现未授权访问实现代码执行,首先我们需要知道cgi、fastcgi和php-fpm这些都是什么。 什么是CGI CGI全称是“公共网关接口”(Co

    2024年01月21日
    浏览(34)
  • python复制已存在的虚拟环境venv,虚拟环境迁移,解决“Fatal error in launcher: Unable to create process using”

    有的时候我们从github上下载下来的python项目直接带有虚拟环境,尤其是那些需要很多很复杂的包的项目,如果能够获得别人配置好的虚拟环境直接拿来用,就可以省很多事。拿到虚拟环境,需要做一些修改才能顺利食用。 一个项目的虚拟环境是由以下4个文件或文件夹组成的

    2024年02月06日
    浏览(32)
  • 【Python】Fatal error in launcher:Unable to create process using list(pip安装第三方模块时常见问题)

        一般会在cmd中输入 pip 指令时出现。(如下图)     其它博主推荐的\\\"python -m pip install\\\"方法如果没有用,那大概率是因为电脑存在多个版本的Python环境,此时唯一解决手段就是 将所有版本的Python全部卸载干净 ,然后再重新安装某一个版本的Python即可。     具体操作如下

    2024年02月16日
    浏览(41)
  • 解决:mac brew install xx 出现 fatal: not in a git directory Error: Command failed with exit 128: git

    wshanshi:这是一个简单的问题总结记录… 一、异常信息 使用brew install 时发现报了一个错:fatal: not in a git directory Error: Command failed with exit 128: git,如下图所示。 二、解决方法 brew -v 可查看提示,To add an exception for this directory。提示添加安全目录(–add safe.directory) 执行上述提

    2024年02月14日
    浏览(35)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包