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

joshuaziering's avatar

I want to be lame and use PHP 5.6. How?

I have a requirement to use PHP 5.6 because a module that's very important to my app does not yet support PHP 7.

I still want to utilize the niceties of Forge and Envoyer (Which I'm already using. Imagine my surprise when I built and deployed a new box and everything blew up on me.)

What's my best option to "Rip out" PHP 7 and put 5.6 back in so I can use my module?

Thank you,

Josh P.S. Amazon, Ubuntu, and otherwise default forge settings.

0 likes
3 replies
bashy's avatar

You can install two PHP versions. Then reference php5-fpm.sock instead of php7.0-fpm.sock in Nginx.

1 like
joshuaziering's avatar

And to be clear, this would let me run one version of PHP for my workers and PHP 7 for my web app? Because that would be freaking fantastic. Do you have any documentation on the best way to accomplish this? I see a lot of apache stuff floating around, but I want to use NGINX

bashy's avatar

You would probably need to build PHP yourself unless your system lets you install 5.6 and 7.0 (is easier than installing two minor versions).

I don't have a link to any but this is going off my 6 years of playing around with Linux servers

Please or to participate in this conversation.