Last active
August 29, 2015 14:25
-
-
Save alberto1el/15524385361bc0465632 to your computer and use it in GitHub Desktop.
Laravel 5.1 on EC2 July 2015
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
| Boot up an ubuntu instance ( I used ubuntu-trusty-14.04-amd64-server-20150325 (ami-df6a8b9b) ) | |
| ———- Installing Apache ———- | |
| $ sudo apt-get install apache2 | |
| ———- Installing Latest PHP ———- | |
| $ sudo add-apt-repository ppa:ondrej/php5 | |
| $ sudo apt-get update | |
| $ sudo apt-get install php5 libapache2-mod-php5 | |
| ———- Installing PHP Mcrypt ext. ———- | |
| $ sudo apt-get install php5-mcrypt | |
| ———- Installing MYSQL ———- | |
| $sudo apt-get install mysql-server | |
| ———- Installing GIT ———- | |
| $ sudo apt-get install git-core | |
| ———- Installing COMPOSER ———- | |
| curl -sS https://getcomposer.org/installer | php | |
| sudo mv composer.phar /usr/local/bin/composer | |
| configure local git client for remote ssh credentials | |
| Host webserver | |
| Hostname 54.213.166.232 | |
| User ubuntu | |
| IdentityFile ~/.ssh/ubuntutest.pem | |
| remote | |
| sudo mkdir -p /var/git/awsproject.git | |
| cd /var/git/awsproject.git | |
| sudo git init --bare | |
| edit config and hook/post-receive | |
| sources: | |
| http://www.tonylea.com/2013/installing-laravel-on-amazon-ec2/ | |
| http://devoncmather.com/setting-aws-ec2-instance-lamp-git/ | |
| https://getcomposer.org/doc/00-intro.md | |
| ##PERMISSIONS: | |
| sudo adduser <username> www-data | |
| sudo chown -R www-data:www-data /var/www | |
| sudo chmod -R g+rwX /var/www | |
| ## DE REPENT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment