Skip to content

Instantly share code, notes, and snippets.

@ismailakbudak
Last active August 29, 2015 14:19
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 ismailakbudak/c5dc934fa0cc9541d907 to your computer and use it in GitHub Desktop.
Save ismailakbudak/c5dc934fa0cc9541d907 to your computer and use it in GitHub Desktop.
Laravel tools installation
#!/bin/bash
## Fancy echo
fancy_echo() {
printf "\n%b\n" "$1"
}
## Install php5
fancy_echo "Installing php5"
# For apache
sudo apt-get install php5 libapache2
sudo apt-get install php5-cli php5-mcrypt php5-pgsql php5-mysql php5-curl
sudo php5enmod mcrypt
## Install Apache 2
#fancy_echo "Installing apache2"
#sudo apt-get install apache2
## Install mysql
#fancy_echo "Installing mysql"
#sudo apt-get install mysql-server
## Install postgresql
fancy_echo "Installing postgresql"
sudo apt-get install postgresql postgresql-contrib
#Install phpMyadmin
#sudo apt-get install phpmyadmin apache2-utils
#echo 'Include /etc/phpmyadmin/apache.conf' >> /etc/apache2/apache2.conf
#sudo service apache2 restart
cd $HOME
sudo apt-get install curl
curl -sS https://getcomposer.org/installer | php
sudo mv $HOME/composer.phar /usr/local/bin/composer
@ismailakbudak
Copy link
Author

Run on terminal:
bash <(curl -s https://gist.githubusercontent.com/ismailakbudak/c5dc934fa0cc9541d907/raw/02d3eb911e7c4dafa8b8c6f566b8255b983e4a81/ubuntu-laravel.sh)

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