WordPress hosted on AWS EC2

I have a client who has a WordPress site on AWS. I'm wondering if I update WordPress core and plugins do I need to create a new AMI based on the current instance, create a new launch configuration using the new instance for the auto-scaling group? Do I then delete the old instance? I've tried reading the AWS documentation but it's not clear to me. Any help appreciated!

Topic amazon Wordpress

Category Web


When upgrading WordPress core or updating WordPress themes and plugins from the WordPress dashboard, you do not have to make any changes to the EC2 instance.

However, before performing upgrades on the EC2 server, I would recommend you to take a full backup of your WordPress files and database, as you may start to run into issues when upgrading PHP for example.

To host a WordPress website on AWS, you can follow this guide on how to create a WordPress website on AWS EC2 on Ubuntu 18.04 using a LAMP stack (Linux, Apache, MySQL, PHP)


This type of question isn't accepted on WordPress's Stack Exchange. Please check the Accepted Topics. Below is some information for you.

If the client's WordPress site is running on an Amazon EC2 instance, then you don't need to do anything. WordPress Core, Plugin, and Themes can be updated from the WordPress Admin Dashboard without having to do anything with the instance.

But if the client's site was deployed using Amazon RDS and Elastic Beanstalk for high availability, then you will have to deploy WordPress on another instance of Elastic Beanstalk by first backing up your original WordPress site. The steps can be found at Deploying a High-Availability WordPress Website with an External Amazon RDS Database to Elastic Beanstalk

If you want to move to a new Instance of EC2 for some reason and set up WordPress on it, then I would recommend that you follow Digital Ocean's Guide for Installing WordPress on Ubuntu 18.04 after you have created the EC2 instance and SSH-ed into it. You can find the guide for various other linux versions on that page as well.

If you want it to be in such a way that everything is automatically set up for you, then you should Launch WordPress with OpenLiteSpeed on AWS. The marketplace has the script build and will launch everything for you. You just need to point your domain name to the IP you get for the instance, open the site, follow WordPress 1 minute setup (First User Setup. You don't have to add database information.), then export whatever you want. Updates to WordPress Core, Plugins, and Themes happen from the WordPress Admin Dashboard.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.