Jo Colina
Jo Colina

Reputation: 1914

Add extension (OCI8) to PHP - Linux

After much pain, I managed to build oci8, installing all the libraries from oracle and many other missing libraries.

Now I have a oci8.so file under usr/lib/php5/20131226 and the line extension=oci8.so in the php.ini file.

However when I launch phpinfo() I can't see it, and when I try to use a oci_ function I get nothing, no error, no result.

If anyone knows why, or how to make this work, I'll be really grateful. Thanks

Upvotes: 1

Views: 1138

Answers (1)

  1. You should create oci8.ini file with row:

extension=oci8.so

  1. Activate extension for php.

How to install Oracle Instant client and oci8 for Linux Debian 8/9/10: https://skalolaskovy.ru/comp-various/535-debian-and-oracle (in Russian)

Upvotes: 1

Related Questions