How to install PHP 7 on CentOS 7.3

CentOS Tutorial – This tutorial is going to show you how to install PHP 7 on CentOS 7.3. If you are planning to install Owncloud 10 on CentOS 7.3 Server, you will need to install or upgrade your PHP version. Owncloud 10 does not support PHP version 5.4.16. Minimum PHP version required by Owncloud is PHP version 5.4.16. In order to install PHP 7 on CentOS 7.3, we need to do some things.

Steps to install PHP 7 on CentOS 7.3

Step 1. Remove any previous PHP

First we need to remove PHP installed on CentOS. If you haven’t installed PHP, you can skip this step.

Step 2. Add EPEL and REMI Repository

Now we need to add or install EPEL and REMI Repository on CentOS 7.3.

You may need to install wget first if you don’t have it yet.

Now we need to enable REMI repository

Now change to Enabled=1

Step 3. Install PHP 7

Now we can start installing PHP.

Once finished, you can check the php version with this command

Output:

Ok that’s it. Thanks for reading this post on how to install PHP 7 on CentOS 7.3 server. Stay tuned for the next tutorial like this.

Be the first to comment

Leave a Reply

Your email address will not be published.


*