How to Install PHP 5.6 on Oracle Linux 7

Oracle Linux is a free RHEL based Linux distro. We will install PHP 5.6 on an Oracle Linux 7 server.

First, enable EPEL repo

Enable Remi repo

Install yum-utils package

Enable remi-php56

Install PHP 5.6 with

This will only install the CLI version of PHP 5.6. To make Apache work with PHP 5.6, install

This will create file /etc/httpd/conf.d/php.conf, that enable PHP module in Apache.

Restart apache webserver

Now Apache will be able to serve PHP files.

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *