In Ubuntu 16.04, met PHP 5.6, met 64-bits besturingssysteem, probeer dit:
Installeer de pakketten:
sudo apt-get install php5.6-dev build-essential php-pear libaio1
Download de nieuwste versie van de pakketten van:
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
Zoek naar deze pakketten, volgens de laatste versie:
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
Pakketten converteren:
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
Installeren:
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
Oci8 installeren:
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*
Voeg de extensie toe aan php:
sudo gedit /etc/php/5.6/apache2/php.ini
voeg de extensie toe:
extension=oci8.so
Start apache opnieuw:
sudo service apache2 restart
Dat is het.