-
-
Save mintbridge/0a20c3f9d40bae87315a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
apt-get update | |
#Additional Packages | |
apt-get install -y keyutils unzip php5-ldap php5-mssql zsh | |
#PHP OCI8 Driver | |
#Putting the cart before the horse here, but it leaves the only interactive part for the end. | |
echo 'extension=oci8.so' >> /etc/php5/fpm/php.ini | |
echo 'extension=oci8.so' >> /etc/php5/cli/php.ini | |
mkdir /opt/oracle | |
cd /opt/oracle | |
wget https://www.dropbox.com/s/ng09xgejjx3hjof/instantclient-basic-linux.x64-11.2.0.3.0.zip | |
wget https://www.dropbox.com/s/hux5d4bhj8daimr/instantclient-sdk-linux.x64-11.2.0.4.0.zip | |
unzip \*.zip | |
cd instantclient_11_2 | |
ln -s libclntsh.so.11.1 libclntsh.so | |
ln -s libocci.so.11.1 libocci.so | |
pecl install oci8 | |
#At the prompt | |
# instantclient,/opt/oracle/instantclient_11_2 | |
#After | |
service php5-fpm reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment