Best to ask the question again here. I cba to click on a link and answer it here :)
Dec 29, 2015
26
Level 4
502 Bad Gateway nginx (1.9.7) in Homestead [ Laravel 5 ]
- I have "homestead" globally installed.
- Also, I did grab laravel/homestead box.
- Did edit my Homestead.yaml file to map my folder location and sites location. [ This part is working since I am able to access files locally as well as from virtual box ]
- Did named the domain "onestop.dev" for "192.168.10.10" in my "/etc/hosts"
- Did fix the document root as well in /etc/nginx/sites-available/onestop.dev
When I try to access onestop.dev, I keep getting 502 Bad Gateway
[ I even asked the same question in stakoverflow. But have not heard anyone answering this ] http://stackoverflow.com/questions/34473185/502-bad-gateway-nginx-1-9-7-in-homestead-laravel-5
Level 1
Hi,
I think that is about a problem in the configuration files using old php 5.6 and the new VM is using php 7.0
It worked for me:
edit homestead.app
sudo nano /etc/nginx/sites-enabled/homestead.app
change line fastcgi_pass for
...
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
...
restart nginx and php7.0-fpm
sudo service nginx restart
sudo service php7.0-fpm reload
18 likes
Please or to participate in this conversation.