Skip to content

Instantly share code, notes, and snippets.

@judsonbsilva
Last active August 31, 2016 02:58
Show Gist options
  • Save judsonbsilva/d7e4be184bb9a7114df92c839e7892ee to your computer and use it in GitHub Desktop.
Save judsonbsilva/d7e4be184bb9a7114df92c839e7892ee to your computer and use it in GitHub Desktop.
# Install Mysql
sudo apt-get install mysql-server
sudo mysql_secure_installation
sudo mysql_install_db
# Add PHP lastest versions repository
sudo add-apt-repository ppa:ondrej/php
# Update packages ppa
sudo apt-get update
# Install PHP and dependences
sudo apt-get install curl php7.0 php7.0-zip php7.0-cli libapache2-mod-php7.0 php7.0-mbstring php-xml php7.0-mysql
# Install Composer
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
# Add Composer bin files to path
echo "export PATH=\"$HOME/.composer/vendor/bin:$PATH\"" >> ~/.bashrc
echo "export PATH=\"$HOME/.composer/vendor/bin:$PATH\"" >> ~/.zshrc
exit
# Install Lavarel using Composer
composer global require "laravel/installer=~1.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment