RHEL 7.4 PHP Multi-versions

megz asked:

I have an RHEL 7.4 Server that currently hosting few web apps, one of these apps requires PHP Version <= v5.6
I’m going to add a new app that requires PHP version>=v7
Can I combine both these versions and have them running in parallel, and how?

My answer:


You have several options to solve the problem of running multiple PHP versions simultaneously on your RHEL 7 server.

These options are fully supported by Red Hat under your existing subscription entitlement:

  • Using Software Collections. These allow installing multiple versions of various software side by side on the same system without them interfering with each other.
  • Using Red Hat provided Docker containers for running multiple apps on multiple software stacks. If you haven’t already begun containerizing, your current project may make a good starting point.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.