VPS Hosting

How to Install aaPanel on a VPS: Step-by-Step Guide for Beginners

Bought your first Linux VPS and not sure what to do next? Follow this beginner-friendly guide to install aaPanel, add your domain, set up PHP and a database, open phpMyAdmin, enable SSL, and migrate WordPress, PHP or HTML websites from cPanel hosting.

How to Install aaPanel on a VPS: Step-by-Step Guide for Beginners
Enjoy our hosting guides?

Follow HostPeppy on Google to discover more practical hosting guides, tutorials and infrastructure insights.

Key Takeaways

  • The Internet Address is normally the address to use from your own computer. The Internal Address is intended for access from an applicable private network or server environment. Do not replace one with the other unless you know that the network route is available.
  • Copy the complete Internet Address, username and password into a password manager. Never publish a real panel URL, security path, username or password in a blog, screenshot, public chat or support forum. The values above are placeholders, not working credentials. If the terminal output is lost, use the official aaPanel recovery instructions for your installed version rather than guessing the panel path or port.
  • A web server, PHP and a database service through the aaPanel App Store. A website entry for your domain.
  • Why Ubuntu 22.04? aaPanel currently recommends Ubuntu 22.04 in its download and installation information. Its documentation also lists other supported systems, but this guide uses Ubuntu 22.04 so that every reader can follow the same path. If you choose another operating system, check the current aaPanel support list first.
  • The website root directory is the folder from which the web server reads your public website files. For example, if aaPanel creates a directory for example.com, your index.php or index.html file should be placed in that website root, unless your application requires a different public directory.
  • aaPanel can run on a relatively small server, but the control panel is only one part of the setup. Your Linux operating system, web server, PHP processes, database and website all need memory and CPU at the same time.

Buying a VPS is the easy part. The first time you log in to a Linux server, you may see a black terminal window and wonder what to do next. Where do you upload your website? How do you create a database? How do you install SSL? And if your website is currently running on cPanel shared hosting, how do you move it without losing files or database content?

This guide takes you through the process from the beginning. You do not need to be a Linux administrator to follow it, but you do need to work carefully and understand what each step does. We will use aaPanel, a web-based hosting control panel that lets you manage websites, databases, PHP versions, SSL certificates and files through a browser.

By the end, you should know how to prepare a HostPeppy VPS, install aaPanel, add a domain, create a database, use phpMyAdmin, enable HTTPS and move a WordPress, PHP or HTML website from cPanel hosting.

What you will set up in this guide

  • A fresh HostPeppy Linux VPS with root access.
  • Ubuntu 22.04 LTS as the operating system for this walkthrough.
  • aaPanel installed through the official installation script.
  • A web server, PHP and a database service through the aaPanel App Store.
  • A website entry for your domain.
  • A database and phpMyAdmin access.
  • An SSL certificate for HTTPS.
  • A migration of WordPress, PHP or static HTML website files from cPanel.

Before you begin: menu names and screenshots can change as aaPanel releases updates. The steps below follow the current aaPanel documentation, but always check the official documentation if your screen looks different.

1. Choose the right VPS configuration before installing aaPanel

aaPanel can run on a relatively small server, but the control panel is only one part of the setup. Your Linux operating system, web server, PHP processes, database and website all need memory and CPU at the same time.

VPS configuration How to think about it
1 vCPU / 2 GB RAM Useful for learning, testing or one very small website with a lean setup. Resource headroom can be limited.
2 vCPU / 4 GB RAM A more comfortable starting point for a beginner running aaPanel with a small WordPress or PHP website and a database.
4 vCPU / 8 GB RAM or higher Consider this when you expect more traffic, several websites, heavier plugins or additional application services.

These are practical starting points, not guaranteed capacity limits. Actual performance depends on the application, traffic, storage, provider resource allocation and configuration. For a first production website, we recommend starting with at least 2 vCPU and 4 GB RAM where your budget allows.

2. Purchase a VPS from HostPeppy

If you do not have a VPS yet, first choose a plan that matches your website and application requirements.

View HostPeppy VPS plans and choose your configuration

HostPeppy offers multiple configurations. You can choose the plan that fits your needs, but if this is your first production VPS and you want to run aaPanel with a website and database, our suggested starting point is at least 2 vCPU and 4 GB RAM.

What should you select during VPS setup?

  1. Choose the VPS configuration you want to purchase.
  2. When the operating system selection appears, choose Ubuntu 22.04 LTS 64-bit for this tutorial.
  3. Complete the order and payment process.
  4. Wait for the VPS provisioning process to finish.

Why Ubuntu 22.04? aaPanel currently recommends Ubuntu 22.04 in its download and installation information. Its documentation also lists other supported systems, but this guide uses Ubuntu 22.04 so that every reader can follow the same path. If you choose another operating system, check the current aaPanel support list first.

3. Find your VPS login details in the HostPeppy dashboard

Once the VPS has been provisioned, you need its IP address and login credentials. These details are normally available through the customer dashboard and the VPS provisioning email.

  1. Log in to your HostPeppy client dashboard.
  2. Open the VPS section from the dashboard menu.
  3. Find the VPS you have just purchased.
  4. Open the VPS details or management page.
  5. Use the available launch or access option to open the VPS management view.
  6. Check the registered email inbox for the VPS provisioning message as well.

Keep the following information ready:

Detail What it means
Server IP address The public IP address of your VPS.
Username Usually root for the initial server login.
SSH port The port used to connect to the server. Use the value shown in your VPS details or email.
Root password The initial administrator password for the Linux server.
Operating system The Linux distribution installed on the VPS.

Your dashboard labels may differ slightly depending on the VPS management interface. If the server is still showing as provisioning, wait until the service is marked active before trying to connect.

Keep your root password private

The root account has administrator-level access. Anyone with working root credentials can make major changes to the server. Do not share the password in a public support ticket, chat, screenshot or document. After your first login, use a strong unique password and consider setting up SSH key authentication.

4. Connect to your VPS for the first time

aaPanel is installed from the Linux server terminal. This is the only part of the guide where you need to enter a command. You do not need to understand Linux commands in depth: you will copy one official installation command in a later step.

If you use Windows

  1. Open Windows Terminal or PowerShell. You can find it by searching for the name in the Windows Start menu.
  2. Type the SSH command below, replacing the example IP with your VPS IP address.
  3. If your VPS uses the default SSH port 22, use the first command. If the email gives you a different SSH port, use the second command and replace PORT with that number.
ssh root@YOUR_SERVER_IP
ssh -p PORT root@YOUR_SERVER_IP

For example, if your IP address is 203.0.113.10 and your SSH port is 62247, the command is:

ssh -p 62247 root@203.0.113.10

62247 is only an example of a custom SSH port that may be supplied with a VPS. HostPeppy may provide the default SSH port 22 on some servers and a custom port on others. Always use the SSH port shown in your VPS details or provisioning email. This SSH port is separate from the aaPanel web access port, such as 16236 in the example above.

If you use macOS

  1. Open the Terminal application.
  2. Enter the same SSH command using your VPS IP address and the SSH port supplied with your VPS.
  3. Press Enter.

If you prefer PuTTY on Windows

  1. Download PuTTY from its official website: putty.org.
  2. Open PuTTY.
  3. Enter your VPS IP address in the Host Name field.
  4. Enter the SSH port supplied in your VPS details. The default is commonly 22, but HostPeppy may provide a custom SSH port such as 62247. Use the exact value provided for your server.
  5. Select SSH as the connection type.
  6. Click Open, then log in with the username root and your root password.

What happens when you enter the password?

The terminal may ask whether you trust the server fingerprint the first time you connect. Confirm only when you are connecting to the VPS you intended to access. It will then ask for the password.

Important: when you type or paste a Linux password into a terminal, the characters may not appear on the screen. You may not see dots or asterisks either. This is normal. Type or paste the password and press Enter.

If the connection fails, check the IP address, SSH port, username, password and any firewall or network access rules. Do not repeatedly guess passwords. Contact support if the credentials supplied with the VPS do not work.

5. Update the fresh Ubuntu server

After login, you will see a command prompt. Before installing aaPanel, update the operating system packages. Copy the following command and paste it into the terminal:

apt update && apt upgrade -y

Press Enter and wait for the process to finish. It may take a few minutes depending on the available updates and network speed.

This command checks for available package updates and installs them. If the system asks a question during the update, read the prompt before choosing an option. Do not close the terminal while the update is running.

6. Install aaPanel on Ubuntu 22.04

Now you are ready to install the control panel. Use the installation command published in the official aaPanel Quick Start documentation. Run it as the root user.

Copy the complete command below and paste it into the VPS terminal:

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

Press Enter. The installer will download the aaPanel installation script and begin setting up the panel. Follow any confirmation prompts shown by the installer. Do not run the command a second time while the first installation is still in progress.

What should you do while installation is running?

  • Keep the terminal window open.
  • Wait for the installer to finish.
  • Do not restart the VPS unless the installer or official instructions specifically ask you to do so.
  • Read the final output carefully.

At the end, aaPanel displays the panel access details. This output is important: it gives you the exact Internet address, internal address, panel port, security entry path, username and password for your installation. The values are generated for your server and will not be the same for every customer.

Example of the details shown after installation

Your terminal output may look similar to the example below. These are sample values only. The IP address, port, security path, username and password shown by your own installer are the ones you must use.

aaPanel Internet Address: https://YOUR_SERVER_IP:16236/your-security-entry
aaPanel Internal Address: https://YOUR_INTERNAL_IP:16236/your-security-entry

username: YOUR_PANEL_USERNAME
password: YOUR_PANEL_PASSWORD

In this example, 16236 is the aaPanel web access port. The long value after the final slash is the security entry path. Both are part of the full panel address. Your installation may show a different port, a different path, or only one address. Use the exact output from your terminal.

The Internet Address is normally the address to use from your own computer. The Internal Address is intended for access from an applicable private network or server environment. Do not replace one with the other unless you know that the network route is available.

Save the aaPanel login details securely

Copy the complete Internet Address, username and password into a password manager. Never publish a real panel URL, security path, username or password in a blog, screenshot, public chat or support forum. The values above are placeholders, not working credentials. If the terminal output is lost, use the official aaPanel recovery instructions for your installed version rather than guessing the panel path or port.

7. Open aaPanel in your browser

  1. Open Chrome, Firefox, Edge or another browser on your computer.
  2. Copy the complete aaPanel Internet Address from the installation output, including https://, the port and the security entry path.
  3. Paste it into the browser address bar and press Enter.
  4. If the HTTPS address does not load, try the same address with http:// instead of https://. Some installations or browser/network combinations may respond differently while panel access is being configured.
  5. When the login page opens, enter the username and password shown by the installer.
  6. Sign in and continue with the first-time setup.

Do not guess the port or security entry path. Use the complete address printed by the installer. In the sample above, the panel port is 16236; another VPS may receive a different port.

If the aaPanel address does not open

One common reason is that the aaPanel port is not allowed through the server firewall or the HostPeppy network firewall. For example, if the installer prints port 16236, that exact TCP port must be allowed. If your installer prints another port, use that port instead.

  1. Confirm that the VPS is active and that you copied the complete Internet Address correctly.
  2. Try both the HTTPS and HTTP versions of the same address, keeping the same IP, port and security entry path.
  3. Check whether the aaPanel port is allowed in the VPS operating system firewall.
  4. Check whether a separate HostPeppy firewall, security group or network rule also needs the port to be enabled.
  5. If the port is allowed but the page still does not load, contact the HostPeppy support team through a support ticket or the available WhatsApp support channel. Ask the team to check and enable the aaPanel panel port for your VPS.

Allow the aaPanel port through Ubuntu UFW using SSH

If your Ubuntu VPS uses UFW (the Uncomplicated Firewall), you can allow the panel port from the SSH terminal. Replace 16236 with the exact port printed by your aaPanel installer.

ufw status
ufw allow 16236/tcp
ufw status

If UFW is active, the allow rule should appear in the status output. Do not enable UFW or change its default policies without first confirming that your SSH port is allowed; otherwise, you could lock yourself out of the VPS. If UFW is not the firewall in use, these commands may not control the active firewall. Ask HostPeppy support to check the correct firewall layer rather than changing unfamiliar firewall rules.

Also remember that allowing the port inside Ubuntu does not automatically change a separate provider-side firewall. If the panel still does not open after the operating system rule is added, raise a support ticket or contact the HostPeppy team through WhatsApp and request that the aaPanel port be enabled at the network level.

8. Complete the aaPanel first-time setup

After the first login, aaPanel may offer a recommended software environment or show its App Store. For a typical PHP or WordPress website, you need a web server, a database and the PHP version required by the website.

For this guide, use the LAMP stack:

  • Linux: Ubuntu is the operating system already installed on your VPS.
  • Apache: the web server that handles requests for your websites.
  • MariaDB: the database service used by WordPress and many PHP applications.
  • PHP: the runtime required by WordPress and PHP websites.

Why Apache instead of Nginx? Many websites moved from cPanel hosting rely on Apache rewrite rules stored in .htaccess files. Apache reads these rules directly when the required modules and settings are enabled. Nginx does not read .htaccess; its rewrite rules must be translated into server configuration. That extra work can cause WordPress permalinks, redirects, security rules or custom PHP routes to behave differently after migration. Apache is therefore the recommended choice in this walkthrough for easier compatibility with typical cPanel websites. Nginx can be suitable for other setups, but it is not the default recommendation here.

Install Apache

  1. Open App Store in aaPanel.
  2. Find Apache in the software list.
  3. Choose a stable version offered by the panel.
  4. Click Install and wait for the installation to complete.
  5. When adding each website, check that Apache rewrite support is available and that the website rules are being read correctly.

Install the database service

  1. Return to the App Store.
  2. Find the database option supported by your aaPanel version.
  3. Choose a supported MySQL-compatible database version. If you choose MariaDB, confirm that your application supports that version.
  4. Click Install and wait for the service to become ready.

WordPress works with supported MySQL-compatible database services. Use a version compatible with your website and check the requirements of older PHP applications before choosing a database version.

Install PHP

  1. In the App Store, find the PHP versions.
  2. Install the version required by your website.
  3. If you are creating a new WordPress site, choose a currently supported PHP version that is compatible with your theme and plugins.
  4. For an existing website, check the PHP version used by the old hosting account before changing it.

Do not select the newest PHP version blindly for an old website. Some older applications or plugins may not support it. You can usually install more than one PHP version and assign a version to an individual website, depending on the aaPanel version and installed components.

9. Add your domain as a website in aaPanel

Now that the web server is installed, you can add your domain. This creates a website entry and a directory where the website files will be stored.

  1. Open the Website section in aaPanel.
  2. Click Add Site or the equivalent button shown in your panel version.
  3. Enter your domain, for example example.com.
  4. Choose the website root directory. The default directory suggested by aaPanel is usually suitable for a first website.
  5. Select the PHP version if the website uses PHP. For a plain HTML website, select the static website option or PHP disabled where available.
  6. If you want aaPanel to create a database at the same time, enable the database option and record the generated database details securely.
  7. Submit the form to create the website.

Use your own domain in place of example.com. Do not use the example domain as your real website address.

What is the website root directory?

The website root directory is the folder from which the web server reads your public website files. For example, if aaPanel creates a directory for example.com, your index.php or index.html file should be placed in that website root, unless your application requires a different public directory.

For Laravel and some other frameworks, the public-facing directory may be a subfolder such as public. Do not expose application configuration files, backups or private folders to public web access.

10. Point your domain to the new VPS

Your domain name needs to resolve to the public IP address of your VPS. This is done through DNS at the company where your domain DNS is managed.

  1. Log in to your domain registrar or DNS provider.
  2. Open DNS management for the domain.
  3. Create or update an A record for the root domain, often shown as @, and set its value to your VPS IP address.
  4. Create or update another A record for www if you want the www version to open the same website.
  5. Save the records.
Record type Name / Host Value
A @ Your VPS public IP address
A www Your VPS public IP address

DNS providers use different interfaces. Some ask for the full domain name instead of @. Follow the format shown by your DNS provider. DNS updates can take time to appear everywhere, depending on TTL and resolver caching.

If the old website is still live, do not change the DNS records until you have uploaded the new website and tested it. You can prepare the VPS first and make the final DNS change after the migration is ready.

11. Create a database for your website

WordPress and many PHP applications store content, users, settings and other information in a database. You need a database and a database user before you can connect the application.

  1. Open the Database section in aaPanel.
  2. Click Add Database.
  3. Enter a database name, such as site_db.
  4. Enter or generate a database username.
  5. Create a strong database password.
  6. For permissions, choose local access if the website and database are running on the same VPS. Do not allow access from everyone unless you have a specific reason and have secured it.
  7. Save the database.

Write down the database name, username, password and host. For a website on the same server, the database host is commonly localhost. Use the actual host value shown by your database configuration if it differs.

12. Install and open phpMyAdmin

phpMyAdmin is a browser-based tool for managing MySQL-compatible databases. It lets you view tables, run SQL queries, export data and import a database backup without typing database commands into the terminal.

  1. Open the aaPanel App Store.
  2. Search for phpMyAdmin.
  3. Choose a version compatible with the installed database and PHP environment.
  4. Click Install and wait until the installation is complete.
  5. Open the phpMyAdmin entry or access link shown by aaPanel.
  6. Log in with the database username and password, if prompted.

Depending on the aaPanel version, phpMyAdmin may be accessed through the panel interface or a configured database management link. Follow the address and access method displayed by your installation.

Security tip: Do not leave database management tools exposed without protection. Use strong credentials, keep the panel and phpMyAdmin updated, restrict access where practical and avoid sharing database login details.

13. How to migrate a WordPress website from cPanel to aaPanel

If your WordPress website is currently hosted on cPanel shared hosting, you need to move two main things: the WordPress files and the WordPress database. The files contain WordPress core, themes, plugins and uploads. The database contains posts, pages, settings, users and other site information.

Keep the old hosting active until you have tested the VPS website. Do not delete the old account immediately after copying the files.

Part A: Take a backup from cPanel

  1. Log in to your old cPanel account.
  2. Open File Manager.
  3. Open the folder where WordPress is installed. It is often public_html, but it may be a subfolder if WordPress is installed on an addon domain or subdomain.
  4. Select the WordPress files and folders, including wp-admin, wp-content, wp-includes and the WordPress PHP files.
  5. Use the Compress option to create a ZIP archive. Give it a clear name such as wordpress-backup.zip.
  6. Download the ZIP archive to your computer.
  7. Return to cPanel and open phpMyAdmin.
  8. Select the database used by the WordPress website. If you do not know the database name, check the DB_NAME value inside the WordPress wp-config.php file.
  9. Click Export, choose Quick and SQL, then download the database file.

You should now have a website ZIP file and a database SQL file. Keep both files safe. Do not edit the SQL file unless you know why a change is needed.

Alternative: migrate with the All-in-One WP Migration plugin

If you prefer a plugin-based WordPress migration, you can also use All-in-One WP Migration. Install the plugin on the existing WordPress website, create an export, and download the generated backup file. Set up a fresh WordPress installation on the new VPS, install the same plugin there, and use its Import option to restore the backup.

Check the plugin version and its current import-size limits before starting. Large websites may need an extension or another migration method, depending on the file size and the plugin plan. Keep a separate backup of the original website and database even when using a migration plugin. Do not delete the old hosting account until the restored website has been tested.

Part B: Prepare the website in aaPanel

  1. Make sure the domain has been added under Website in aaPanel.
  2. Install the PHP version required by the old WordPress website.
  3. Create a database and database user in the Database section.
  4. Keep the database name, username and password ready.
  5. Open the website root directory using the aaPanel file manager.

Part C: Upload and extract WordPress files

  1. Open the file manager for the website root directory in aaPanel.
  2. Upload the wordpress-backup.zip archive from your computer.
  3. After upload completes, select the ZIP file and choose Extract.
  4. Check the folder structure after extraction.
  5. Make sure wp-admin, wp-content, wp-includes and wp-config.php are directly inside the website root if that is how the old site was installed.
  6. If extraction created an extra folder such as public_html or wordpress, move the contents into the actual website root. Do not leave the site one directory too deep.

Part D: Import the WordPress database

  1. Open the Database section in aaPanel.
  2. Find the database you created for WordPress and open its phpMyAdmin option, or open phpMyAdmin and select the new database.
  3. Click the Import tab.
  4. Choose the SQL file exported from the old cPanel account.
  5. Keep the format as SQL and start the import.
  6. Wait for the success message. Large databases may take longer to import.

If the SQL file is too large for a browser upload, check the phpMyAdmin upload limit and the PHP upload settings. You can also import a compressed database backup using the supported method in your panel, or use a command-line import with help from your hosting support. Do not split or edit a database dump randomly because this can make the backup incomplete.

Part E: Update the WordPress database connection

  1. Open wp-config.php in the website root directory using the aaPanel file manager.
  2. Find the database settings named DB_NAME, DB_USER, DB_PASSWORD and DB_HOST.
  3. Replace the old database name with the new database name created in aaPanel.
  4. Replace the old database username and password with the new credentials.
  5. For a local database, the host is commonly localhost. Confirm this with your aaPanel database setup.
  6. Save the file.

Do not change the WordPress table prefix unless you have a specific reason. It is usually set by $table_prefix in the same file and must match the table names in the imported database.

Part F: Test WordPress before changing DNS

Before sending visitors to the new VPS, test the site using a temporary preview method or a local hosts-file entry if you are comfortable with that process. If you are not familiar with hosts-file editing, ask support to help you test the new server before changing public DNS.

Check the homepage, inner pages, images, WordPress admin login, forms and any important plugin functionality. If the website uses a cache plugin, clear its cache after migration.

If the domain name remains the same, WordPress usually does not need a URL change. If you are moving to a different domain, use a WordPress-aware migration tool or a safe search-and-replace method that understands serialized data. Do not run a plain text replacement directly on the SQL dump for serialized WordPress values.

14. How to migrate a normal PHP website from cPanel

A custom PHP website may use a database, or it may consist only of PHP files. First check the old hosting account to understand how the application is structured.

Part A: Back up files and database

  1. Log in to cPanel and open File Manager.
  2. Open the folder for the PHP website.
  3. Compress the website files into a ZIP archive and download it.
  4. If the application uses a database, open phpMyAdmin and export the correct database as an SQL file.
  5. Check whether the application has a configuration file such as config.php, database.php or .env. Keep a copy of its settings for reference.

Part B: Create the site and database in aaPanel

  1. Add the domain under Website in aaPanel.
  2. Select the PHP version required by the application.
  3. Create a database if the application uses one.
  4. Upload the ZIP archive to the website root directory and extract it.
  5. Check that the main entry file, such as index.php, is in the correct document root.

Part C: Import the database and update configuration

  1. Open phpMyAdmin and select the new database.
  2. Use Import to upload the SQL backup from cPanel.
  3. Open the PHP application configuration file.
  4. Update the database name, username, password and host to the new database credentials.
  5. Check any absolute file paths, cache paths, upload directories and environment settings that may have changed.
  6. Save the configuration and test the application.

Some PHP applications need additional PHP extensions such as curl, mbstring, xml, zip, gd, intl or pdo_mysql. The exact list depends on the application. If you see an error about a missing extension, check the application documentation and install the required extension for the selected PHP version through the supported aaPanel method.

15. How to upload a static HTML website

A static HTML website is usually the simplest type to migrate because it does not need PHP or a database unless the site uses a separate backend service.

  1. Log in to the old cPanel account and open File Manager.
  2. Open the directory containing the website, often public_html.
  3. Select the website files, including index.html, CSS, JavaScript, images and other assets.
  4. Compress the files into a ZIP archive and download it.
  5. In aaPanel, add the domain as a static website.
  6. Open the website root directory in the aaPanel file manager.
  7. Upload the ZIP archive and extract it.
  8. Confirm that index.html is directly inside the website root directory.
  9. Check that image and CSS paths still work.

A static HTML site does not need a database or PHP installation. If the website has a contact form, login feature or dynamic search, that feature may depend on a separate backend that must be migrated too.

16. Install SSL and enable HTTPS

SSL certificates allow visitors to connect to your website over HTTPS. You should enable HTTPS after the domain points to the VPS and the web server can validate the domain.

  1. Confirm that the root domain A record points to the VPS IP address.
  2. Confirm that the www record also points to the correct server if you use it.
  3. Make sure the web server ports required for website access are allowed through the firewall.
  4. Open Website in aaPanel.
  5. Find your domain and open its SSL settings.
  6. Choose the the available ACME certificate option option if available.
  7. Select the domain names you want covered, such as the root domain and www.
  8. Complete the validation and certificate request.
  9. After the certificate is issued, enable HTTPS or the available force-HTTPS option if your website is ready for it.
  10. Open the website using https:// and check that the browser shows a secure connection.

Certificate validation can fail if DNS still points to the old server, the domain does not resolve publicly, the required ports are blocked or a proxy setting interferes with validation. Correct the cause and try again. Do not repeatedly request certificates while DNS is incorrect.

After enabling HTTPS, check for mixed content. This happens when a secure page still loads images, scripts or stylesheets over plain HTTP. Update the website configuration or asset URLs where required.

17. Point the live domain to the VPS after testing

Once the new website is working, make the VPS the live destination.

  1. Return to the DNS management page for your domain.
  2. Update the root A record to the VPS IP address.
  3. Update the www A record or CNAME according to your preferred domain setup.
  4. Save the DNS changes.
  5. Wait for DNS caches to update.
  6. Open the website from a private browser window and test the main pages.
  7. Check the SSL certificate, forms, login and database-driven features.

Keep the old cPanel hosting active until the new website is stable and you have confirmed that no recent content or orders were missed. For a website that receives orders, registrations or frequent updates, plan the final data sync carefully so that new data created during migration is not lost.

18. Important aaPanel settings to review after migration

  • Panel password: Change any temporary or weak password and store the new one securely.
  • Panel access: Review the panel port, security entry and authorized IP options. Restrict access where practical.
  • SSH access: Keep root credentials secure and consider SSH key authentication.
  • Firewall: Allow only required ports for SSH, the panel, HTTP, HTTPS and application services.
  • PHP version: Use a version supported by your application and update it when compatibility allows.
  • Database access: Keep database permissions limited. Avoid public database access unless required.
  • Backups: Schedule website and database backups and store copies away from the VPS.
  • Updates: Keep the operating system, aaPanel, web server, PHP and applications updated.
  • Monitoring: Watch CPU, RAM, disk space and service status, especially during the first few days.

19. Common problems and how to solve them

Problem What to check
aaPanel login page does not open Check the complete panel URL, panel port, security entry path and firewall rules.
Website shows a default page Check the domain DNS, website root directory and whether the correct index file is present.
Website shows a 403 error Check file permissions, website root directory and web server configuration.
Website shows a 404 error Check the domain entry, document root and rewrite rules.
WordPress shows a database connection error Check database name, username, password, host and database service status in wp-config.php.
PHP page downloads instead of running Check that PHP is installed, assigned to the website and connected to the web server.
SSL request fails Check public DNS resolution, domain selection, validation method and firewall access.
Imported database is empty or incomplete Check that the correct SQL file and target database were selected and that import completed successfully.
Website images or styles are missing Check file extraction paths, letter case in filenames and the URLs used by the website.

20. Frequently asked questions

Is aaPanel suitable for someone who has never used Linux?

Yes, aaPanel provides a browser-based interface for common website tasks. You still need to connect to the VPS and run the installation command, but after installation many routine tasks can be handled through the panel. Take backups and follow each step carefully.

Which operating system should I choose for aaPanel?

For this guide, choose Ubuntu 22.04 LTS 64-bit. aaPanel currently recommends Ubuntu 22.04 in its installation information. Check the official support list before choosing another distribution or version.

Can I install aaPanel on a 1 CPU and 2 GB RAM VPS?

aaPanel lists relatively modest minimum requirements, but the website, database and other services also need resources. A 1 CPU and 2 GB RAM VPS can be useful for learning or a very small website, while at least 2 vCPU and 4 GB RAM is a more comfortable starting point for a first production website with a database.

Do I need cPanel after installing aaPanel?

No. aaPanel is a separate control panel. You can keep using cPanel on your old hosting account to create backups and export the database, then move the website to the new VPS managed through aaPanel.

Can I migrate WordPress from cPanel to aaPanel?

Yes. You can move the files and database manually, or use a WordPress migration plugin such as All-in-One WP Migration if the backup size and plugin limits allow it. With the manual method, create the website and database in aaPanel, upload and extract the files, import the SQL database, update the database credentials and test the site before changing DNS.

Can I host HTML websites without installing PHP?

Yes. A static HTML website can be served by the web server without PHP or a database. Add the domain as a static website and upload the HTML, CSS, JavaScript and image files to its document root.

Can I use phpMyAdmin with aaPanel?

Yes. Install phpMyAdmin from the aaPanel App Store, then open it using the access method shown in your panel. Use your database credentials to manage the database.

Can I create multiple websites in aaPanel?

Yes, you can add multiple website entries. The practical number depends on the VPS CPU, RAM, storage, traffic and application requirements. Several busy websites need more resources than a few static websites.

Does aaPanel automatically provide SSL?

aaPanel can help request and configure certificates, including the available ACME certificate option where supported. Your domain must resolve correctly and the required validation method must be reachable. Always test certificate renewal.

Should I cancel my old cPanel hosting after migration?

Not immediately. Keep the old hosting active until the new VPS website is tested, DNS has updated and any recent database changes have been moved. Only cancel after you have confirmed that the migration is complete and your backups are safe.

Final checklist: your website is ready on aaPanel

  • VPS is active and you can log in with SSH.
  • Ubuntu is updated and aaPanel installation is complete.
  • Panel login details are stored securely.
  • Required web server, PHP and database services are installed.
  • Domain is added in aaPanel and points to the VPS.
  • Website files are uploaded to the correct root directory.
  • Database is created and imported where required.
  • Application configuration contains the new database credentials.
  • SSL certificate is installed and HTTPS works.
  • Website pages, images, forms and login functions have been tested.
  • Backups are configured and stored outside the VPS.
  • Old hosting remains available until the migration is verified.

Final thoughts

Your first VPS may feel unfamiliar at the beginning, especially if you have only used shared hosting and cPanel. Once aaPanel is installed, everyday tasks such as adding a website, creating a database, selecting PHP and installing SSL become much easier to understand.

The most important part is to take the migration one step at a time. Back up the old website, prepare the new VPS, move the files, import the database, test everything and then update DNS. Do not rush to cancel the old hosting or delete the only working copy of your website.

If you are ready to get started, choose a HostPeppy VPS plan. For a first production setup with aaPanel, we recommend at least 2 vCPU and 4 GB RAM so that the operating system, panel, database and website have more room to run.

Official documentation and useful resources