Skip to content

Instantly share code, notes, and snippets.

@rafrancoso
Created December 14, 2018 15:27
Show Gist options
  • Save rafrancoso/0c0efea48d9d7862de623b68e31c8148 to your computer and use it in GitHub Desktop.
Save rafrancoso/0c0efea48d9d7862de623b68e31c8148 to your computer and use it in GitHub Desktop.
Install oci8 php driver on Debian
#download oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm from oracle site
#download oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm from oracle site
apt-get install -y php7.1-dev build-essential php-pear libaio1 alien
alien -i oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
alien -i oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm
yes '' | pecl install oci8
echo "extension=oci8.so" > /etc/php/7.1/mods-available/oci8.ini
ln -s /etc/php/7.1/mods-available/oci8.ini /etc/php/7.1/apache2/conf.d/oci8.ini
ln -s /etc/php/7.1/mods-available/oci8.ini /etc/php/7.1/cli/conf.d/oci8.ini
service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment