Skip to content

Instantly share code, notes, and snippets.

@rufhausen
Last active August 11, 2021 03:33
Show Gist options
  • Save rufhausen/b0b053ec39e9e8d90f86 to your computer and use it in GitHub Desktop.
Save rufhausen/b0b053ec39e9e8d90f86 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
@gcanivet
Copy link

Did you use sudo ./homestead_extras.sh?

@koraykupe
Copy link

Any update for latest version of Homestead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment