How to Set Up AWS Lightsail Magento in 6 Steps (2026 Guide)
[Updated: March 20, 2026] AWS Lightsail gives you a fast path to launch a Magento store on cloud infrastructure. The Bitnami AMI ships Magento 2.4.8 with PHP 8.4 on Debian 12, ready to run in minutes.
This guide covers the full setup, Lightsail pricing for Magento, and when to upgrade.
Key Takeaways
- Magento 2.4.8 runs on Lightsail via the Bitnami AMI with PHP 8.4 and Debian 12 pre-configured.
- The $12/month plan (2GB RAM) is the minimum. The $24/month plan (4GB RAM) handles production stores.
- Static IP, DNS, and HTTPS setup take under 30 minutes with built-in Lightsail tools.
- Lightsail lacks auto-scaling, Varnish clustering, and Magento-specific optimization. Stores processing 50,000+ monthly visits should evaluate managed hosting.
What is AWS Lightsail?
AWS Lightsail = A simplified VPS service from Amazon Web Services. You get predictable pricing with bundled compute, storage, and transfer instead of complex AWS billing.
Perfect for: Developers testing Magento, small stores under 50K monthly visits, staging environments, proof-of-concept projects.
Not ideal for: High-traffic production stores, stores that need auto-scaling, businesses without technical staff for server management.
Lightsail bundles vCPUs, RAM, SSD storage, and data transfer into fixed monthly plans. For Magento, it provides a one-click Bitnami AMI that ships Magento 2.4.8 with PHP 8.4, MySQL, and Elasticsearch pre-configured.
Beyond basic VPS instances, Lightsail offers container services, CDN integrations, managed databases, and load balancers. These add-ons extend what a single instance can handle before you need to migrate to full AWS services.
Lightsail Pricing for Magento Stores
Picking the right plan matters. Magento needs at least 2GB RAM to run. The Bitnami image will not install on plans below that threshold.
| Plan | RAM | vCPUs | SSD | Transfer | Monthly Cost | Magento Use Case |
|---|---|---|---|---|---|---|
| Minimum | 2 GB | 2 | 60 GB | 3 TB | $12 | Development, staging |
| Recommended | 4 GB | 2 | 80 GB | 4 TB | $24 | Small production stores |
| Moderate Traffic | 8 GB | 2 | 160 GB | 5 TB | $44 | Stores with extensions, moderate traffic |
| High Traffic | 16 GB | 4 | 320 GB | 6 TB | $84 | Larger catalogs, multiple store views |
Additional costs to budget for:
- Load balancer: $18/month
- Managed database: from $15/month (1GB RAM, 40GB SSD)
- Block storage: $0.10/GB/month
- Static IP: free while attached to a running instance
New AWS accounts get three months free on the $5, $7, and $12 plans. The $12 plan is the cheapest option that runs Magento.
Bitnami AMI vs. Custom LAMP Stack
You have two paths to run Magento on Lightsail. The Bitnami AMI gets you running fast. A custom LAMP stack gives you full control.
| Feature | Bitnami AMI | Custom LAMP Stack |
|---|---|---|
| Setup Time | Under 10 minutes. Magento 2.4.8, PHP 8.4, MySQL pre-installed. | 2-4 hours. Manual installation of Linux, Apache/Nginx, MySQL, PHP. |
| Current Stack | Debian 12, PHP 8.4.18, Magento 2.4.8-0-r17 | You choose every component version |
| Customization | Limited. Bitnami wraps configs in its own structure. | Full control over every config file and service. |
| Maintenance | Bitnami handles stack updates as bundled releases. | You update each component on your own schedule. |
| Performance Tuning | Basic out-of-box optimization. Limited ability to tune individual services. | Full access to PHP-FPM pools, MySQL configs, OPcache settings. |
| Scalability | Vertical only. Upgrade to a bigger plan. No auto-scaling. | Can add instances behind a load balancer. Still no true auto-scaling. |
| Learning Curve | Low. SSH in and Magento is running. | High. Requires Linux, database, and PHP administration skills. |
Recommendation: Start with Bitnami for development and small stores. Switch to a custom stack or managed Magento hosting when you need granular performance tuning.
6 Steps to Set Up Magento on AWS Lightsail
Step 1: Launch a Magento Instance
- Open the AWS Lightsail console and click Create Instance.
- Choose your AWS Region closest to your target audience.
- Under Apps + OS, select Magento (packaged by Bitnami). This deploys Magento 2.4.8 with PHP 8.4 on Debian 12.
- Select the $24/month plan (4GB RAM) for production use, or $12/month for development.
- Name your instance and click Create Instance.
The instance boots in about two minutes.
Step 2: Assign a Static IP
Your Lightsail instance gets a new public IP each time it restarts. A static IP prevents this.
- Go to the Networking tab on your instance page.
- Click Create static IP and attach it to your instance.
- Run the domain configuration command via SSH:
sudo /opt/bitnami/configure_app_domain --domain <YourStaticIP>
Static IPs are free while attached to a running instance. Detached static IPs cost $0.005/hour.
Step 3: Configure Your Domain
- In the Lightsail console, go to Networking and click Create DNS Zone.
- Enter your domain name.
- Add an A record pointing to your static IP.
- Update your domain registrar's nameservers to the Lightsail DNS servers shown.
- Apply the domain to Magento:
sudo /opt/bitnami/configure_app_domain --domain yourdomain.com
DNS propagation takes 15 minutes to 48 hours depending on your registrar.
Step 4: Enable HTTPS
- SSH into your instance.
- Run the Bitnami certificate tool:
sudo /opt/bitnami/bncert-tool
- Follow the prompts to generate a free Let's Encrypt SSL certificate.
- The tool configures automatic HTTP-to-HTTPS redirection.
- Certificates auto-renew every 80 days.
After HTTPS is active, update the Magento base URLs in Stores > Configuration > Web to use https://.
Step 5: Access and Configure Magento Admin
- Retrieve your admin password:
cat $HOME/bitnami_application_password
- Log in at
https://yourdomain.com/adminwith username user and the retrieved password. - Configure these settings first:
- SMTP for transactional emails (Stores > Configuration > Advanced > System > SMTP)
- Cache Management (System > Cache Management > Enable all caches)
- Indexers (System > Index Management > Set to "Update on Schedule")
- Two-Factor Authentication for admin accounts
Step 6: Create Backups and Set Up Maintenance
- Create a manual snapshot: Instance page > Snapshots > Create snapshot.
- Enable automatic snapshots for daily backups (Lightsail keeps 7 rolling snapshots).
- Schedule regular updates for Magento security patches. Check the Magento system requirements before updating to confirm PHP and database compatibility.
Magento 2.4.8 System Requirements on Lightsail
The Bitnami AMI handles these requirements out of the box, but understanding them matters for custom stacks and upgrades.
| Component | Required Version | Notes |
|---|---|---|
| PHP | 8.3 or 8.4 | Bitnami ships 8.4.18 |
| MySQL | 8.4 | Or MariaDB 11.4 |
| OpenSearch | 2.x | Replaces Elasticsearch for catalog search |
| Elasticsearch | 8.17 | Alternative to OpenSearch |
| Redis | 7.2 | For session and cache storage |
| Composer | 2.9.3+ | Dependency management |
| Nginx | 1.26 | Or Apache 2.4 |
Important: Magento does not support IPv6-only instances on Lightsail. Choose a plan with a public IPv4 address.
Troubleshooting Common Lightsail Magento Issues
| Issue | Cause | Fix |
|---|---|---|
| Slow page loads | Undersized instance, caching disabled | Upgrade plan to 4GB+ RAM. Enable Redis for cache and session storage. |
| Cannot access admin panel | Wrong credentials, 2FA lockout | Run cat $HOME/bitnami_application_password for default password. Reset 2FA via CLI if locked out. |
| HTTPS certificate fails | DNS not propagated, port 80/443 blocked | Wait for DNS propagation. Check Lightsail firewall allows HTTP and HTTPS. |
| Database connection errors | MySQL service stopped, wrong credentials | Restart MySQL: sudo /opt/bitnami/ctlscript.sh restart mysql. Check app/etc/env.php for credentials. |
| High CPU / instance unresponsive | Cron jobs stacking, indexers running | Set indexers to "Update on Schedule". Stagger cron jobs. Consider upgrading the plan. |
| Static IP lost after restart | Static IP not attached | Attach a static IP through the Networking tab. Reconfigure domain if needed. |
| Email not sending | SMTP not configured, port 25 blocked | Configure SMTP with a service like Amazon SES. Lightsail blocks port 25 by default. |
| Outdated Bitnami stack | Bitnami bundles updates as full releases | Create a snapshot, then launch a new instance with the latest Bitnami AMI. Migrate data. |
Performance Optimization on Lightsail
Enable Full Page Cache
Magento ships with built-in full page cache. On Lightsail, enable it through Stores > Configuration > Advanced > System > Full Page Cache. Select "Built-in Cache" since Varnish requires separate configuration that Bitnami does not include.
Configure Redis
Redis improves session handling and cache performance. The Bitnami AMI includes Redis. Configure it in app/etc/env.php:
- Set
cachebackend toCm_Cache_Backend_Redis - Set
sessionsave handler toredis
Use Lightsail CDN
Attach a Lightsail CDN distribution to serve static assets (CSS, JS, images) from edge locations. This reduces load on your instance and cuts page load times for visitors far from your AWS Region. The first 50GB/month is free for 12 months.
Database Optimization
- Set indexers to Update on Schedule (not "Update on Save")
- Run
bin/magento indexer:reindexduring low-traffic hours - Enable MySQL query cache if your catalog exceeds 10,000 SKUs
When to Upgrade Beyond Lightsail
Lightsail works well for getting started. It does not work well for scaling. Here is when to move on.
| Signal | What is Happening | What to Do |
|---|---|---|
| Consistent high CPU | Instance maxed out during normal traffic | Vertical scaling (bigger plan) helps short-term. Consider cluster hosting for sustained growth. |
| Traffic spikes cause downtime | No auto-scaling on Lightsail | Move to AWS auto-scaling infrastructure or managed hosting with elastic resources. |
| Page loads exceed 3 seconds | No Varnish, no Redis clustering, no CDN tuning | Managed hosting optimizes the full Magento stack. |
| Security patch delays | You manage every update yourself | Managed hosting applies patches within hours of release. |
| 50,000+ monthly visits | Single instance cannot serve this load with acceptable performance | Time for load-balanced, multi-server architecture. |
The core limitation: Lightsail gives you a single server with fixed resources. Magento production stores need Varnish for full page caching, Redis clustering for session persistence, and auto-scaling for traffic spikes. These require infrastructure beyond what Lightsail provides.
Pros and Cons of AWS Lightsail for Magento
| Pros | Cons |
|---|---|
| Predictable monthly pricing with no surprise bills | No auto-scaling for traffic spikes |
| One-click Magento 2.4.8 deployment via Bitnami | Limited performance tuning within Bitnami structure |
| Free static IP, DNS management, and 3-month trial | You manage all security patches and updates |
| Built-in snapshots for backups | No Varnish or Redis clustering out of the box |
| Easy upgrade path to larger instance plans | Single-server architecture limits throughput |
FAQ
What Magento version does AWS Lightsail use?
The Bitnami AMI on AWS Lightsail ships Magento 2.4.8 with PHP 8.4.18 on Debian 12. This is the latest stable Magento Open Source release.
How much does it cost to run Magento on Lightsail?
The minimum plan that runs Magento costs $12/month (2GB RAM). For production stores, budget $24/month (4GB RAM) plus $18/month if you need a load balancer.
Can I use Magento on a $5/month Lightsail plan?
No. Magento requires at least 2GB RAM. The $5/month plan has 512MB and cannot run the Magento stack.
How do I get my Magento admin password on Lightsail?
SSH into your instance and run cat $HOME/bitnami_application_password. The default admin username is user.
Does Lightsail support auto-scaling for Magento?
No. Lightsail does not offer auto-scaling. You can add instances behind a load balancer for manual horizontal scaling, but automatic traffic-based scaling requires migrating to EC2 with Auto Scaling Groups.
How do I enable HTTPS on Lightsail Magento?
Run sudo /opt/bitnami/bncert-tool via SSH. This generates a free Let's Encrypt certificate and configures automatic renewal every 80 days.
Can I run Adobe Commerce (Enterprise) on Lightsail?
Adobe Commerce can run on Lightsail, but the limited resources make it impractical for production. Adobe Commerce stores with B2B features, staging environments, and heavy extension use need 16GB+ RAM and multi-server setups.
When should I migrate away from Lightsail?
Migrate when your store exceeds 50,000 monthly visits, experiences regular CPU throttling, or needs features like Varnish full page caching, Redis clustering, or auto-scaling. These are signs your store needs dedicated managed hosting infrastructure.
Summary
AWS Lightsail provides an affordable entry point for running Magento 2.4.8 on cloud infrastructure. The Bitnami AMI eliminates server setup complexity, and plans start at $12/month for development or $24/month for small production stores.
For stores that outgrow Lightsail's single-server architecture, managed Magento hosting delivers the auto-scaling, Varnish caching, Redis clustering, and expert support that production stores need.