PHP Packages for Oracle Linux

Recent community releases of PHP built by Oracle

  • Home > 
  • PHP Repositories

PHP for Oracle Linux

The PHP repositories contain the latest builds of stable PHP releases from the community, including the oci8 extension for the Oracle Database. They are provided without support.

Available PHP Releases

PHP Version Oracle Linux Release Repository Name
7.2 Oracle Linux 7 ol7_developer_php72
7.1 Oracle Linux 7 ol7_developer_php71
7.0 Oracle Linux 7 ol7_developer_php70
7.2 Oracle Linux 6 ol6_developer_php72
7.1 Oracle Linux 6 ol6_developer_php71
7.0 Oracle Linux 6 ol6_developer_php70


To install PHP from this yum server, first download the PHP yum configuration.

Enabling Required Repositories

To configure the yum repositories shown above on your system, install the oracle-php-release-el7 or oracle-php-release-el6 RPM. After installing this RPM, the default enabled repository is that for the latest available PHP release. To configure the PHP repository:

$ sudo yum install -y oracle-php-release-el7

If yum is unable to find any of the packages mentioned below, follow the instructions on our Getting Started page to ensure your system is set up correctly to work with our release packages.

Then, to install PHP 7.2 on Oracle Linux 7:

$ sudo yum install -y php

Getting Help

For help with PHP on Oracle Linux, please visit the PHP space in the Oracle Developer Community.