Created
October 30, 2015 19:29
-
-
Save jorenvh/378c16dc5e907ba1fb23 to your computer and use it in GitHub Desktop.
Laravel homestead extras
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
#!/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
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.