------remirepo wrote: ↑2020/05/14 17:26:44With systemd, /etc/sysconfig/httpd is NOT a bash script, so should not use the "export" keyword.
Also check content of /ora01/app/oracle/product/19.6.0/instantclient_19_6 (for libclntsh.so.19.1)
Also check from command ligne
Code: Select all
$ LD_LIBRARY_PATH=/ora01/app/oracle/product/19.6.0/instantclient_19_6 php --ri oci8 oci8 OCI8 Support => enabled OCI8 DTrace Support => enabled OCI8 Version => 2.2.0 Oracle Run-time Client Library Version => 19.6.0.0.0 Oracle Compile-time Instant Client Version => 19.6 ...
sorry sir i already delete it from /etc/sysconfig/httpd
also check the directory /ora01/app/oracle/product/19.6.0/instantclient_19_6 (for libclntsh.so.19.1) and file is there
[root@juserver oracle]# LD_LIBRARY_PATH=/ora01/app/oracle/product/19.6.0/instantclient_19_6 php --ri oci8
oci8
OCI8 Support => enabled
OCI8 DTrace Support => enabled
OCI8 Version => 2.2.0
Oracle Run-time Client Library Version => 19.6.0.0.0
Oracle Compile-time Instant Client Version => 19.6
Directive => Local Value => Master Value
oci8.max_persistent => -1 => -1
oci8.persistent_timeout => -1 => -1
oci8.ping_interval => 60 => 60
oci8.privileged_connect => Off => Off
oci8.statement_cache_size => 20 => 20
oci8.default_prefetch => 100 => 100
oci8.old_oci_close_semantics => Off => Off
oci8.connection_class => no value => no value
oci8.events => Off => Off
Statistics =>
Active Persistent Connections => 0
Active Connections => 0
-----
i have copied three files such as (libclntsh.so.19.1,libclntshcore.so.19.1,libnnz19.so) into /ora01/app/oracle/product/12.2.0/db_1/lib
then php -v NO ERROR
but when i restart httpd
same error showing
please help sir