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 repository, ensure you have the latest Oracle Linux Yum server repo file and enable the appropriate repository.

For example, to install PHP 7.2 on Oracle Linux 7:

$ sudo mv /etc/yum.repos.d/public-yum-ol7.repo /etc/yum.repos.d/public-yum-ol7.repo.bak
$ sudo wget -O /etc/yum.repos.d/public-yum-ol7.repo
$ sudo yum install -y yum-utils
$ sudo yum-config-manager --enable ol7_developer_php72
$ sudo yum install -y php

Getting Help

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