phpapacheubuntumoduleoci8

php oci8 module not loaded (ubuntu 16)


I have a problem with the oci8 module, it doesn't load.

The OS is Ubuntu 16, with Apache 2.4 and PHP 5.6

I do the following steps:

The module is not loaded and Apache logs show 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


Solution

  • The problem was from libaio.so library as @Alexandre mentioned, It's a 32/64 bit mismatch.

    I found the problem from @Codo answer: https://stackoverflow.com/a/10619763/1995358

    The problem solved after installing libaio.so library again:

    sudo apt-get install libaio1