Click here to Skip to main content
15,867,834 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
In my php project, I am using oracle DB and Linux rhel 7.9 as a remote server. I installed oci8 package and enabled the oci8 extension in apache but still, I am getting an error Call to an undefined function.

Installed packages
php-5.4.16-48.el7.x86_64
php-ldap-5.4.16-48.el7.x86_64
php-pecl-oci8-2.0.12-1.el7.remi.5.4.x86_64
php-cli-5.4.16-48.el7.x86_64
php-gd-5.4.16-48.el7.x86_64
php-pear-1.9.4-22.el7.noarch
php-odbc-5.4.16-48.el7.x86_64
php-common-5.4.16-48.el7.x86_64
php-xml-5.4.16-48.el7.x86_64
php-pdo-5.4.16-48.el7.x86_64
php-process-5.4.16-48.el7.x86_64
php-mbstring-5.4.16-48.el7.x86_64

what am I doing wrong? How to solve this issue?

What I have tried:

Installed php-pecl-oci8-2.0.12-1.el7.remi.5.4.x86_64 this package but still it's not working.
Posted
Updated 9-Jul-23 19:54pm

1 solution

Hard to tell what is wrong when we don't know the actual steps you took, nor the relevant parts in your actual configuration files.

This SO post explains the process to properly install oci8 on CentOS:
php - Oci_connect function is undefined in CentOS with Oracle - Stack Overflow[^]

Since CentOS is RHEL-based, there is a chance to grasp some important clues in there.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900