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

cshelswell's avatar

Installed PHP 7 on OSX now Homestead won't work

Just as above really. I updated to PHP 7 on El Capitan and now all of my homestead sites that i've setup with the ip 192.168.10.10 just go to my mac's localhost folder so I'm just getting an "It works" from Apache.

It's like OSX is ignoring my hosts file. Just wondering if anyone could help or has experienced this?

Thanks

0 likes
4 replies
ejdelmonico's avatar

Are you using Homestead 0.5.0? That version comes with PHP7 in the vm. I have php7 installed via home-brew with no issues.

cshelswell's avatar

@ejdelmonico Yeah I don't think it's Homestead that's at fault here. That's working great when I change the ip address on my Mac's hosts file it's just when I use the original IP of 198.168.10.10 it seems to direct all traffic to my Mac's apache set up and not to Homestead.

ejdelmonico's avatar

That's a strange one. Try installing Valet and see if that works. I use Valet when I don't need a DB and Homestead with the DB.

Please or to participate in this conversation.