Install PHP 7 on CentOS 7

1

First, make sure you've installed Remi and EPEL repositories:

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Next, install yum-utils:

yum install yum-utils

Next, to install PHP 7 you should enable it in the config manager:

yum-config-manager --enable remi-php73

Now you can install PHP:

yum install php

PHP config file is located at /etc/php.ini

Share this page:

See also how to:

How to install PHP FastCGI Process Manager (FPM) on CentOS 7
How to run your PHP or Bash script as root in the most secure way
How to install PostgreSQL database server on Linux
How to install Java runtime environment on CentOS 7
How to install MySQL database server on CentOS 7