Last active
December 19, 2015 13:49
-
-
Save jonathanmarvens/5964734 to your computer and use it in GitHub Desktop.
Only use this for development VMs! I've warned you!!!
This file contains hidden or 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
sudo add-apt-repository -y ppa:ondrej/php5 | |
sudo add-apt-repository -y ppa:ondrej/mysql | |
sudo aptitude -y update | |
sudo aptitude -y install apache2-mpm-prefork | |
sudo aptitude -y install \ | |
libapache2-mod-php5 \ | |
php-apc \ | |
php-pear \ | |
php5-cli \ | |
php5-common \ | |
php5-curl \ | |
php5-mcrypt \ | |
php5-memcached \ | |
php5-mysqlnd \ | |
php5-tidy \ | |
php5-xdebug \ | |
php5-xmlrpc \ | |
echo "mysql-server-5.5 mysql-server/root_password password word" | debconf-set-selections | |
echo "mysql-server-5.5 mysql-server/root_password_again password word" | debconf-set-selections | |
sudo aptitude -y install mysql-server mysql-client | |
mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '' WITH GRANT OPTION; FLUSH PRIVILEGES;" --password="word" --user="root" | |
sudo aptitude -y install git | |
sudo aptitude -y safe-upgrade | |
curl -o /tmp/composer-installer.php http://getcomposer.org/installer | |
cd /tmp | |
php composer-installer.php | |
cd - | |
sudo mv -f /tmp/composer.phar /usr/local/bin/composer | |
sudo chmod 0755 /usr/local/bin/composer | |
sudo rm -fr /var/www | |
sudo mkdir -p /srv/www/public | |
sudo ln -s /srv/www/public /var/www | |
sudo rm -fr /srv/www | |
sudo git clone "http://github.com/laravel/laravel" /srv/www | |
# Run the following own your own (really ghetto son). | |
# cd /srv/www | |
# sudo composer --profile -vvv install --dev | |
# cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment