How to Install aaPanel on Hetzner Cloud and Host WordPress
Some links on WebPickr are affiliate links. If you buy through them, we may earn a commission at no extra cost to you. Read our affiliate disclosure.
Tested by Dolon from Dhaka, Bangladesh, on 5 and 6 November 2026, on a Hetzner CPX02 (1 vCPU, 1 GB RAM) in Singapore running Ubuntu 22.04. How we review.
This aaPanel Hetzner guide takes you from an empty Hetzner Cloud account to a WordPress site with free SSL. The aaPanel installer itself finished in one minute on the smallest Hetzner plan. Below are the exact steps I followed, the commands with what each one does, and the three small problems I ran into.
Table of Contents
What you need
- A Hetzner Cloud account with a payment method. New accounts can be asked for ID first, so sort that out before you start.
- A domain or subdomain whose DNS you can edit (I use Cloudflare).
- A terminal: Command Prompt or PowerShell on Windows 10/11, Terminal on macOS or Linux. PuTTY works too.
- Optional but better: an SSH key. Without one, Hetzner emails you a root password.
Which Ubuntu? aaPanel’s own quick start page says the panel is developed on Ubuntu 22.04 and recommends it. Hetzner now defaults to 26.04, so change it in the image list.
Which plan? The smallest x86 plan, CPX02 (1 vCPU, 1 GB RAM, 20 GB NVMe), ran aaPanel and one WordPress site fine once I added swap. I measured its speed in my Hetzner review.
Step 1: Create a Hetzner firewall
In Hetzner Console open Firewalls → Create Firewall. A new firewall starts with two inbound rules: TCP port 22 (SSH) and ICMP (ping). Keep both and add TCP 80 and 443 for the website. You will add the aaPanel port in Step 6, because the installer picks it.

Leave the outbound rules empty. On Hetzner, no outbound rule means all outgoing traffic is allowed, which the installer needs. Hetzner Cloud firewalls are free.
Step 2: Create the server
Click Add Server and choose:
- Location: the one closest to your visitors. I used Singapore for Asia; Germany or Finland is cheaper for Europe.
- Image: Ubuntu, then pick 22.04 from the version menu.
- Type: Regular Performance, x86 (AMD), CPX02 or bigger.
- Networking: keep Public IPv4 ticked. Without it, many visitors and Let’s Encrypt checks cannot reach the server.
- SSH key: add yours if you have one.
- Firewalls: tick the firewall from Step 1.
- Backups: optional, 20 percent of the server price.

Click Create & Buy now. My server showed “Running” in about five seconds. Copy its IPv4 address.
Step 3: Log in over SSH
Open Command Prompt and type the line below, with your server’s IP in place of SERVER_IP. It connects to the server as root and changes nothing on your PC except saving the server’s fingerprint.
ssh root@SERVER_IP
Type yes when it asks whether to trust the host. If you did not add an SSH key, use the password from Hetzner’s email. Ubuntu then asks for the current password once more and makes you set a new one.

Step 4: Add swap on a 1 GB server
Skip this on 2 GB or more. On 1 GB, add 2 GB of swap first so the database does not run out of memory. This creates a 2 GB file on the disk, turns it on as extra memory and shows the result:
fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && free -m
You should see about 2047 in the Swap row. Run it only once. If you run it again, you get “fallocate failed: Text file busy”. That just means the swap is already on.

This swap stays on until the next reboot. To keep it after a reboot, also run echo '/swapfile none swap sw 0 0' >> /etc/fstab, which adds one line to the file that lists disks to mount at startup. Run it once only.
Step 5: Run the aaPanel installer
Paste the official install command from aaPanel’s quick start page. It downloads the installer script and runs it. It installs the packages aaPanel needs and the panel itself into /www. The command skips the certificate check on download (-k), so copy it only from aaPanel’s own site:
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 forum
Answer y when it asks to install to the /www directory. On my CPX02 it finished in one minute and printed the panel address, a username and a password. Save all three now.

If you lose them, bt default prints them again without changing anything.
Step 6: Open the panel port in the Hetzner firewall
The panel address looks like https://SERVER_IP:39964/1f258b3a. The number after the colon is the panel port, and aaPanel chose a random one for me. Older guides say 7800 or 8888; trust what your installer prints.
Go back to Firewalls, open your firewall and add an inbound TCP rule for that port. Better still, set the source to your own IP address only, so nobody else can even reach the login page. If your home IP changes, update this rule or you will be locked out of the panel; SSH still works. You do not need ports 888, 20 or 21 unless you plan to use phpMyAdmin’s separate port or FTP.
The random path at the end of the address (/1f258b3a in my case, from a server I have since deleted) is part of the login. Without it you get a 404 page.
Step 7: Log in and install LNMP
Open the panel address in your browser. aaPanel uses a self-signed certificate at first, so the browser warns you. Click Advanced → Proceed and log in.
A window offers two stacks. I picked LNMP (Nginx, MySQL/MariaDB, PHP) with Quick install: Nginx 1.30, MariaDB 10.11 (lighter than MySQL 8 on 1 GB), PHP 8.4 and phpMyAdmin. I unticked Pure-FTPd. Quick install uses ready packages instead of compiling, which is much faster than compiling.

When the tasks finish, the dashboard shows CPU, RAM and disk. On my 1 GB server aaPanel and the stack used about 300 MB of RAM before WordPress.

My dashboard also showed a red notice about a PHP security fix. If you see it, open App Store, refresh the app list and update PHP before you add a site.
Step 8: Point your domain to the server
In your DNS provider, add an A record: name @ for the main domain (or a subdomain such as blog), value = your server’s IPv4. On Cloudflare, set it to DNS only (grey cloud) for now, so Let’s Encrypt can reach the server directly. You can turn the proxy on after SSL works.
Step 9: Add WordPress with free SSL
In aaPanel open WP Toolkit → Add site. Enter your domain, choose PHP 8.4 and tick Apply for SSL. aaPanel fills in the admin username, password and database for you. Copy the admin password before you click Confirm.

I left Enable cache off for my speed tests. On a real site, turn on a page cache, either this option or a plugin, and check that the cache is working.
A few seconds later aaPanel confirms the site and shows the login URL.

Open Website → your site → SSL. You should see a Let’s Encrypt certificate valid for about 90 days, which aaPanel renews on its own. Switch on Force HTTPS.

Check that it worked
Open your domain in a browser. You should see the site with a padlock. I imported a full copy of my test site with the free All-in-One WP Migration plugin, and it loaded without changes.

For a quick check from Windows, run curl.exe -sI https://yourdomain.com/. It only reads the page headers. You want HTTP/1.1 200 OK (or HTTP/2 200) and Server: nginx.
Move an existing WordPress site to the server
If you already have a site, you do not need to rebuild it. I moved a full copy of my test site with the free All-in-One WP Migration plugin, and it took four steps:
- On the old site, install All-in-One WP Migration and use Export → File to download a
.wpressfile. - On the new aaPanel Hetzner site, install the same plugin and use Import → File.
- After the import, log in with the old site’s admin username and password. The import replaces the database, so the password aaPanel generated no longer works.
- Open Settings → Permalinks and click Save once, so the post URLs work.
Set the new site to HTTPS before you import (Step 9). The plugin rewrites every URL to the address of the site you import into, so if that address is already https, nothing is left on http.
If the upload stops on a large file, the server limit is too low. In aaPanel open App Store → PHP 8.4 → Settings → Configuration and raise upload_max_filesize and post_max_size, then raise client_max_body_size in the Nginx settings. Those changes only affect uploads on this server.
How fast this setup was
I ran the full set of speed tests on this exact server for my Hetzner review. The short version for a 1 GB CPX02 in Singapore with this aaPanel stack:
| Test | Result |
|---|---|
| TTFB from Dhaka, no cache (curl median of 5) | 823 ms |
| TTFB from Dhaka, WP Super Cache (median of 5) | 410 ms |
| TTFB from Singapore, cached (KeyCDN) | 56 ms |
| Largest Contentful Paint, Tokyo (WebPageTest) | 0.58 s |
| RAM in use with WordPress running | 337 MB of 928 MB, plus 154 MB swap |
On one vCPU, a page cache matters most: it cut Dhaka TTFB from 823 ms to 410 ms. Without it, every visit makes PHP and MariaDB rebuild the page on a single core.
Back up the site
Do not rely on the server alone. You have two simple options, and you can use both:
- aaPanel backups. Open Cron → Add task, create one task with Backup site and a second with Backup database, each with a schedule and how many copies to keep. Store them on the server or send them to cloud storage you connect in aaPanel.
- Hetzner backups. Turn on Backups in the server’s Backups tab. Hetzner keeps 7 daily copies of the whole disk for 20 percent of the server price, which was $1.80 a month on my CPX02 in Singapore.
Before a risky change, such as a PHP upgrade, you can also take a manual snapshot. Hetzner charges $0.0199 per GB per month for it, so delete it once you no longer need it.
Problems I ran into
- “Text file busy” on the swap command. I ran it a second time by mistake. The first run had already worked; check with
free -m. - The panel port was not 7800 or 8888. The installer chose a random port, so the firewall needs a new rule after the install. Read the port from the installer, not from an old guide.
- Ubuntu offers an upgrade to 24.04 at login. Ignore it. aaPanel is built on 22.04, and a release upgrade on a panel server can break things.
Secure your aaPanel Hetzner server
- Allow the panel port only from your own IP in the Hetzner firewall.
- Keep the random login path private. Do not share screenshots that show it.
- Change the generated panel password, and turn on two-step login under Settings in aaPanel.
- Keep PHP and aaPanel updated from the dashboard.
What an aaPanel Hetzner setup costs
A CPX02 costs $8.99 a month in Singapore or $1.50 less in Germany and Finland, plus $0.60 for the IPv4 address (November 2026, before VAT). aaPanel and Let’s Encrypt are free. Hetzner bills by the hour, so if you follow this guide just to try it and delete the server afterwards, it costs very little: my 11-hour test showed $0.17 in the console. When you delete the server, leave the IPv4 option on Delete, or the address keeps billing.
What to do next
- Read the CPU, disk and network benchmarks for this server in my Hetzner review.
- Using Vultr instead? Follow my aaPanel on Vultr guide; there the firewall is already on and the installer opens its own ports.
- Add Redis object caching in aaPanel: aaPanel Redis object cache guide.
- Cut server response time further: how to reduce TTFB in WordPress.
- Put Cloudflare in front once SSL works: Cloudflare settings for WordPress.
FAQ
Is aaPanel free?
Yes. The panel, LNMP and WordPress tools I used here are free. aaPanel sells a Pro version with extra plugins, but you do not need it for this setup.
Can aaPanel run on 1 GB of RAM?
Yes, for one small site, if you add swap. On my 1 GB Hetzner server, aaPanel, Nginx, MariaDB, PHP and WordPress used 337 MB of RAM plus some swap, with 431 MB still available.
What is the default aaPanel port?
aaPanel’s docs say 31750, but my install picked 39964. Always use the port the installer prints, and open it in the Hetzner firewall.
Which Ubuntu version should I use for aaPanel on Hetzner?
Ubuntu 22.04. aaPanel recommends it and is developed on it, so it is the safe choice.
Does Hetzner have a one-click aaPanel app?
No. Hetzner’s Apps tab has images such as Docker, Coolify and GitLab, but not aaPanel. The manual install takes one command.
How long does it take to install aaPanel on Hetzner?
The panel installed in one minute on a CPX02. LNMP with Quick install and WordPress take a few more minutes after that, so a full aaPanel Hetzner setup fits in a short evening, DNS included.
