Topic: OCI8 installs with yum, but oci_connect still undefined

I have installed the group of php-5.3.0* items using yum, including php-oci8.  I still get the message "oci_connect() not defined" from PHP.  I have located the oci8.so file in /usr/lib64/php/modules/ and put extension=oci8.so in /etc/php.ini.  There is also a  /etc/php.d/oci8.ini file that contains the same line.

The phpinfo() function does not have a section on oci8, although it mentions that it parses /etc/php.d/oci8.ini.

Does anyone know what else needs to be done to get it to recognize oci_connect()?

Re: OCI8 installs with yum, but oci_connect still undefined

and put extension=oci8.so in /etc/php.ini.

Not needed

/etc/php.d/oci8.ini file that contains the same line.

Yes, that's enough.

Please read the error.log (apache)
Probably the Oracle Client (version 11.1 required) not correctly installed. See : Accès aux bases de données Oracle en PHP.

+

P.S. sorry the tuto is only in french, translation are welcome wink

Desktop: Fedora 33 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 32 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: OCI8 installs with yum, but oci_connect still undefined

Thank you.  It turns out that adding the ORACLE_HOME and TNS_ADMIN variables to the /etc/init.d/httpd script allowed it to find the oci8.so.