I Ubuntu 16.04, med PHP 5.6, med 64-bitars OS, prova detta:
Installera paketen:
sudo apt-get install php5.6-dev build-essential php-pear libaio1
Ladda ner den senaste versionen av paketen från:
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
Sök efter dessa paket, enligt den senaste versionen:
oracle-instantclientXX.X-basic-XX.X.X.X.X-X.x86_64.rpm
oracle-instantclientXX.X-devel-XX.X.X.X.X-X.x86_64.rpm
Konvertera paket:
sudo apt-get install alien
sudo alien oracle-instantclientXX.X-basic-XX.X.X.X.X-X.x86_64.rpm
sudo alien oracle-instantclientXX.X-devel-XX.X.X.X.X-X.x86_64.rpm
Installerar:
sudo dpkg -i oracle-instantclientXX.X-basic_XX.X.X.X.X-X_amd64.deb
sudo dpkg -i oracle-instantclientXX.X-devel_XX.X.X.X.X-X_amd64.deb
Installerar oci8:
sudo pecl install oci8-2.0.12
*Build process completed successfully
Installing '/usr/lib/php/20131226/oci8.so'
install ok: channel://pecl.php.net/oci8-2.0.12
configuration option "php_ini" is not set to php.ini location
You should add "extension=oci8.so" to php.ini*
Lägg till tillägget till php:
sudo gedit /etc/php/5.6/apache2/php.ini
lägg till tillägget:
extension=oci8.so
Starta om apache:
sudo service apache2 restart
Det var allt.