PHP and CentOS 7

Issues related to applications and software problems
Post Reply
doulos
Posts: 22
Joined: 2015/11/07 17:55:32

PHP and CentOS 7

Post by doulos » 2018/05/19 04:56:36

Forgive me if this has been answered before, but I am wondering what is the reason CentOS 7 ships with php5.4? Seems weird to me.

User avatar
TrevorH
Forum Moderator
Posts: 23205
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PHP and CentOS 7

Post by TrevorH » 2018/05/19 10:03:24

Because CentOS is a clone of RHEL and that is a stable 'Enterprise' distribution that doesn't change versions of packages once the initial release of the distro has taken place. At the time RHEL 7 was released in 2014, php 5.4 was the stable version of php.

Please see https://access.redhat.com/security/updates/backporting/ for information on backporting of security fixes and features in CentOS and RHEL
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

doulos
Posts: 22
Joined: 2015/11/07 17:55:32

Re: PHP and CentOS 7

Post by doulos » 2018/05/19 13:36:19

To dumb it down for me ... is that saying that even though PHP 5.4 is past it's end of life, it is still safe to use when it is included in a CentOS 7 release?

hunter86_bg
Posts: 1222
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: PHP and CentOS 7

Post by hunter86_bg » 2018/05/19 16:24:27

From Security point of view -> YES, all vulnerability fixes are backported.
From Development point of view , it's still the same PHP version as RHEL 7/ CentOS 7 were born and many of the functionalities are missing (compared to PHP 7 for example).

User avatar
TrevorH
Forum Moderator
Posts: 23205
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PHP and CentOS 7

Post by TrevorH » 2018/05/19 16:24:41

The distro copy is maintained by Redhat and they backport any security fixes that need to be made from the code produced by php.net.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

doulos
Posts: 22
Joined: 2015/11/07 17:55:32

Re: PHP and CentOS 7

Post by doulos » 2018/05/20 23:48:06

OK, thanks. I do have a couple scripts I have updated to run on 5.6 - only because I was worried about the security of 5.4. Wish I would have asked this question a while ago - would have saved a bunch of time.

MartinR
Posts: 329
Joined: 2015/05/11 07:53:27
Location: UK

Re: PHP and CentOS 7

Post by MartinR » 2018/05/21 10:33:43

FYI: php 5.4.40 and 5.5.21 are available in centos-sclo-rh

Post Reply