Loading...

Knowledge Base

Purchase a HostGator Self-Managed VPS with HestiaCP Installation

Manage your websites and hosting services with Hestia Control Panel (HestiaCP), a free and open-source web hosting control panel. It provides a web-based dashboard that lets you manage websites, domains, email accounts, databases, DNS records, SSL certificates, and other hosting services from a single location. With HestiaCP, you can perform common hosting tasks without relying entirely on the command line. Whether you're managing a single website or multiple domains on your VPS, HestiaCP helps you organize and control your hosting environment through a centralized dashboard. With a Self-Managed VPS, you're responsible for configuring, maintaining, updating, and securing your server, your HestiaCP installation, and the websites and email you host.

Key Benefits of HestiaCP

HestiaCP includes a wide range of tools that simplify the management of websites, hosting services, and server resources from one convenient interface.

  • Centralized Hosting Management: Manage websites, domains, DNS records, email accounts, databases, and other hosting services from a single dashboard.
  • Easy Website Management: Add multiple domains, configure website settings, and install supported applications through the control panel.
  • Built-In Email Management: Create email domains and accounts, manage email settings, and access webmail directly from HestiaCP.
  • Database Management: Create and manage MySQL, MariaDB, and PostgreSQL databases and access them through supported database management tools.
  • DNS and SSL Management: Manage DNS zones and records, and configure SSL certificates for your websites and email services.
  • Backup and Restore: Create backups of your hosting data and restore them whenever needed.
  • Resource Monitoring: View important usage statistics, including bandwidth consumption, disk usage, websites, email accounts, databases, and backups.

What Can You Do with HestiaCP?

HestiaCP provides the tools you need to manage many of the daily tasks involved in running websites and hosting services on your VPS.

  • Manage Websites: Add domains, configure website settings, view logs, and manage your websites through the Web section.
  • Install Applications: Deploy supported applications such as WordPress, Drupal, Joomla, Laravel, Nextcloud, and many others.
  • Manage Databases: Create and manage MySQL, MariaDB, and PostgreSQL databases for your websites and applications.
  • Manage Website Files: Access and manage website files and directories using HestiaCP's built-in file management tools.
  • Configure SSL Certificates: Secure your websites and email services with SSL/TLS certificates, including Let's Encrypt certificates.
  • Manage DNS: Create DNS zones, add or update DNS records, and manage nameservers for your domains.
  • Manage Email: Create email domains and accounts, configure mail settings, and access webmail for your hosted domains.
  • Create and Restore Backups: Back up your hosting data and restore websites, databases, email accounts, and other account information when necessary.
  • Manage Users and Access: Create users, allocate resources, and manage access to hosting services.
  • Monitor Hosting Resources: Track bandwidth usage, disk space consumption, domains, SSL certificates, email accounts, databases, cron jobs, and backups.
  • Manage Scheduled Tasks: Create and manage cron jobs to automate recurring tasks at scheduled intervals.

Installing HestiaCP on a HostGator Self-Managed VPS provides a centralized interface for managing your websites and hosting services. From a single dashboard, you can configure domains, databases, email accounts, DNS settings, SSL certificates, and backups while maintaining full control of your VPS environment.

System Requirements

Before deploying, ensure your server meets the following minimum hardware requirements. For a stable production deployment, we recommend using higher specifications than the minimum requirements.

Resource Minimum Recommended
RAM 3 GB 8 GB

How to Purchase a Self-Managed VPS with HestiaCP

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 HestiaCP 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 HestiaCP.

        Self-Managed VPS - HestiaCP Software
         

      3. In the pop-up, click Confirm.

        Self-Managed VPS - HestiaCP -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.

Setting Up and Locking Down Your HestiaCP Server

HestiaCP is a fast, no-frills control panel, but a handful of setup steps are needed before it's ready to go live. This guide walks through the full initial configuration process from start to finish. Work through each phase below to pull your login details, get into the web dashboard, put a proper SSL certificate in place, and follow good security habits for the websites and email domains you host.

Phase 1: Reset Your Root Password

  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
     

Phase 2: Connect To Your Server Through SSH

  1. Connect to your server via SSH.
    Open a terminal window on your computer (or an SSH client such as PuTTY) and run the command below to sign in to your server as the administrator, using your server's public IP address:
    ssh root@your_server_ip
    When prompted, enter the new root password you set up in the step above.
  2. If you ever want to double-check the deployment notes right from your server's terminal, you can display the original README file with this command:
    cat /root/README.md

Phase 3: Retrieve Your Login Credentials

Since your SSH session is already active, the background setup process (which takes about 2-3 minutes) has most likely already wrapped up.

  1. Pull your password: Run the command below in your terminal to view the credentials that were generated automatically:
    cat /root/.app_passwords
  2. Hold onto it: Find the line reading HESTIA_ADMIN_PASSWORD=... and copy the password value. You'll use it in the next step.

    Example Output:

    root@hal-server-123456:~#  cat /root/.app_passwords
    HESTIA_ADMIN_PASSWORD=example9e37c85c2799cc6b4876d94dc539cb6d37f9ea9t3st

Phase 4: Access the Web Panel

You can step away from the terminal now and switch over to your web browser.

  1. Head to the panel: Go to https://<your-server-ip>:8083/. Example: https://12.3.456.789:8083/
  2. Get past the security warning: Your browser may show a "not private" warning because HestiaCP uses a temporary self-signed SSL certificate. This is expected the first time you connect. Only continue if the IP address matches the one shown in your Customer Portal. Select Advanced, then Proceed. You'll replace this certificate with a trusted one in Phase 5.
  3. Sign in: Use the credentials below:
    • Username: hestiaadmin

      Self-Managed VPS - HestiaCP Admin
       

    • Password: The password you copied back in Phase 3.

      Self-Managed VPS - HestiaCP Admin Password
       

  4. You're now signed in and looking at your Dashboard.

    Self-Managed VPS - HestiaCP Admin Dashboard
     

Phase 5: Configure and Secure the Server (Crucial Step)

Now that you're in the web dashboard, your next priority is setting your server's hostname and swapping the panel's certificate for a real, trusted SSL certificate.

  1. Set the OS Hostname: Switch back to your SSH terminal and configure your fully qualified domain name (FQDN), for example panel.yourdomain.com:
    sudo hostnamectl set-hostname panel.yourdomain.com
  2. Update your Hosts file: Open /etc/hosts in a text editor (nano works well) and make sure the 127.0.1.1 line matches your new hostname:
    127.0.1.1 panel.yourdomain.com panel
  3. Sync the Panel: Inside the HestiaCP web interface, go to Server -> Configure. Update the Hostname field so it matches (panel.yourdomain.com) and click Save.
  4. Install a Trusted SSL: Make sure your domain (panel.yourdomain.com) is pointed at your server's IP address in your DNS settings. After that DNS change has propagated, run this script from your SSH terminal:
    sudo /opt/hestiacp/setup-ssl.sh panel.yourdomain.com

    This swaps out the temporary self-signed certificate for a trusted Let's Encrypt certificate automatically, so browser warnings will stop appearing.

Phase 6: Start Hosting

With that groundwork in place, your control panel is ready for its actual job:

  • To host a website: Go to Web -> Add Web Domain. Type in your domain name (example.com), tick the boxes for SSL Support and Let's Encrypt, then click Save. HestiaCP takes care of the web directory, Nginx routing, and SSL setup on its own.

    Self-Managed VPS - service terms
     

  • To host email: Go to Mail -> Add Mail Domain. After it's added, click into the domain and choose Add Mail Account to set up your inboxes.

    Self-Managed VPS - service terms
     

Additional Information and Examples

Run cat /root/README.md to view more details and useful commands:

Example Output:

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

## Description

HestiaCP is a clean, modern, open-source hosting control panel for Linux. It lets you manage websites, email accounts, databases, DNS zones, FTP accounts, and SSL certificates through a fast, lightweight web-based interface.

Unlike heavier panels, HestiaCP is designed for speed and simplicity - built on Nginx, PHP-FPM, and MariaDB. It ships with a full mail stack (Exim4 + Dovecot), Fail2ban intrusion prevention, and built-in Let's Encrypt SSL automation.

This image comes with a complete HestiaCP stack pre-installed and configured on Ubuntu 24.04 LTS. On first boot, a secure, randomized administrator password is automatically generated for you.

---

## Minimum Requirements

| Resource | Minimum |
|----------|---------|
| RAM | 3 GB |

> The full mail stack (Exim4, Dovecot, SpamAssassin) requires at least 3 GB of RAM to run reliably alongside Nginx, MariaDB, and the HestiaCP panel.

---

## 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 randomized admin password, updates the panel credentials, sets up system hostnames, and starts all panel services.

You do not need to do anything during this time.

### Step 2 - Get your login credentials

SSH into your server as the `root` user and run:

```bash
cat /root/.app_passwords
```

You will see output like this:

```
HESTIA_ADMIN_PASSWORD=your_secure_randomized_password
```

Save this password - you will need it to log in.

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

Open your browser and navigate to:

```
https://<your-server-ip>:8083/
```

For example:

```
https://203.0.113.10:8083/
```

> **Browser warning:** HestiaCP 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 following credentials:
- **Username:** `hestiaadmin`
- **Password:** The password retrieved in Step 2.

---

## Next Steps

Once you are logged into the HestiaCP Control Panel, here is what to do next.

### 1. Configure Server Hostname Properly

HestiaCP relies on the OS-level hostname for mail certificates and DNS matching. Follow this 3-step process to set it properly:

1. **Set the OS Hostname:** SSH into your server and run:
   ```bash
   sudo hostnamectl set-hostname panel.yourdomain.com
   ```
2. **Update the Hosts File:** Edit `/etc/hosts` and ensure the `127.0.1.1` line maps to your new hostname:
   ```
   127.0.1.1 panel.yourdomain.com panel
   ```
3. **Sync inside HestiaCP Panel:** Log into the control panel, navigate to **Server** -> **Configure**, and update the **Hostname** field to `panel.yourdomain.com`. Then run the SSL setup script to generate trusted certificates.

### 2. Add your first website

Go to **Web** -> **Add Web Domain**.

Enter your domain name (e.g., `example.com`), select the PHP version, configure SSL preferences, and click **Save**.

HestiaCP will automatically create the web root directory, configure Nginx virtual hosts, and optionally issue a Let's Encrypt certificate.

### 3. Create Mail Domains and Mailboxes

Go to **Mail** -> **Add Mail Domain** to register your mail domain.
Once registered:
- Go to **Mail** -> select your domain -> **Add Mail Account** to create individual email accounts.
- Use ports `25`, `465`, or `587` for sending mail (SMTP) and `110`, `995`, `143`, or `993` for receiving (IMAP/POP3).

### 4. Set up a real SSL certificate for websites

HestiaCP has built-in Let's Encrypt integration. To secure a website, edit the domain under **Web**, check **SSL Support** and **Let's Encrypt**, then click **Save**.

HestiaCP will automatically request, install, and renew the certificate.

### 5. Set up a real SSL certificate for the Control Panel itself

On first boot, the HestiaCP panel uses a temporary self-signed SSL certificate. Once you have pointed a domain (e.g., `panel.example.com`) to your server's public IP, run:

```bash
sudo /opt/hestiacp/setup-ssl.sh panel.example.com
```

This helper script automatically stops Nginx, requests the Let's Encrypt certificate, updates HestiaCP's panel SSL configuration, restarts services, and installs a secure auto-renewal deploy-hook.

---

## Access

| URL | Purpose |
|-----|---------|
| `https://<server-ip>:8083/` | HestiaCP Control Panel (HTTPS) |
| `http://<server-ip>/` | Default HTTP website landing page |
| `https://<server-ip>/` | Default HTTPS website landing page |
---

## Credentials

All credentials generated during deployment are stored in:

```bash
cat /root/.app_passwords
```

| Field | Description |
|-------|-------------|
| `HESTIA_ADMIN_PASSWORD` | Randomized admin password generated securely on first boot |

To view the first boot setup logs:

```bash
cat /var/log/cloud-init-output.log
```

---

## Managing the Server

### Services

```bash
# Check service statuses
systemctl status nginx
systemctl status mariadb
systemctl status exim4
systemctl status dovecot
systemctl status fail2ban
systemctl status hestia

# Restart a service (e.g. Nginx)
systemctl restart nginx
```

### Running Health Checks

To run the built-in system validation and health check suite, execute:

```bash
prove /root/app_test/main.t
```

### Firewall

```bash
# View open ports and firewall status
ufw status verbose
```

### Logs

```bash
# View HestiaCP panel logs
tail -f /var/log/hestia/nginx-access.log
tail -f /var/log/hestia/nginx-error.log

# View Nginx web server error logs
tail -f /var/log/nginx/error.log

# View mail server logs (Exim4 & Dovecot)
journalctl -u exim4 -u dovecot -f
```

---

## Troubleshooting

### Panel URL not opening in browser

1. Verify that Nginx is running: `systemctl status nginx`
2. Verify that HestiaCP is running: `systemctl status hestia`
3. Check that the HestiaCP port 8083 is listening: `ss -tlnp | grep 8083`
4. Verify that the UFW firewall allows traffic on port 8083: `ufw status | grep 8083`
5. Make sure you are explicitly typing `https://` in the browser (e.g., `https://<ip>:8083/`).
### First boot did not run

If `/root/.app_passwords` does not exist or the password is not set, you can trigger the initialization script 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 again:

```bash
cat /root/.app_passwords
```

---

## Security

| Feature | Detail |
|---------|--------|
| Firewall | UFW enabled - only minimal essential ports open by default |
| SSH Security | Rate limited on port 22 to block brute force attempts |
| Dynamic Passwords | Never baked into the image - uniquely randomized at first boot |
| File Credentials | `/root/.app_passwords` is owned by `root:root` with secure permissions (`0600`) |
| Intrusion Prevention | Fail2ban monitors log files and automatically bans abusive IPs |
| HTTPS Panel | SSL encryption active by default on the control panel (port 8083) |

---

## Services

| Service | Port | Purpose |
|---------|------|---------|
| HestiaCP (Nginx) | 8083 | Web administration interface |
| OpenSSH | 22 | Secure remote server access |
| Nginx | 80 / 443 | Web server (HTTP / HTTPS) |
| Exim4 | 25 / 465 / 587 | Mail server (SMTP / SMTPS) |
| Dovecot | 110 / 995 / 143 / 993 | Mail server (POP3 / POP3S / IMAP / IMAPS) |
| MariaDB | 3306 | Local SQL Database (internal only) |

---

## Links

- Manage: [https://<server-ip>:8083/](https://<server-ip>:8083/)
- HestiaCP Official Website: [https://hestiacp.com/](https://hestiacp.com/)
- HestiaCP Documentation: [https://docs.hestiacp.com/](https://docs.hestiacp.com/)
- Ubuntu 24.04 LTS Release Notes: [https://wiki.ubuntu.com/NobleNumbat/ReleaseNotes](https://wiki.ubuntu.com/NobleNumbat/ReleaseNotes)

Loading...