I have a problem oci8 module not loaded.
The OS is Ubuntu 16, with Apache 2.4 and PHP 5.6
I do the following steps:
- I Downloaded Oracle Instant Client Basic and SDK packages: ( oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm, oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm )
- Install the Oracle Instant Client (after converting the .rpm to .deb)
- Download the OCI8 Extension from PECL ( oci8-2.0.12 )
- Build the PHP OCI8 Module
- Copy oci8.so to modules directory (/usr/lib/php/20131226/)
- Edit php.ini file and adding extension with full path (extension=/usr/lib/php/20131226/oci8.so)
- I added the oracle library path to the environment variable LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib
- Restart Apache
The module not loaded and Apache logs showing the following error:
Unable to load dynamic library '/usr/lib/php/20131226/oci8.so' - libaio.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
-rwxr-xr-x 1 root root 624416 Dec 3 15:42 oci8.so
for ex.-rw-r--r-- 1 root root 1463904 Nov 14 05:35 mbstring.so -rw-r--r-- 1 root root 47256 Nov 14 05:35 mcrypt.so -rw-r--r-- 1 root root 55432 Nov 14 05:35 mysql.so
– Ahmad Abdullahchmod a-x oci8.so
Does bug still persist ? – Alexandre Tranchant$ locate libaio.so
? Is it corresponding toLD_LIBRARY_PATH
– Alexandre Tranchantsudo apt-get install libaio1
, and the problem solved. – Ahmad Abdullah