Last active
August 29, 2015 14:19
-
-
Save ismailakbudak/c5dc934fa0cc9541d907 to your computer and use it in GitHub Desktop.
Laravel tools installation
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 | |
## 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run on terminal:
bash <(curl -s https://gist.githubusercontent.com/ismailakbudak/c5dc934fa0cc9541d907/raw/02d3eb911e7c4dafa8b8c6f566b8255b983e4a81/ubuntu-laravel.sh)