How to Install aaPanel on DigitalOcean (Droplet to WordPress, Step by Step)

Install aaPanel on DigitalOcean 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.

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 ssh built 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.

aaPanel 1-Click App on the DigitalOcean Marketplace, version 8.0.7 on Ubuntu 24.04
The aaPanel 1-Click App: quick, but on Ubuntu 24.04 instead of the 22.04 aaPanel recommends.

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.

DigitalOcean create Droplet page with Ubuntu 24.04 and the $24 plan selected by default
The defaults I found: Ubuntu 24.04 and a $24 plan. Change both.
  • 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).
Choosing the $6 Basic Regular Droplet with 1 GB RAM for aaPanel
The plan I used: Basic, Regular, $6 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.

DigitalOcean Droplet options with public IPv4 and improved metrics monitoring ticked
Networking and monitoring options on the create page.

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.

First SSH login to the DigitalOcean Droplet running Ubuntu 22.04
First login: Ubuntu 22.04, 22% memory used before anything is installed.

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
Adding 2 GB of swap on a 1 GB DigitalOcean Droplet before installing aaPanel
free -m after the command: 2047 MB of swap.

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:

TypePortWhy
SSH22Your terminal login (already there by default)
HTTP80Website and Let’s Encrypt checks
HTTPS443Website over SSL
ICMPnoneSo ping works (optional)
Custom TCPyour panel port, e.g. 36547The 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”.

DigitalOcean Cloud Firewall rules for aaPanel: SSH, HTTP, HTTPS, ICMP and the panel port
My finished firewall. I also opened 888 for phpMyAdmin during the test; leave it closed if you do not need it.

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.

Choosing the LNMP stack with quick install in aaPanel
The LNMP window. This screenshot is from my Hetzner test; it looks the same on DigitalOcean.

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.

Adding a WordPress site with SSL in the aaPanel WP Toolkit
WP Toolkit’s Add site form (from my Hetzner test; identical on DigitalOcean).

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

Free Let's Encrypt SSL active with Force HTTPS in aaPanel
SSL active, with Force HTTPS on.

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.

RAM and disk usage on the aaPanel DigitalOcean Droplet after installing WordPress
After WordPress: 544 MB RAM used, 7 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.

free -m on the DigitalOcean Droplet after the reboot, showing 0 MB swap
After the reboot: 388 MB RAM used and no swap.

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.

aaPanel showing the DigitalOcean Droplet overloaded at 100% CPU
aaPanel during the uncached test: CPU 100%, load 9.17.

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 8 if 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

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.

Related Guides