For When You Can't Have The Real Thing
[ start | index | login ]
start > CentOS > 7 > PHP 7

PHP 7

Created by dave. Last edited by dave, 3 years and 62 days ago. Viewed 2,755 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
(2021-02-23)

Installing PHP 7

>>Instructions for 7.4

Older information

(2017-09-13)

CentOS 7 provides PHP version 5.4 in its official repository.

Command to install the Remi repository configuration package:

Command to install the yum-utils package (for the yum-config-manager command):

yum install yum-utils

You want a single version which means replacing base packages from the distribution

Packages have the same name than the base repository, ie php-*

PHP version 7.1 packages are available for CentOS 7 in remi-php71 repository

Command to enable the repository:

yum-config-manager --enable remi-php71

Command to upgrade (the repository only provides PHP):

yum update
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt