How To Create & Configure ElastiCache To Speed Up WordPress In Amazon AWS


Step 1. Open  Amazon Web Services main page & click on ElastiCache in Database on it.

ElastiCache Amazon web services main page

Step 2. At the center of the page there is a big blue button Get Started on it.

ElastiCache get started pic

Step 3. Now Select DB Engine.We have two options MemCached or Redis. As of now select MemCached & click on Next.

ElastiCache select engine pic

Step 4. In next step Specify Cluster Details as per your requirements. After that Click on Next.

ElastiCache Cluster Details pic

Step 5. In next step Configure Advanced Setting,accept all the defaults, and then click on Next.

ElastiCache Configure Advanced settings pic

Step 6. Review your settings which you defined previously & click on  Launch Cache Cluster.

ElastiCache Review setting page

Step 7. Click on Close to view your Cluster.

ElastiCache success pic

Step 8. Now please wait because it will takes some time to changed status from creating to available state.

ElastiCache main page pic
Note: In Available state it will be look like below Image:

ElastiCache main page 1 pic
Note: Your ElastiCache Cluster is successfully created.

Step 9. Now Log into your terminal & Install WordPress by using below Link.

Step 10. Install Php ElastiCache Cluster client in your EC2 terminal.

# apt-get install php5-memcache -y

Step 11. Now LogIn in your wordPress panel & click on Add New in Plugins which is available in service column at the left most side of the page.

ElastiCache Plugin pic

Step 12. Now there is a search box available at the top of the page.Search Total Cache Plugin in that Search Box and install W3 Total Cache Plugin.

ElastiCache search total cache pic

Step 13. Click on Activate Plugin.

ElastiCache plugin install pic

Step 14. Now your plugin is successfully activated. Click on general settings in performance which is available in service column at the left most side of the page.

ElastiCache gerenal setting pic

Step 15. Now click on Page Cache option  which is available at the middle of the page.

ElastiCache pagecache0 pic

Step 16. Now change page cache settings as same as shown in below Image & then click on Save All Settings to save.

ElastiCache pagecache pic

Step 17. Now click on Page Cache which is available in service column at the left most side of the page.

ElastiCache pagecache1 pic

Step 18. Click on advanced which is available at center of the page now this page will open.

ElastiCache advance 0 setting pic

Step 19. Copy your ElastiCache Endpoint from your Elasctic cache Clusters & replace it in Memcached Hostname:Port box.

ElastiCache Configure Advanced 1 settings pic

Step 20. Now click on test to check connectivity.If output will look like this.It means your connectivity is ok & now Click on Save All Settings button which is present at the end of the page.

ElastiCache Advanced settings test pic