Difference between revisions of "CentOS 7.x Installing PHP 7.x"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>CentOS_7.x_package_management|CentOS 7.x package management</yambe:breadcrumb> =CentOS 7.x Installing PHP 7.x= To install PHP 7.x versions on CentOS 7.x use...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>CentOS_7.x_package_management|CentOS 7.x package management</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x system administration|System Administration]] > [[CentOS 7.x package management|Package management]] > [[CentOS 7.x Installing PHP 7.x]]
=CentOS 7.x Installing PHP 7.x=


To install PHP 7.x versions on CentOS 7.x use following steps:
To install PHP 7.x versions on CentOS 7.x use following steps:
# Setup repositories and packages
# Setup repositories and packages
#:<pre>
#:<pre>
#::yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#::yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#::yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
#::yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
#::yum -y install yum-utils
#::yum -y install yum-utils
#::yum-config-manager --enable remi-php72
#::yum-config-manager --enable remi-php72
Line 18: Line 17:




Refer:
* https://www.tecmint.com/install-php-7-in-centos-7/




Refer:
 
* https://www.tecmint.com/install-php-7-in-centos-7/
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x system administration|System Administration]] > [[CentOS 7.x package management|Package management]] > [[CentOS 7.x Installing PHP 7.x]]

Latest revision as of 06:57, 25 August 2022

Home > CentOS > CentOS 7.x > System Administration > Package management > CentOS 7.x Installing PHP 7.x

To install PHP 7.x versions on CentOS 7.x use following steps:

  1. Setup repositories and packages
    yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
    yum -y install yum-utils
    yum-config-manager --enable remi-php72
    yum -y update php
    Replace remi-php72 with remi-php71 or remi-php70 if older versions are required
  2. Verify PHP version installed using
    php -v


Refer:


Home > CentOS > CentOS 7.x > System Administration > Package management > CentOS 7.x Installing PHP 7.x