Ryan Price
Ryan Price

Reputation: 315

PHP not recognizing where oci8.so was installed

I'm attempting to install oci8 with PHP 7.1. I am following the instructions here: http://www.oracle.com/technetwork/articles/technote-php-instant-084410.html

I have:

I have enabled the extension in php.ini too. When I try to do a php -i I get the following:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/oci8.so' - /usr/lib/php/20160303/oci8.so: cannot open shared object file: No such file or directory in Unknown on line 0

The oci8.so is in 20151012 not 20160303. I've tried symlinks and just moving it over but it detects it's not compiled for that format and doesn't like that either.

What am I missing? How do I get this all to play nicely?

I have made the same changes between cli and apache php.ini files.

Thanks in advance.

Upvotes: 0

Views: 3951

Answers (1)

Christopher Jones
Christopher Jones

Reputation: 10496

PHP OCI8 on PECL supports PHP 7 (and older versions - see the PECL page for installing on older PHP versions).

Try uninstalling OCI8.

Check you don't have multiple version of PHP - the path name difference makes me think you do.

Upvotes: 1

Related Questions