Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
karan6190 authored Jun 20, 2018
1 parent 869c86a commit 5b1f9c3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# WordpressAutoScalable-EFS
This tutorial will walk you through how to setup WordPress High Availability and scable Infra

First of all lets take ebextension folder. Their are bunch of scripts:
**- dev.config**- This script contains cloud formation stack and creates the Elastic Beanstalk
First of all lets take **ebextensions folder**. Their are bunch of scripts:

**- efs-create.config** - This script helps in the creation of Elastic File System, just you need to provide the Vpc ID and Subnets where you want to create your EFS.
**01-dev.config**- This script contains cloud formation stack and creates the Elastic Beanstalk

**02-efs-create.config** - This script helps in the creation of Elastic File System, just you need to provide the Vpc ID and Subnets where you want to create your EFS.

> _Make sure your EC2 instance and EFS are in same VPC_
**- efs-mount.config** - This script helps in creating the mount directory at your created # Elastic FileSystem
**03-efs-mount.config** - This script helps in creating the mount directory at your created # Elastic FileSystem

> _Make sure your DNS Hostname is enabled for gettinh your EFS FileSystem ID
> _How to check DNS Hostname enabled--> go to your VPC section in which you are designing your Wordpress--> slect your desired VPC --> under the summary Tab just check that both DNS resolution and DNS hostname are set to "yes", if not then go to action and you will find the edit options_
**- copywp.config**- This script helps to check if Symlink and wp is already installed if not copy it to EFS mount directory
**04-copywp.config**- This script helps to check if Symlink and wp is already installed if not copy it to EFS mount directory

**- webmininstall.config**- This script installs webmin for those that like a gui to mange instances.
**05-webmininstall.config**- This script installs webmin for those that like a gui to mange instances.

**- cronforefs.config**- This script creates a cron job to run the EFS mount script every 5 minutes to check to see if EFS is mounted, if WordPress is installed in your EFS share, if not it copies it after 5 minutes and then creates a symlink from the /var/app/current Webroot to the new EFS share web root. It will also check if your symlink is good
**06-cronforefs.config**- This script creates a cron job to run the EFS mount script every 5 minutes to check to see if EFS is mounted, if WordPress is installed in your EFS share, if not it copies it after 5 minutes and then creates a symlink from the /var/app/current Webroot to the new EFS share web root. It will also check if your symlink is good

> _I have included sample wp.config file also with RDS and Keys values to set them as environment variables, later on modification will be easy, we don't need to ssh every time to changes those values_.
Expand Down

0 comments on commit 5b1f9c3

Please sign in to comment.