E-commerce

How to install WordPress and WooCommerce on Amazon Web Services?

How to install WordPress and WooCommerce on Amazon Web Services?

October 31, 2026

Are you wondering how to install WordPress and WooCommerce on Amazon Web Services?

In just a few simple steps, you can launch your e-commerce store on a reliable and affordable EC2 server.

The process involves creating an instance, securing access, and then installing the LAMP stack and software.

So, how to install WordPress and WooCommerce on AWS? On the agenda:

  • Why choose AWS as a hosting provider?

  • How to create and configure an EC2 instance?

  • What are the best SSH security practices?

  • How to install the LAMP stack and WordPress?

  • How does Qstomy optimize post-installation management?

Let's go.

Summary

Why choose AWS to host WordPress and WooCommerce?

Amazon Web Services offers scalable infrastructure, pay-as-you-go billing, and a free tier for one year. This is perfect for stores starting with a limited budget. Additionally, AWS's global network ensures low latency for your customers, even those located abroad. Granular control over resources (CPU, RAM, storage) allows you to adjust your server according to traffic, avoiding unnecessary extra costs. Finally, the AWS dashboard centralizes server management, backups, and security, simplifying daily administration.

Convert over 2,000 customers on average per month with Qstomy.

The world’s 1st Shopify AI dedicated to customer conversion

Empowering 200+ e-commerce merchants

How to create and configure a new EC2 instance?

Connect to the AWS console, then click on the service EC2. In the dashboard, choose the blue button Launch Instance. Select the Ubuntu Server 22.04 LTS image, which provides a stable and secure Linux environment. Proceed to the instance type step and choose t2.micro, eligible for the free tier. Review the configuration options, then click on Review and Launch. Before launching, ensure that the security group allows HTTP traffic (port 80), HTTPS (port 443), and SSH (port 22). Finally, create a key pair (.pem format) that you will use to connect to the server.

Which instance configuration to prefer for a free start?

The t2.micro offers 1 vCPU and 1 GB of RAM, sufficient for a lightly loaded WordPress site with WooCommerce. This configuration respects the free tier limit: 750 hours per month, 30 GB of SSD storage, and 15 GB of outbound data transfer. If you expect higher traffic, switch to a t3.small (2 vCPU, 2 GB of RAM) while keeping costs reasonable. Remember to enable automatic EBS volume backups to protect your data in case of an incident.

How to secure SSH access to your EC2 server?

After downloading the key .pem, restrict its permissions with chmod 400 ma-cle.pem. Connect from a terminal (Mac/Linux) or via PuTTY (Windows) after converting the key with PuTTYgen. Use the command ssh -i ma-cle.pem ubuntu@public‑dns. Authentication is key-only, so disable password access in the file /etc/ssh/sshd_config. Finally, create a new dedicated user for WordPress, add them to the group www-data and limit its rights with sudo.

What tools do Windows users use to connect via SSH?

Windows users have two main options: the client PuTTY or the Windows Subsystem for Linux (WSL). PuTTY requires key conversion .pem en .ppk via PuTTYgen. WSL, installed from the Microsoft Store, gives you a native Linux terminal where you can run the same command directly ssh -i ma-cle.pem ubuntu@…. These solutions offer a secure connection, compatible with AWS security policies, and allow you to manage your server as if from macOS or Ubuntu.

How to install the LAMP stack on Ubuntu?

Once connected, update the packages with sudo apt update && sudo apt upgrade -y. Installez Apache : sudo apt install apache2 -y. Check that the service is running (systemctl status apache2). Installez MySQL : sudo apt install mysql-server -y and secure it with sudo mysql_secure_installation. Enfin, ajoutez PHP : sudo apt install php libapache2-mod-php php-mysql -y. Restart Apache (sudo systemctl restart apache2) and test by creating a file info.php contenant phpinfo(); in /var/www/html. You now have a LAMP stack ready to host WordPress.

How to download and configure WordPress on AWS?

Go to the directory /var/www/html and download the latest version of WordPress with wget https://wordpress.org/latest.tar.gz. Uncompress it (tar -xzvf latest.tar.gz) then move the content to the root directory (sudo rsync -avP wordpress/ /var/www/html/). Create a file wp-config.php from the template wp-config-sample.php and fill in your MySQL database connection details (database name, user, password). Modify permissions: sudo chown -R www-data:www-data /var/www/html and sudo chmod -R 755 /var/www/html. Access your domain or public IP address to complete the installation via the WordPress setup wizard.

How to install and activate the WooCommerce plugin?

Once WordPress is installed, log in to the admin (/wp‑admin) with your credentials. In the menu Extensions, click on Ajouter puis recherchez WooCommerce. Install it and then activate it. The setup wizard will guide you to set the currency, shipping zones, and payment options. For payment gateways, consult our guide How to create a payment gateway for an e-commerce site?. Finish the setup and your store is ready to receive orders.

What basic settings to secure after installation?

Start by limiting login attempts with a plugin like Limit Login Attempts Reloaded. Enable automatic backups via Which platform to choose to create an e‑commerce site? or an EBS snapshot service. Force the HTTPS protocol by installing a free SSL certificate with Let’s Encrypt (sudo apt install certbot python3-certbot-apache). Finally, disable file editing from the dashboard (add define(’DISALLOW_FILE_EDIT’, true); au wp-config.php) and monitor Apache access logs.

How to optimize performance and costs on AWS?

Enable the service Amazon CloudFront to stream static files via a CDN, thereby reducing latency. Configure Elastic Load Balancing if your traffic increases, to distribute the load across multiple instances. Use Amazon RDS (MySQL) for a managed and more resilient database. Monitor your consumption with How to optimize an e-commerce site for Google? and disable unused services to avoid surprise billing. Finally, adjust your EC2 instance size based on actual traffic using AWS's autoscaling tool.

How does Qstomy assist in managing your WooCommerce store on AWS?

Qstomy, the AI assistant dedicated to Shopify merchants, also integrates with WooCommerce stores hosted on AWS. Thanks to its upsell, cross-sell, and package tracking modules, it allows for increasing the average order value without touching the code. Qstomy analyzes purchasing behavior, recommends complementary products, and sends automated reminder emails. It centralizes customer returns and customer service, offering a unified dashboard to track performance, deliveries, and reviews. Thus, even on an AWS server, you benefit from an optimized customer experience and improved conversion rates.

What checklist before putting your site into production?

In short

  • Serveur : EC2 instance launched, security group configured, EBS backup enabled.

  • Security : SSH key secured, HTTPS connection via Let's Encrypt, file editing disabled.

  • WordPress : LAMP installed, WordPress configured, essential extensions (WooCommerce, SEO, security).

  • Performance : CloudFront CDN, database optimization, PHP/Apache caching enabled.

  • Qstomy : upsell modules activated, integrated package tracking, tracking dashboard in place.

FAQ

  • Is the AWS free tier sufficient? Yes, it covers 750 hours of monthly usage and 30 GB of storage, ideal for a launch.

  • Can I migrate to a more powerful instance? Yes, use EBS snapshots and redeploy them on a new instance.

  • Does Qstomy work with security plugins? It integrates without conflict, relying on WooCommerce APIs.

To go further: Which e-commerce platform to choose for a small business? - Qstomy, Which free website builder should you choose for e-commerce? - Qstomy, Can you use Wix for an e-commerce site? - Qstomy, Does Google offer an e-commerce platform? Merchant Center and real-world reality - Qstomy.

Enzo

October 31, 2026

Convert over 2,000 customers on average per month with Qstomy.

The world’s 1st Shopify AI dedicated to customer conversion

Empowering 200+ e-commerce merchants

Subscribe to the newsletter and get a personalized e-book!

No-code solution, no technical knowledge required. AI trained on your e-shop and non-intrusive.

*Unsubscribe at any time. We do not send spam.

Subscribe to the newsletter and get a personalized e-book!

No-code solution, no technical knowledge required. AI trained on your e-shop and non-intrusive.

*Unsubscribe at any time. We do not send spam.