阅读背景:

在AWS Laravel应用。503错误

来源:互联网 

I recently deployed a Laravel App to an Elastic Beanstalk php 7.1 environment. When I did the deploy everything seems to have gone well (there were no deploy errors) and when I checked the logs composer seems to have been able to install all dependencies properly.

我最近在一个弹性Beanstalk php 7.1环境中部署了一个Laravel应用程序。当我进行部署时,一切似乎都进行得很顺利(没有部署错误),当我检查logs时,它似乎能够正确地安装所有依赖项。

Whenever I try to navigate to the URL of the environment I am greeted with a 503 error which I do not understand. When I check the httpd error log I see:

每当我尝试导航到环境的URL时,我都会遇到503个错误,这是我不理解的。当我检查httpd错误日志时,我看到:

FCGI: attempt to connect to Unix domain socket /run/php-fpm/www.sock (*) failed

I don't know if this is the cause of the 503 error but I am unable to understand how to handle this error as in Elastic Beanstalk there is not all that much control over Apache or the PHP installation. Help?

我不知道这是否是503错误的原因,但我无法理解如何处理这个错误,因为在Elastic Beanstalk中,对Apache或PHP安装没有太多的控制。帮助吗?

1 个解决方案

#1


0  

For my application the answer was to move back down to the phone v7.0 image. I don't know why but something in the 7.1 image was not working properly.

对于我的应用程序,答案是回到phone v7.0映像。我不知道为什么,但是在7.1图像中有些东西不能正常工作。


分享到: