[CentOS] Centos 7 LAPP setup PHP 5 vs 7

Thu Apr 5 19:05:19 UTC 2018
Gianluca Cecchi <gianluca.cecchi at gmail.com>

On Thu, Apr 5, 2018 at 8:49 PM, Gary Stainburn <gary at ringways.co.uk> wrote:

> Another questions regarding my new server setup.
> [snip]

> The default distro's appear to still be installing PHP5 while some sites
> instruct on how to install PHP7.
> I am porting my old server which must be 10 years old, running Fedora 9 and
> PHP5 onto the new server, so presumably sticking with PHP5 would be the
> easier option.
> However, I am looking to give my new server as long a life as possible, so
> should I instead be looking at PHP7?


It mainly depends on your application, I think. And the level of "support"
you want.
Anyway, the default in plain CentOS 7 is now version 5.4, based on 5.4.16.
To get PHP 7.0 or 7.1, but also newer minor version of 5.4 (currently
5.4.40) or 5.5 or 5.6, you have to enable the so-called Software
See here:

There are then some "scl" commands to enable desired installed version (eg
to have in default path ecc..), so that you can try them and find the more
suitable one.
More info here: