Skip to content

Instantly share code, notes, and snippets.

@fz-chen
Last active March 12, 2017 06:09
Show Gist options
  • Save fz-chen/381bec67725084bcc8240d0fa4b1c343 to your computer and use it in GitHub Desktop.
Save fz-chen/381bec67725084bcc8240d0fa4b1c343 to your computer and use it in GitHub Desktop.
aws-wordpress setup

####AWS-setup

  1. go to aws ec2 to create a new instance (Amazon Linux)
  2. Create a new Key
  3. store key into ~/.ssh folder
  4. Change the permission of the key.pem chmod 400 key.pem
  5. Login using ssh ssh -i "key.pem" user@0.0.0.0

####LAMP Stack 6. sudo yum update -y 7. sudo yum install -y httpd24 php70 mysql56-server php70-mysqlnd 8. sudo service httpd start 9. sudo chkconfig httpd on 10. go to EC2 console -> security groups -> launch-wizard-1 -> add inbound rule (http) 11. sudo service httpd restart

Install Git

  1. sudo yum install git

####Wordpress repo setup

  1. Upon installing mamp and downloading wordpress, move the wordpress folder into MAMP/htdoc
  2. generate a theme file at underscore.me, select sassify in the advance option, and download theme file into MAMP/htdoc/wordpress/wp-content/themes/
  3. create a corresponding database on http://localhost:8888/phpmyadmin
  4. visit http://localhost:8888 and follow installation wizard. MAMP's MYSQL database has the default username and password root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment