Recommended PHP 7 Source For CentOS 7

Home » CentOS » Recommended PHP 7 Source For CentOS 7
CentOS 9 Comments

I know there’s a couple third party repos offering PHP 7 for CentOS. I
prefer not to add too much third party that I don’t have to and PHP 7
has been mainstream for some time now, I thought maybe it would be in EPEL by now.

What is the most recommended and stable way to get an up to date PHP on CentOS 7?

9 thoughts on - Recommended PHP 7 Source For CentOS 7

  • As far as I know, the only alternative to using a third-party repo’s prebuilt RPM versions with automatic updates (e.g.: Remi) would be to download and compile it yourself from php.net and aggressively update it by hand every time a new version is released.

  • php 7.0 / 7.1 / 7.2 available in red hat scl:

    php72:

    yum -y install CentOS-release-scl yum -Y install rh-php72

    Am 16.04.19 um 00:39 schrieb MRob:

  • EPEL tries not replace to core EL packages so someone would have to package up a php72 which would co-install with the normal packages and would also supply all the other items without replacement. That takes a lot of work and instead volunteers have focused on the PHP Software Collections and the Remi’s PHP repositories that others have mentioned.

  • Second vote for remi. Running 7.2, no issues on EL7. The only config issue I’ve had is getting it to work with php-fpm and apache, but that was almost all apache config files.