Loading...

Knowledge Base

Purchase a HostGator Self-Managed VPS with aaPanel Installation

Manage your web hosting environment with aaPanel, a web hosting control panel designed to simplify server administration. Instead of relying solely on command-line tools, aaPanel provides a graphical interface that allows you to manage websites, databases, files, domains, SSL certificates, and server services from a centralized dashboard. With aaPanel, you can deploy websites, configure server applications, monitor resource usage, and perform everyday administrative tasks through a web-based interface. Whether you're managing a single website or multiple applications on a VPS, aaPanel helps streamline common server management tasks while giving you greater visibility into your hosting environment. aaPanel offers a free edition; some features and plugins may require a separate paid plan from aaPanel. With a Self-Managed VPS, you're responsible for configuring, maintaining, updating, and securing your server, your aaPanel installation, and the websites and applications you deploy.

Key Benefits of aaPanel

Managing a VPS through the command line can become increasingly complex as your websites and services grow. aaPanel provides a centralized interface that makes many common server management tasks easier to access and manage.

  • Centralized Administration: Access and manage websites, databases, files, and server services from a single dashboard.
  • Simplified Website Management: Perform common tasks such as adding websites, configuring domains, managing files, and setting up SSL certificates through the aaPanel interface.
  • Flexible Server Management: Install and manage supported applications and services based on your hosting requirements.
  • Greater Server Control: When installed on a HostGator Self-Managed VPS, aaPanel allows you to manage your hosting environment while maintaining control over your VPS configuration.

What Can You Do with aaPanel?

aaPanel offers a variety of features to help you manage and maintain your websites and server environment, including:

  • Manage Websites: Add and manage websites, domains, document roots, and other website settings from the aaPanel dashboard.
  • Deploy Applications: Install and configure supported web applications and server software based on your hosting requirements.
  • Manage Databases: Create and manage databases and database users through the aaPanel interface.
  • Manage Files: Upload, download, edit, and organize website files using the built-in file manager.
  • Configure SSL Certificates: Manage SSL certificates to help secure connections to your websites.
  • Monitor Server Resources: Review server information and resource usage to help monitor your VPS and troubleshoot potential issues.
  • Manage Server Services: Configure and manage supported services and software directly through the aaPanel dashboard.

Installing aaPanel on a HostGator Self-Managed VPS provides a centralized interface for managing your websites and server environment. With aaPanel, you can organize, configure, and maintain your hosting resources while retaining control over your VPS and its underlying configuration.

How to Purchase a Self-Managed VPS with aaPanel

Pre-configured Setup

Self-Managed VPS - Pre-configured Setup
Not sure which VPS setup is right for you? That's exactly what Pre-configured Setup is for. You'll find this option near the top of the HostGator Self-Managed VPS purchase page, and it takes the guesswork out of getting started. Just tell us what you're building—a WordPress Site, an AI Agent/Claude Code project, a Dev/Staging environment, or an eCommerce Store—and we'll automatically select the right plan, operating system, and template to match.
  • Great option if you're new to VPS or want a fast, easy setup
  • Get the recommended configuration for your project right away
  • No need to figure out the technical details yourself
  • Full flexibility to adjust settings later on
Try Pre-configured Setup and have your HostGator Self-Managed VPS ready to go in minutes!

To use aaPanel on HostGator, you first need to buy a Self-Managed VPS plan. Here is how to do it:

  1. Open https://www.hostgator.com/vps-hosting in your browser.
  2. Pick the plan you want and click Choose Plan.

    Self-Managed VPS - Choose Plan
     

  3. Pick a Data Center location.

    Self-Managed VPS - Data Center Locations
     

  4. On the Cart page, you can set up your server the way you want:
    1. Hardware:
      1. Pre-selected:

        You can change to a different Self-Managed VPS plan here.

        Self-Managed VPS - Pre-selected Hardware
         

      2. Configure:

        Click Configure if you want to build your own custom package.

        Self-Managed VPS - Configure
         

    2. Software:
      1. Click the OS With Panel tab.
      2. Choose aaPanel.

        Self-Managed VPS - aaPanel Software
         

      3. In the pop-up, click Confirm.

        Self-Managed VPS - aaPanel - Confirm
         

  5. Support & Security:

    You can add Premium Support, an optional paid add-on that gives you a dedicated specialist team for server tuning and migrations, plus priority chat and phone access. The current price is shown in your cart before you complete checkout.

    Self-Managed VPS - Premium Support
     

  6. AI Credits:

    You can add a HostGator AI Credits package, an optional paid add-on that lets you connect your application to supported LLM providers, including Claude, GPT, Gemini, and Grok, using one API key and a single bill. Supported models may change over time. The current price is shown in your cart before you complete checkout.

    Self-Managed VPS - AI Credits
     

  7. In Advanced options, you can set these up if you want:
    • Extra IPs: Add more IP addresses for an extra cost. The price depends on how many you add, and the current price is shown in your cart before you complete checkout.
    • Hostname: Give your server a custom name. This is optional.
    • SSH Key: If you want to log in without a password, add your SSH public key here. This is optional.

      Self-Managed VPS - Advanced Options
       

  8. Choose a billing term, check your Order Summary, then click Continue to Checkout.

    Self-Managed VPS - Initial Continue to Check Out
     

  9. Review your HostGator cart. Some add-ons may be included by default. Review each item, remove any you don't want, then click Continue to Checkout again.

    Self-Managed VPS - Continue to Checkout
     

  10. On the Checkout page, do the following:

    If you are new to HostGator:

    1. Fill in your billing information and contact details. If you don't want marketing emails, uncheck the box at the bottom.

      Self-Managed VPS - Billing Information
       

    2. Create a password for your account.

      Self-Managed VPS - Account Password
       

    3. Choose how you want to pay—credit card or PayPal—and enter your payment details.

      Self-Managed VPS - Payment Method Options
       

    If you already have an account, your HostGator login details will show up once you log in to your Customer Portal. If you are not logged in, click Log In.

    Self-Managed VPS - HostGator Login
     

  11. Review your payment method and order total. If you have a promo code, click Add Promo Code and enter your code. If you need to make changes, click Edit or Add Payment Method. When everything looks correct, click Submit Payment to complete your purchase. By clicking Submit Payment, you agree to the Auto Renewal Terms, Terms of Service, Cancellation Policy, and Privacy Notice.

    Self-Managed VPS - Submit Payment
     

After checkout, your Self-Managed VPS will begin setting up. Once it's ready, you can find it under the Hosting tab in your Customer Portal.

If you have questions about purchasing the Self-Managed VPS hosting, please contact us for assistance.

Getting Started with Your aaPanel Dashboard

After your server finishes setting up, follow these steps to open your aaPanel control panel.

  1. Log in to your Customer Portal.
  2. From the left-hand menu, navigate to Hosting and select My Plans.

    Customer Portal - Hosting tab - View Details
     

  3. Locate the server you want to manage, then click View Details in the bottom-left corner to expand the section and access additional server information.

    Customer Portal - Hosting tab - View Details
     

  4. Click the Reset Password button.

    Customer Portal - Hosting tab - View Details - Reset Password
     

  5. In the pop-up window, type your new root password, then click Reset Password again to confirm and save the changes.

    Customer Portal - Hosting tab - View Details - Reset Password
     

  1. Connect to your VPS using SSH.
    You'll need your VPS IP address and root credentials. Open an SSH client, follow the prompts, and enter your root password when asked:
    ssh root@your_server_ip

    Example Output:

    Welcome to Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-124-generic x86_64)
    ********************************************************************************
    
      aaPanel : active
    
      - Admin Credentials ---------------------------
      Username  : testuser
      Password  : sudo cat /opt/aapanel/.env
    
      - Access ----------------------------------------
      Panel URL     : https://203.0.113.10:7800/testbc1d/
    
      - Firewall ----------------------------------------
      Ports open    : 22 (SSH)  80 (HTTP)  443 (HTTPS)  7800 (Panel)
    
      For full details refer: /root/README.md
    
  2. Look up your login credentials:
    cat /opt/aapanel/.env

    Example Output:

    Last login: Mon Jun 15 23:00:22 2026 from 203.0.113.25
    root@server-123456:~# cat /opt/aapanel/.env
    # aaPanel runtime credentials
    # Read this file on first boot to get your panel password:
    #   cat /opt/aapanel/.env
    PANEL_PORT=7800
    PANEL_PATH=/testbc1d/
    PANEL_USER=testuser
    PANEL_PASSWORD=your_generated_password
  3. Sign in from your browser:
    https://your-server-ip:7800/PANEL_PATH/
  4. Get past the browser security warning:

    Self-Managed VPS - aaPanel Browser Security Warning
     

  5. Log in to your aaPanel dashboard:

    Self-Managed VPS - aaPanel Login
     

Setting Up aaPanel for the First Time

Once you're logged in, we recommend these first steps.

Stack Includes
LNMP Nginx + MySQL + PHP
LAMP Apache + MySQL + PHP
OpenLiteSpeed LiteSpeed + MySQL + PHP
  1. Choose and install a web server stack.
  2. Add your first website.

    Self-Managed VPS - aaPanel Add Site
     

  3. Optionally, install WordPress or another application.
  4. Optionally, set up a fully trusted SSL certificate.
  5. Update your panel password.

    Self-Managed VPS - aaPanel Change Password
     

Additional Information and Examples

Run cat /root/README.md on your server for a full rundown of commands and reference details:

Example Output:

root@server-123456:~# cat /root/README.md
# aaPanel

## Description

aaPanel is a free, beginner-friendly web hosting control panel that lets you manage your entire web server from a simple browser interface.

With a few clicks you can install WordPress, PHP, MySQL, Nginx, or Apache - no command-line experience needed.

This image comes with aaPanel pre-installed and ready to use.
On first boot, a secure password is automatically generated for you.

---

## Quick Start

Follow these three steps to get up and running.

### Step 1 - Wait for first boot to complete

After launching your instance, wait 2-3 minutes for the first-boot setup to finish.

The setup runs automatically in the background. It generates your admin password and starts the panel service.

You do not need to do anything during this time.

### Step 2 - Get your login credentials

SSH into your server and run:

```bash
cat /opt/aapanel/.env
```

You will see output like this:

```
PANEL_PORT=7800
PANEL_PATH=/abc12345/
PANEL_USER=youruser
PANEL_PASSWORD=YourGeneratedPassword
```

Save these details - you will need them to log in.

### Step 3 - Open the panel in your browser

Using the values from Step 2, open your browser and go to:

```
https://:7800//
```

For example:

```
https://203.0.113.10:7800/abc12345/
```

> **Browser warning:** aaPanel uses a self-signed SSL certificate by default.
> When your browser shows a security warning, click **Advanced** then **Proceed** to continue.
> This is expected and safe for initial setup.

Log in with the `PANEL_USER` and `PANEL_PASSWORD` from Step 2.

---

## Next Steps

Once you are logged into aaPanel, here is what to do next.

### 1. Install a web server stack

On the aaPanel dashboard, click **One-Click** and choose your stack:

| Stack | Includes |
|-------|---------|
| LNMP | Nginx + MySQL + PHP |
| LAMP | Apache + MySQL + PHP |
| OpenLiteSpeed | LiteSpeed + MySQL + PHP |

Click **Install** and wait for the installation to complete (5-10 minutes).

### 2. Add your first website

Go to **Website** then **Add Site**.

Enter your domain name or server IP and click **Submit**.

aaPanel will automatically create the web directory, database, and Nginx/Apache config for you.

### 3. Install WordPress or another app (optional)

Go to **App Store** in the left menu.

Search for **WordPress** and click **Install**.

Follow the on-screen wizard to complete the installation.

### 4. Set up a real SSL certificate (optional)

Go to **Website**, click your site, then click **SSL**.

Click **Let's Encrypt** and enter your domain to get a free trusted certificate.

This replaces the self-signed certificate and removes the browser warning.

### 5. Change your panel password

For security, change your panel password after first login:

- Go to the top-right user icon then **Change Password**
- Or run from the server: `bt 5`

---

## Access

| URL | Purpose |
|-----|---------|
| `https://:7800//` | aaPanel control panel |

> The panel path (e.g. `/abc12345/`) is unique to your instance and is a security feature.
> Always read it from `/opt/aapanel/.env` - it is different on every deployment.

---

## Credentials

All credentials are stored in:

```bash
cat /opt/aapanel/.env
```

| Field | Description |
|-------|-------------|
| `PANEL_PORT` | Panel port (default: 7800) |
| `PANEL_PATH` | Unique URL path to the panel |
| `PANEL_USER` | Admin username (randomized at install) |
| `PANEL_PASSWORD` | Admin password (generated at first boot) |

To view the first boot setup log:

```bash
grep -A 6 "First Boot Credentials" /var/log/cloud-init-output.log
```

---

## Managing the Server

### aaPanel Service

```bash
# Check if panel is running
systemctl status bt

# Restart the panel
systemctl restart bt

# Stop the panel
systemctl stop bt
```

### bt CLI Quick Reference

```bash
bt        # Show panel URL, port, and path
bt 5      # Change admin password
bt 8      # Change panel port
bt 10     # Show panel error logs
bt 16     # Restart panel
```

### Firewall

```bash
# View open ports
ufw status verbose

# Open a new port (e.g. MySQL for remote access)
ufw allow 3306/tcp
```

### Logs

```bash
# Panel error log
tail -f /www/server/panel/logs/error.log

# First boot setup log
cat /var/log/cloud-init-output.log
```

---

## Troubleshooting

### Panel URL not opening in browser

1. Check the panel is running: `systemctl status bt`
2. Check port 7800 is listening: `ss -tlnp | grep 7800`
3. Check firewall allows port 7800: `ufw status | grep 7800`
4. Make sure you are using `https://` not `http://`

### Password not working

Run this on the server to reset your password:

```bash
bt 5
```
Enter a new password when prompted, then try logging in again.

### First boot did not run

If `/opt/aapanel/.env` still shows `CHANGEME_ON_BOOT`, run the setup manually:

```bash
sed -i 's/\r//' /var/lib/cloud/scripts/per-instance/001_onboot
bash /var/lib/cloud/scripts/per-instance/001_onboot
```

Then read your credentials:

```bash
cat /opt/aapanel/.env
```

---

## Security

| Feature | Detail |
|---------|--------|
| Firewall | UFW enabled - only ports 22, 80, 443, 7800 open by default |
| SSH | Rate limited on port 22 to block brute force attempts |
| Panel password | Never baked into the image - randomly generated at first boot |
| Credentials file | `/opt/aapanel/.env` is readable by root only (mode 0600) |
| Panel URL | Random path (e.g. `/abc12345/`) obscures the admin login page |
| Panel SSL | HTTPS enabled by default with a self-signed certificate |

---

## Services

| Service | Port | Purpose |
|---------|------|---------|
| aaPanel (bt) | 7800 | Web hosting control panel |
| OpenSSH | 22 | Remote server access |

Additional services such as Nginx, Apache, MySQL, and PHP are installed
and managed through the aaPanel interface after first boot.

---
## Links
- Manage: [https://:7800/](https://:7800/)
- aaPanel Official Documentation: [https://www.aapanel.com/reference.html](https://www.aapanel.com/reference.html)
- aaPanel Install Guide: [https://www.aapanel.com/new/install.html](https://www.aapanel.com/new/install.html)
- Ubuntu 24.04 LTS Release Notes: [https://wiki.ubuntu.com/NobleNumbat/ReleaseNotes](https://wiki.ubuntu.com/NobleNumbat/ReleaseNotes)root@server-123456:~#

Loading...