Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I installed oci8,oracle-instantclient-19.11,php 7.2 on my remote linux machine. But oci8 module is not loading in phpinfo() page. I added these

1. extension=oci8.so in /etc/php.ini file
2. envvars in /var/www/html/bin
LD_LIBRARY_PATH="/usr/lib/oracle/19.11/client64/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
export TNS_ADMIN=/etc
export HOME=/var/www/html

but still, oci8 is not working.

oracle-instantclient-19.11 path => /usr/lib/oracle/19.11/client64/lib

oci8 path => /usr/lib64/php/modules/oci8

What am I doing wrong? Any clue will help me

@alvin-bunk any clue??

What I have tried:

1. extension=oci8.so in /etc/php.ini file
2. envvars in /var/www/html/bin
LD_LIBRARY_PATH="/usr/lib/oracle/19.11/client64/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
export TNS_ADMIN=/etc
export HOME=/var/www/html
Posted
Updated 3-Mar-22 1:37am

1 solution

If you want to ask the author of article, go to that article, scroll down and find a section: "Add comment or question".

Articles of Alvin Bunk related to Oci8:
Installing OCI8 & PHP 7.2 on RHEL or CentOS 6[^]
Installing OCI8 on RHEL[^]

You might be also interested in:
PHP and OCI8 Installation for RHEL8 | UITS Linux Team[^]
How to install PHP OCI8 Oracle module on Software Collections and RHEL via PECL - Red Hat Customer Portal[^]
 
Share this answer
 
v2
Comments
Member 14362033 3-Mar-22 7:43am    
Searched each and every document but don't know what to do? Can you tell me where do I Need to set the environmental variable and oracle_home? Any clue?
Maciej Los 3-Mar-22 7:55am    
Sorry, i dnn't know how to set variable.

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