Install PHP 7 on CentOS 7


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

yum install
yum install

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

Rate this post:
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