Created
August 25, 2019 14:43
-
-
Save facilita-tecnologia/c48c23fd8068c7f8f7a36e8bd060d738 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CentOS 7 provides PHP version 5.4 in its official repository | |
Command to install the EPEL repository configuration package: | |
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
Command to install the Remi repository configuration package: | |
yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
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-* | |
Some common dependencies are available in remi-safe repository, which is enabled by default | |
PHP version 5.6 packages are available for CentOS 7 in remi-php56 repository | |
Command to enable the repository: | |
yum-config-manager --enable remi-php56 | |
If the priorities plugin is enabled, ensure remi-php56 have higher priority (a lower value) than base and updates | |
Command to upgrade (the repository only provides PHP): | |
yum update | |
Command to install additional packages: | |
yum install php-xxx | |
Command to check the installed version and available extensions: | |
php --version | |
php --modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment