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

plcosta's avatar

Multiple PHP Versions Homestead

Is possible have two versions of PHP installed in Homestead? 5.6 and 5.5?

I have a php lib that currently works only in 5.5..

Tks!

0 likes
6 replies
bobbybouwmann's avatar
Level 88

I don't think it's possible! You can run multiple homesteads next to each other as long as you don't install them globally ;)

1 like
plcosta's avatar

@blackbird @bashy thanks for help!

I cloned github homestead project and renamed default folders names from .homestead to .homestead55

It's works perfect!

jeitnier's avatar

I just did the exact same thing as @plcosta and it worked fine. I'm running the latest Homestead box with PHP 7 support and an old Homestead box with PHP 5.6 support. Just had to forward SSH on the 2nd box to another port in scripts/homestead.rb to run the boxes simultaneously:

config.vm.network :forwarded_port, guest: 22, host: 2223, id: 'ssh'

Aside from forwarding the other usual ports (80, 443, etc.) that was about it.

Please or to participate in this conversation.