Right now I already install LAMPP stack in my centos 8. So far so good, apache, php and mariadb works well in my server.
I follow this tutorial https://medium.com/@azharnian/cara-install-oci8-php-7-di-centos7-851abbb5d15
I also install oracle instant client and it went pretty well. No problem setting all of it. I can see in my php - i
and oci8.so exist in my /usr/lib64/php/modules
directory .
oci8
OCI8 Support => enabled
OCI8 DTrace Support => disabled
OCI8 Version => 2.2.0
Oracle Run-time Client Library Version => 19.8.0.0.0
Oracle Compile-time Instant Client Version => 19.8
Directive => Local Value => Master Value
oci8.connection_class => no value => no value
oci8.default_prefetch => 100 => 100
oci8.events => Off => Off
oci8.max_persistent => -1 => -1
oci8.old_oci_close_semantics => Off => Off
oci8.persistent_timeout => -1 => -1
oci8.ping_interval => 60 => 60
oci8.privileged_connect => Off => Off
oci8.statement_cache_size => 20 => 20
Statistics =>
Active Persistent Connections => 0
Active Connections => 0
And I already set in my php.ini
extension_dir = "/usr/lib64/php/modules"
[OCI8]
extension=oci8.so
And set LD_LIBRARY_PATH in my /etc/httpd/conf/httpd.conf
SetEnv LD_LIBRARY_PATH /home/user/instantclient_19_8
I even change the permission file oci8.so
into sudo chmod 755 /usr/lib64/php/modules/oci8.so
I follow the suggestion in this link No oci8 module in phpinfo() also didn't work.
I even sudo reboot
many times and enable/start the httpd
. But still didn't work
What am I missing here ?
Appreciate if someone can help me. Many thanks.