Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

502 gateway error #2

Closed
petecoop opened this issue Dec 20, 2016 · 1 comment
Closed

502 gateway error #2

petecoop opened this issue Dec 20, 2016 · 1 comment

Comments

@petecoop
Copy link
Owner

I get a 502 gateway error after starting the box

@petecoop
Copy link
Owner Author

To debug this you can ssh into the machine and have a look at the logs:

vagrant ssh
cat /var/logs/nginx/homestead*.log

This issue was to do with it being unable to send requests to php7.0-fpm. Because the box had been upgraded to the latest homestead version, but our package version was out of date.

To fix this you can:

  • manually edit the file in /etc/nginx/sites-enabled/ and change php7.0 to php7.1.
  • run sudo service nginx restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant