Introduction
The PHP extension oci8 is not part of EasyApache 4. To install the oci8 extension, you'll need to satisfy the oci8 dependencies. Once this has been resolved, you'll need to use PECL to install the module.
Procedure
The following procedure will work on all RHEL operating systems supported by cPanel.
- Connect to your server using SSH as the root user
- Run the following command to install the Oracle InstantClient:
For RHEL 8/9, install the "latest" rpm:rpm -Uhv https://download.oracle.com/otn_software/linux/instantclient/oracle-instantclient-basic-linuxx64.rpm https://download.oracle.com/otn_software/linux/instantclient/oracle-instantclient-devel-linuxx64.rpm
For RHEL 7, install the following rpm:rpm -Uvh https://download.oracle.com/otn_software/linux/instantclient/1927000/oracle-instantclient19.27-basic-19.27.0.0.0-1.x86_64.rpm https://download.oracle.com/otn_software/linux/instantclient/1927000/oracle-instantclient19.27-devel-19.27.0.0.0-1.x86_64.rpm
- Once the rpm is installed, run one of the following commands to begin the installation of oci8 appropriate to your version of PHP:
ea-php54-pecl install oci8-2.0.12
ea-php55-pecl install oci8-2.0.12
ea-php56-pecl install oci8-2.0.12
ea-php70-pecl install oci8-2.2.0
ea-php71-pecl install oci8-2.2.0
ea-php72-pecl install oci8-2.2.0
ea-php73-pecl install oci8-2.2.0
ea-php74-pecl install oci8-2.2.0
ea-php80-pecl install oci8-3.0.1
ea-php81-pecl install oci8-3.2.1
ea-php82-pecl install oci8
- When the installer begins, it will ask for the path to the InstantClient. You can simply hit enter to auto-detect the path and complete the installation.
Comments
0 comments
Article is closed for comments.