Laravel Valet 502 Bad Gate Way Nginx / 1.15.7

捷运

我在运行laravel代客的laravel项目上遇到502 Bad Gateway。

我已经尝试了许多在线解决方案,但都没有成功。https://gist.github.com/adamwathan/6ea40e90a804ea2b3f9f24146d86ad7f

目前我看到的错误是502错误的网关,运行代客安装时命令行中的错误是更新php配置时的错误。它给出以下错误:

警告:file_get_contents(/usr/local/etc/php/7.3/php-fpm.d/www.conf):无法打开流:/Users/username/.composer/vendor/laravel/valet中没有此类文件或目录/cli/Valet/Filesystem.php在第112行

警告:file_get_contents(/usr/local/etc/php/7.3/php-fpm.d/www.conf):无法打开流:/Users/username/.composer/vendor/laravel/valet中没有此类文件或目录/cli/Valet/Filesystem.php,第125行

有人遇到过类似的问题吗?

谢谢

戴夫·罗伯逊

更新到php 7.3,然后安装新的Laravel项目后,出现了相同的症状。

看来brew install php73没有安装php-fpm

解决方法是卸载php

brew uninstall php73 
brew uninstall php72
brew uninstall php71 ... whatever versions you have
brew uninstall --force php

现在重新安装php

brew install php --build-from-source

我遇到了权限错误,mkdir: /usr/local/etc/php/7.3/php-fpm.d: Permission denied因此已sudo chown -R: <yourusercode> /usr/local/etc/php修复,然后brew install php --build-from-source再次发生。构建php 7.3成功后,重新安装valet:

valet install

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

ASP.NET Core 2 Web API-502 Bad Gate Way(Centos 7)-NGINX

Laravel 502 Bad Gateway错误

502 Bad Gateway Docker + Laravel

宅基地中的502 Bad Gateway nginx(1.9.7)[Laravel 5]

Nginx和Daphne提供502 Bad Gateway

Nginx在apache上提供了502 Bad Gateway

谁导致此“ 502 Bad Gateway nginx”出现?

如何修复 nginx 中的 502 Bad Gateway 错误?

Nginx上的负载均衡器提供502 Bad Gateway

Nginx:泊坞窗内的502 Bad Gateway

502 Bad Gateway-Rails App,Puma,Capistrano,Nginx

502 Bad Gateway / rails 4 / nginx / passenger 4.0.49 /

重新启动后Nginx 502 Bad Gateway

调用 api 时 Nginx 502 Bad Gateway 错误

nginx 后面有 pgadmin4 的 502 Bad Gateway?

Laravel Valet原木

Laravel Valet 403 禁止

Nginx / Flask / Python应用程序,Nginx抛出502 Bad Gateway错误

在macOS Sierra上卸载laravel / valet和homestead后的Apache / Nginx配置问题

Laravel Valet Nginx位置正则表达式不适用于Mac Catalina

phpMyAdmin 502 网关错误 [CentOS7, nginx]

502错误的网关nginx php7 fpm

Cloudflare错误502错误网关-Nginx-Laravel5

在Nginx之后运行Express应用程序的间歇性502 Bad Gateway错误

Gunicorn/Django/Nginx - 上传超过 100 MB 的文件时出现 502 Bad Gateway 错误

在Elastic beantalk中访问api服务器时出现Nginx 502(Bad Gateway)错误

当 Jenkins 管道为 React 应用程序运行 docker 时,Nginx 502 Bad Gateway

连接到通过 Nginx 运行 express 的 Nodejs 应用程序时出现 502 Bad Gateway

还原服务器后出现502 Bad Gateway Nginx错误