PHP 7.2 Install
IMPORTANT: These instruction are only for a new server installation or those who wish to remove the previous version of PHP and run ONLY PHP 7.2 on the server.
If you are upgrading a server to PHP 7.2, and still need to be able to run a previous version of PHP, please see the PHP 7.2 Upgrade Instructions
Additionally, REDHAT 8 does not auto configure php-fpm as it does in previous versions, so for REDHAT 8, the upgrade instructions should be used: PHP 7.2 Upgrade
Required Packages
Name | Description |
---|---|
php72 | The PHP 7.2 Package |
php72-php | PHP 7.2 Apache Module |
Install Process
Remove any previous versions of PHP
yum -y remove php*
Instal EPEL and Remi-Safe repositories. Install Yum Utils.
# RedHat 6 or CentOS 6 yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm http://rpms.remirepo.net/enterprise/remi-release-6.rpm yum-utils # RedHat 7 or CentOS 7 yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum-utils
Set the PHP Version to 7.2
yum-config-manager --enable remi-php72
Update all currently installed packages
Install PHP 7.2
Make a symbolic link so that php = php72
Edit the php.ini file. This will typically be located at /etc/opt/remi/php72/php.ini. The following lines need to be updated:
Install the PHP modules required by PCR-360
Install installation dependant Packages. These will depend on how the server is configured.
Install OCI8 Support ONLY if this is an Oracle Load:
Support for this will require you Update the Oracle Instant Client to at at least version 18.1
You will likely need to remove previous versions of SQL Plus
Start Here: Instant Client Install
Then install the PHP72 Mod
Verify that PHP 7.2 is installed.