How to install WordPress in aaPanel
Set up a complete WordPress site on aaPanel with UnderHost: create the website, database, WordPress files, rewrite rules, SSL, caching, backups,
On this page
aaPanel can run WordPress well on an UnderHost VPS or dedicated server when PHP, MySQL, rewrite rules, SSL, caching, and backups are configured carefully. Depending on the aaPanel build and installed plugins, you may use an App Store installer or install WordPress manually. This guide covers both paths.
Installation overview
The steps at a glance:
- Create the website in aaPanel
- Create a MySQL database
- Upload WordPress files
- Configure
wp-config.phpand run the installer - Set up URL rewrite rules
- Issue SSL certificate
Step 1: Create the site
Go to aaPanel → Website → Add Site. Enter your domain, select a currently supported PHP version compatible with your theme/plugins, and click Submit. PHP 8.2 or 8.3 is a good default for modern WordPress sites, while older plugins may require PHP 8.1. See How to create a website in aaPanel for full steps.
Step 2: Create the database
Go to aaPanel → Database → Add Database. Create a database with a name, user, and password. Note all three-you will need them for wp-config.php. The database host is 127.0.0.1 or localhost.
Step 3: Download and upload WordPress
Option A-aaPanel App Store (easiest):
- Go to aaPanel → App Store and search for WordPress
- Click Install and select the domain you created
- aaPanel downloads and configures WordPress automatically
Option B-Manual upload:
- Download WordPress from wordpress.org
- Upload and extract the ZIP to
/www/wwwroot/yourdomain.com/via File Manager or FTP
Step 4: Configure wp-config.php and run the installer
Open your domain in a browser. WordPress detects no configuration and starts the install wizard:
- Choose your language and click Continue
- Enter the database name, username, password, and host (
127.0.0.1) - Click Submit-WordPress creates
wp-config.phpautomatically - Fill in the site title, admin username, password, and email
- Click Install WordPress
Step 5: Enable SSL and HTTPS
Point your domain's A record to the server IP first, then go to aaPanel → Website → your site → SSL. Select Let's Encrypt, click Apply. See Free SSL certificates in aaPanel.
After SSL is active, update WordPress site URL to HTTPS: in WordPress admin → Settings → General → change both URLs from http:// to https://. Then add an HTTPS redirect rule.
URL rewrite rules
WordPress requires URL rewriting for clean permalinks. In aaPanel:
- Go to Website → your site → URL rewrite
- Select WordPress from the dropdown template
- Click Save
aaPanel applies the correct rewrite rules for your web server (Nginx or Apache) automatically. Without this step, WordPress pages other than the homepage will return 404 errors.
If you change WordPress permalink settings before applying the rewrite template, all pages except the homepage will return 404. Apply the WordPress rewrite template in aaPanel first, then configure permalinks in WordPress Settings → Permalinks → Post name.
After installation
- Log in to WordPress at
https://yourdomain.com/wp-admin - Set permalinks: Settings → Permalinks → Post name
- Install a caching plugin that matches your stack, such as LiteSpeed Cache for OpenLiteSpeed/LiteSpeed or a standard page-cache plugin for Nginx/Apache
- Install a security plugin (Wordfence or Sucuri)
- Keep WordPress core, themes, and plugins updated
- Set up a backup schedule-see Backups in aaPanel
- Use CustomerPanel to open a or optimization ticket if you want UnderHost to review performance, PHP limits, or a move from another provider
Related: Create a website in aaPanel | aaPanel databases | aaPanel SSL | WordPress security
Need aaPanel hosting?
Install aaPanel on an UnderHost VPS or dedicated server when you want a simple web interface for sites, databases, SSL, and apps.





















