Created
December 14, 2018 15:27
-
-
Save rafrancoso/0c0efea48d9d7862de623b68e31c8148 to your computer and use it in GitHub Desktop.
Install oci8 php driver on Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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