Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vc_ace's avatar

php7.2-fpm.sock failed (2: No such file or directory

I had a laravel/homestead running from in install in 2016. I tried to wipe it clean and start from scratch. But I'm getting a 502 error due to a missing file: :/var/run/php/php7.2-fpm.sock

2020/05/01 00:24:35 [crit] 3778#3778: *1 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.10.1, server: homestead.test, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "192.168.10.10"

The only version I have is php5.6-fpm.sock.

I'm wondering why the other php versions weren't loaded. Am I somehow loading Homestead from a cached version?

I walked through the steps here https://laravel.com/docs/7.x/homestead

I did adjust my yaml file but since the other files aren't available it didn't help.

sites: - map: homestead.test to: /home/vagrant/code/laravel/public php: "7.2"

0 likes
3 replies
vc_ace's avatar

id name provider state directory

94aef05 homestead virtualbox running C:/Users/Rich/Homestead

$ vagrant version Installed Version: 2.2.7 Latest Version: 2.2.7

You're running an up-to-date version of Vagrant!

Please or to participate in this conversation.