Step 1. Open Amazon Web Services main page & click on ElastiCache in Database Column.click on it.
Step 2. At the center of the page there is a big blue button Get Started Now.click on it.
Step 3. Now Select DB Engine.We have two options MemCached or Redis. As of now select MemCached & click on Next.
Step 4. In next step Specify Cluster Details as per your requirements. After that Click on Next.
Step 5. In next step Configure Advanced Setting,accept all the defaults, and then click on Next.
Step 6. Review your settings which you defined previously & click on Launch Cache Cluster.
Step 7. Click on Close to view your Cluster.
Step 8. Now please wait because it will takes some time to changed status from creating to available state.
Note: In Available state it will be look like below Image:
Note: Your ElastiCache Cluster is successfully created.
Step 9. Now Log into your terminal & Install WordPress by using below Link.
https://www.cloudjojo.com/how-to-install-wordpress-in-amazon-ec2-instance
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.
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.
Step 13. Click on Activate Plugin.
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.
Step 15. Now click on Page Cache option which is available at the middle of the page.
Step 16. Now change page cache settings as same as shown in below Image & then click on Save All Settings to save.
Step 17. Now click on Page Cache which is available in service column at the left most side of the page.
Step 18. Click on advanced which is available at center of the page now this page will open.
Step 19. Copy your ElastiCache Endpoint from your Elasctic cache Clusters & replace it in Memcached Hostname:Port box.
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.