Skip to content

Instantly share code, notes, and snippets.

@jorenvh
Created October 30, 2015 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorenvh/378c16dc5e907ba1fb23 to your computer and use it in GitHub Desktop.
Save jorenvh/378c16dc5e907ba1fb23 to your computer and use it in GitHub Desktop.
Laravel homestead extras
#!/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
@jorenvh
Copy link
Author

jorenvh commented Nov 1, 2015

http://thereluctantdeveloper.com/2015/01/using-the-laravel-homestead-serve-command-with-oh-my-zsh

to use the serve command in zsh add this to .zshrc file at the bottom.

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