Skip to content

Instantly share code, notes, and snippets.

@Artemu
Forked from rufhausen/homestead_extras.sh
Created March 10, 2017 13:41
Show Gist options
  • Save Artemu/749ed78739d82adccb0856bb1db9b159 to your computer and use it in GitHub Desktop.
Save Artemu/749ed78739d82adccb0856bb1db9b159 to your computer and use it in GitHub Desktop.
My script for adding some "extras" (LDAP, Oracle, MSSQL, Oh-My-Zsh, etc.) to a Laravel Homestead Vagrant VM.
#!/bin/bash
apt-get update
#Additional Packages
apt-get install -y cifs-utils winbind smbclient bindfs gvfs gvfs-bin keyutils unzip php5-ldap php5-mssql zsh
wget --no-check-certificate http://install.ohmyz.sh -O - | sh
chsh vagrant -s /bin/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