How to Install aaPanel on DigitalOcean (Droplet to WordPress, Step by Step)
To install aaPanel on DigitalOcean, create a 1 GB Ubuntu 22.04 Droplet, add swap, run aaPanel’s install script over SSH, then open the panel port in a DigitalOcean Cloud Firewall. On my $6 Droplet in Singapore the installer finished in 3 minutes. The whole aaPanel DigitalOcean setup, WordPress and free SSL included, fits in an evening, and below are the exact steps plus the four problems I hit.
Some links on WebPickr are affiliate links (disclosure). Tested by Dolon from Dhaka, Bangladesh, on 7 and 8 November 2026, on a DigitalOcean Basic Droplet (1 vCPU, 1 GB) in Singapore. The speed numbers are in my DigitalOcean review.
Table of Contents
What you need
- A DigitalOcean account with a card or PayPal added (Droplets cannot be created without one).
- A domain whose DNS you can edit. I use Cloudflare, with the record set to “DNS only”.
- An SSH key on your computer. Windows 10 and 11 have
sshbuilt in. - An hour or so. The panel installer took 3 minutes and the LNMP quick install a few more; I did not time the WordPress and SSL part.
Manual install or the 1-Click app?
DigitalOcean’s Marketplace has three shortcuts: an aaPanel 1-Click image (aaPanel 8.0.7 on Ubuntu 24.04), an “aaPanel LNMP” image with Nginx, MySQL and PHP already installed (Ubuntu 22.04), and a WordPress 1-Click Droplet with no panel at all. After deploying the aaPanel image you log in over SSH and run sudo bt default to see the panel address and password, as DigitalOcean’s aaPanel listing explains.

I installed by hand on plain Ubuntu 22.04. aaPanel recommends 22.04, you get the current installer instead of whatever the image was built with, and the same steps work on Hetzner, Vultr or any other VPS. If you only want speed, the 1-Click image is fine: add swap (Step 3), run sudo bt default to get the login, then continue at Step 5.
Step 1: Create the Droplet (change two defaults)
In the DigitalOcean control panel click Create → Droplets. Pick the region closest to your visitors. For Bangladesh that is Singapore: I measured 48 ms from Dhaka, against 72 ms to Bangalore.
Now fix the two defaults. When I opened the page, Ubuntu 24.04 was marked “Recommended” and the $24 plan (2 vCPU, 4 GB) was preselected.

- Image: Ubuntu, then choose 22.04 (LTS) x64 from the version menu.
- Size: Basic (Shared CPU), then Regular, then the $6/mo plan: 1 vCPU, 1 GB RAM, 25 GB SSD. Do not take the $4 plan; 512 MB leaves almost nothing for MySQL and PHP once aaPanel is running. If your site will serve many uncached pages, Premium AMD is worth the extra dollar.
- Authentication: SSH Key. Add your public key if it is not there yet.
- Backups: leave off for a test; weekly backups add 20% ($1.20 a month).

Under the advanced options, public IPv4 and “Improved metrics monitoring” are ticked by default. Keep IPv4. Monitoring is free and installs a small agent; I kept it. Click Create Droplet. Mine was running after 55 seconds. Copy its IPv4 address now and create the DNS record (Step 7), so DNS has time to update while you install.

Step 2: Log in over SSH
Copy the Droplet’s IPv4 address from its page and connect from Windows Terminal or PowerShell. Type yes the first time.
ssh root@YOUR_DROPLET_IP
This only opens a remote session; it changes nothing on the server.

Step 3: Add 2 GB of swap, and keep it after a reboot
A 1 GB Droplet has no swap. Without it, the LNMP compile and benchmarks can run out of memory. This creates a 2 GB swap file and turns it on:
fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && free -m
Then make it permanent. I skipped this line on my test and lost the swap when I had to reboot (see Problems). It adds one line to /etc/fstab so swap turns on at every boot. Run it only once; running it twice adds a duplicate line:
echo '/swapfile none swap sw 0 0' >> /etc/fstab

Step 4: Run the aaPanel installer
This is the official command from aaPanel’s download page on 7 November 2026. It downloads the script and runs it as root. It updates packages, installs the panel and turns on aaPanel’s own firewall:
URL=https://www.aapanel.com/script/install_panel_en.sh && if [ -f /usr/bin/curl ];then curl -ksSO $URL ;else wget --no-check-certificate -O install_panel_en.sh $URL;fi;bash install_panel_en.sh
Answer y when it asks to install into /www. On my Droplet it took 3 minutes, against 1 minute on Hetzner’s faster CPU. At the end it prints the panel address with a random port (mine was 36547), a username and a password. Save them. If you lose them, bt default prints the address again.
The installer also lists ports to open (the panel port, 888, 80, 443, 20 and 21). You only need the panel port, 80 and 443. Port 888 is phpMyAdmin and 20/21 are FTP; keep them closed unless you use them.
Step 5: Open the panel port in a DigitalOcean Cloud Firewall
A Droplet with no Cloud Firewall accepts traffic on every port. aaPanel’s firewall helps, but a network firewall in front is safer. Go to Networking → Firewalls → Create Firewall and add these inbound rules:
| Type | Port | Why |
|---|---|---|
| SSH | 22 | Your terminal login (already there by default) |
| HTTP | 80 | Website and Let’s Encrypt checks |
| HTTPS | 443 | Website over SSL |
| ICMP | none | So ping works (optional) |
| Custom TCP | your panel port, e.g. 36547 | The aaPanel dashboard |
Under “Apply to Droplets” pick your Droplet and save. Your open SSH session stays connected because port 22 is allowed. For more safety, set the source of the panel port rule to your own IP instead of “All IPv4”.

If the panel address does not open in your browser, this rule is the first thing to check.
Step 6: Log in and install LNMP
Open the panel address. Your browser will warn about the self-signed certificate; continue anyway. After logging in, aaPanel offers a software stack. I chose LNMP (Nginx, MariaDB 10.11, PHP and phpMyAdmin) with the quick install. You do not need Pure-FTPd.

On a 1 GB Droplet this is the hard part. CPU and RAM both hit 100% and my panel stopped responding. Be patient, and read Problems below if it freezes.
Step 7: Point your domain to the Droplet
If you use Cloudflare or another DNS host, add an A record for your domain or subdomain pointing to the Droplet’s IPv4. In Cloudflare set it to DNS only (grey cloud) for now, so Let’s Encrypt can reach the server. Do this before Step 8; SSL fails if the name does not resolve yet.
Step 8: Add WordPress with free SSL
In aaPanel open WP Toolkit → Add site, enter the domain, choose the PHP version you installed, tick Apply for SSL, and leave aaPanel’s cache off if you plan to use a cache plugin. aaPanel creates the database, installs WordPress and requests the Let’s Encrypt certificate in one go.

Once SSL is active you can switch the Cloudflare record back to Proxied; set Cloudflare SSL/TLS to Full (strict) to avoid redirect loops.

Moving an existing site to the Droplet
To move an existing site, the free All-in-One WP Migration plugin is the simplest route: install it on the new WordPress, choose Import, and upload the .wpress file from the old site. It rewrites the URLs for the new domain on its own. Log in again with the old site’s username and password, then open Settings → Permalinks and click Save once.
If the import says the file is too large, raise upload_max_filesize and post_max_size in aaPanel under App Store → PHP → Setting → Configuration, then try again.
Check that it worked
Open the site over HTTPS and look for the padlock. Then check the server from SSH; this only reads memory and disk use:
free -m && df -h /
With WordPress running, my Droplet used 544 MB of RAM with 256 MB available, and 7 GB of the 25 GB disk.

Finally, install a page cache. On this Droplet, WP Super Cache cut the time to first byte from 1.66 s to 0.40 s. My guide on checking if WordPress cache is working shows how to confirm it.
Problems I ran into on DigitalOcean
The panel froze during the LNMP install
With CPU and RAM both at 100%, aaPanel stopped loading. I restarted the Droplet, and the panel came back. (In DigitalOcean, the Droplet’s Power tab or reboot over SSH both work.) If yours stays down after a reboot, run bt restart over SSH; it restarts only the panel.
MariaDB was stopped after the reboot
WordPress needs the database, and aaPanel showed MySQL (MariaDB 10.11.10) as stopped. Restarting it in aaPanel fixed it. If WordPress shows “Error establishing a database connection” after any reboot, check this first.
Swap was gone after the reboot
Because I had not added the swap file to /etc/fstab, the reboot left the Droplet with 0 MB of swap. It still worked, but it had no safety net. Step 3 now includes the fix.

Eight visitors at once took the uncached site down
Before I added a cache plugin, a KeyCDN test (eight cities at the same moment) pushed the load average past 9 and the site stopped answering. One slow vCPU cannot build eight uncached PHP pages at once. With WP Super Cache on, the same test passed with 71 ms from Singapore.

Secure your aaPanel DigitalOcean server
- Limit the panel port rule in the Cloud Firewall to your own IP address. If your home IP changes (common on broadband in South Asia), update the rule.
- Change the panel port with
bt 8if you prefer a port you choose, but update the Cloud Firewall rule to the new port first or you will lock yourself out. - Keep 888 (phpMyAdmin) and 20/21 (FTP) closed unless you need them.
- Turn on aaPanel’s security entrance and two-factor login in the panel settings.
- Back up: DigitalOcean weekly backups cost $1.20 a month on this plan (each kept 28 days), or use aaPanel’s scheduled backups to remote storage.
- Take a snapshot ($0.06 per GB per month) right after LNMP finishes, so a broken install can be rolled back instead of rebuilt.
What it costs
The $6 Droplet is $6.00 a month or $0.00893 an hour, with IPv4 and 1,000 GiB of traffic included. Billing is per second (minimum $0.01); my Billing page showed $0.07 of usage on 8 November, and it updates once a day. Powering a Droplet off does not stop billing; destroying it does.
What to do next
- Read my DigitalOcean review for the full benchmarks and whether the $6 plan is enough for you.
- Compare with the same setup on Hetzner: install aaPanel on Hetzner.
- Add Redis object cache in aaPanel: aaPanel Redis object cache.
- Cut server response time further: reduce TTFB in WordPress.
FAQ
Does DigitalOcean have an aaPanel 1-Click app?
Yes. The Marketplace has an aaPanel 1-Click image (aaPanel 8.0.7 on Ubuntu 24.04) and an aaPanel LNMP image on Ubuntu 22.04. After deploying, run sudo bt default over SSH to see the panel login.
Which Droplet size do I need for aaPanel?
The $6 Basic plan with 1 GB RAM works for one small site if you add swap and a page cache. Avoid the 512 MB plan. For busier or uncached sites, choose 2 GB or Premium AMD.
What port does aaPanel use on DigitalOcean?
The installer picks a random port and prints it at the end (mine was 36547). Open that port in your DigitalOcean Cloud Firewall, or the panel will not load.
Why can’t I open aaPanel after installing it on DigitalOcean?
Usually the panel port is not allowed in the Cloud Firewall. Add a Custom TCP rule for the port the installer showed. If the port is open, run bt default to confirm the address, or bt restart to restart the panel.
Should I use Ubuntu 22.04 or 24.04 for aaPanel?
aaPanel recommends Ubuntu 22.04, so I used it. 24.04 is supported, and the 1-Click image uses it.
How long does it take to install aaPanel on DigitalOcean?
The panel installed in 3 minutes on a $6 Droplet. The LNMP stack and WordPress added more; I did not time the WordPress and SSL steps, so give yourself an hour.
