Homestead v6.5.0 bad gatweway error 502 trying to use php 5.6

Posted 1 year ago by longestdrive

Hi I'm using the latest version of homestead v6.5.0. The set up is working well for my Laravel 5 sites but not for a laravel 4.2 site.

I've set the php version to 5.6 for the site in homestead.yaml as detailed in the guidance. However when I try to access the site I get a bad gateway 502 error

checking the nginx log file I found this error:

connect() to unix:/var/run/php/php5.6-fpm.sock failed (2: No such file or directory) while connecting to upstream

Checking that directory none of the php5.6-fpm files are there.

How do I install these to the homestead machine?


Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.