I Ubuntu 16.04, ved hjælp af PHP 5.6, med 64bit OS, prøv dette:
Installer pakkerne:
sudo apt-get install php5.6-dev build-essential php-pear libaio1
Download den seneste version af pakkerne fra:
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
Søg efter disse pakker i henhold til den seneste version:
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
Konvertering af pakker:
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
Installerer:
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
Installerer 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*
Tilføj udvidelsen til php:
sudo gedit /etc/php/5.6/apache2/php.ini
tilføje udvidelsen:
extension=oci8.so
Genstart apache:
sudo service apache2 restart
Det var det.