Loading...

Knowledge Base

Purchase a HostGator Self-Managed VPS with WebAdmin Installation

Manage your OpenLiteSpeed server with WebAdmin, a web-based interface that simplifies server configuration. You can use the WebAdmin dashboard to manage virtual hosts, listeners, SSL certificates, PHP settings, rewrite rules, and other web server features. WebAdmin allows you to manage common server settings through a web-based interface instead of manually editing configuration files. Whether you're hosting a single website or multiple websites on your VPS, it provides a convenient way to configure and maintain your OpenLiteSpeed server. With a Self-Managed VPS, you're responsible for configuring, maintaining, updating, and securing your server, your OpenLiteSpeed installation, and the websites you host.

Key Benefits of WebAdmin

WebAdmin provides tools that make it easier to configure and manage your OpenLiteSpeed server from a single location.

  • Centralized Server Management: Manage virtual hosts, listeners, PHP settings, SSL certificates, and other OpenLiteSpeed configurations from a single dashboard.
  • Easy Virtual Host Configuration: Create and configure virtual hosts to host multiple websites on your server.
  • SSL Configuration: Set up SSL certificates and secure listeners to help protect connections to your websites.
  • PHP Configuration: Configure PHP applications and adjust PHP settings for your server or individual virtual hosts.
  • Flexible Server Settings: Customize rewrite rules, external applications, listeners, and other OpenLiteSpeed settings based on your website requirements.
  • Reverse Proxy Support: Configure OpenLiteSpeed to route requests to backend applications or other servers as needed.

What Can You Do with WebAdmin?

WebAdmin provides the tools you need to configure your OpenLiteSpeed server and manage how your websites and applications are delivered.

  • Manage Virtual Hosts: Create and configure virtual hosts for your websites, including document roots, rewrite settings, and other website-specific options.
  • Configure Listeners: Create and manage HTTP and HTTPS listeners and associate them with your virtual hosts.
  • Set Up SSL: Configure SSL certificates for your websites and secure HTTPS connections. OpenLiteSpeed also supports automatic certificate management through ACME.
  • Manage PHP Settings: Configure PHP applications and adjust PHP settings for your server or individual websites.
  • Configure Rewrite Rules: Set up rewrite rules to control how requests are processed and routed for your websites.
  • Configure Environment Variables: Add custom environment variables that your applications may require to run properly.
  • Set Up Reverse Proxy: Configure reverse proxy settings to direct requests to backend applications or servers.
  • Manage Virtual Host Templates: Create and manage templates to help maintain consistent configurations across multiple virtual hosts.
  • Apply Server Configuration Changes: Save your settings and apply configuration changes when updating your OpenLiteSpeed environment.

Using WebAdmin on a HostGator Self-Managed VPS provides a centralized interface for configuring and maintaining your OpenLiteSpeed server. You can manage virtual hosts, listeners, SSL certificates, PHP settings, rewrite rules, and other web server configurations while maintaining full control over your VPS environment.

How to Purchase a Self-Managed VPS with WebAdmin

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

        Self-Managed VPS - cPanel Software
         

      3. In the pop-up, click Confirm.

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

Configuring and Managing Your OpenLiteSpeed WebAdmin Panel

This is your step-by-step guide for accessing, signing in to, and managing your WebAdmin console.

Step 1: Reach Your WebAdmin Dashboard

Once installation is finished:

  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 server via SSH.
    Using your server's IP address and login details, connect through an SSH client, then follow the prompts and type in your root password when requested:
    ssh root@your_server_ip

    Example Output:

    Welcome to Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-124-generic x86_64)
    ********************************************************************************
      OpenLiteSpeed WebAdmin
    
      URL:      https://12.3.456.78:7080
      Username: admin
      Password:testpassJxGPmkQQAuXrCp2odx
    
      Firewall: ports 22, 80, 443, 7080 open (all others blocked)
    
      Key paths:
        Config:    /usr/local/lsws/conf/httpd_config.conf
        Passwords: /root/.app_passwords
        Readme:    /root/README.md
    
      Useful commands:
        systemctl status lshttpd       # Check service status
        systemctl restart lshttpd      # Restart OpenLiteSpeed
        grep WEBADMIN_PASSWORD /root/.app_passwords
    
      To remove this message:
        rm -f /etc/update-motd.d/99-webadmin
    ********************************************************************************
  2. If you'd like a quick way to view the server's deployment notes right from the terminal, display the original README file with this command:
    cat /root/README.md

Step 2: Find Your Admin Password

For security purposes, a temporary administrator password is automatically generated at random the first time your server boots up. You can locate this password in either of two ways:

  • Option A: Sign in to your server through SSH. Your password will show up automatically in the login message (MOTD).
  • Option B: Enter the following command in your terminal to open the password file:
    grep WEBADMIN_PASSWORD /root/.app_passwords

    Example Output:

    root@11-1-111-11:~# grep WEBADMIN_PASSWORD /root/.app_passwords
    WEBADMIN_PASSWORD=testpassJxGPmkQQAuXrCp2odx

Step 3: Confirm OpenLiteSpeed Is Active

Before attempting to open the web interface, confirm that the OpenLiteSpeed service (lshttpd) is up and listening.

Run this status check:

systemctl status lshttpd
  • If it is active (running): You're all set!

    Example Output:

    root@12-3-456-78:~# systemctl status lshttpd
    ● lshttpd.service - OpenLiteSpeed HTTP Server
         Loaded: loaded (/etc/systemd/system/lshttpd.service; enabled; preset: enabled)
         Active: active (running) since Fri 2026-07-10 17:30:15 UTC; 53min ago
        Process: 1033 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)
       Main PID: 1047 (litespeed)
         CGroup: /system.slice/lshttpd.service
                 ├─1047 "openlitespeed (lshttpd - main)"
                 ├─1048 "openlitespeed (lscgid)"
                 ├─1049 "openlitespeed (lshttpd - #01)"
                 └─1050 "openlitespeed (lshttpd - #02)"
    
    Jul 10 17:30:12 12-3-456-78.example.com systemd[1]: Starting lshttpd.service - OpenLiteSpeed HTTP Server...
    Jul 10 17:30:12 12-3-456-78.example.com lswsctrl[1033]: [OK] Send SIGUSR1 to 763
    Jul 10 17:30:15 12-3-456-78.example.com systemd[1]: Started lshttpd.service - OpenLiteSpeed HTTP Server.
  • If it is inactive or failed: Get it running with:
    systemctl start lshttpd

If WebAdmin still won't load: Manually run the first-boot initialization script to confirm everything's configured correctly:

sudo bash /var/lib/cloud/scripts/per-instance/001_onboot

Step 4: Sign In to the WebAdmin Console

With your password in hand, you're ready to access the management interface.

  1. Launch your web browser.
  2. Go to your server's IP address on port 7080 using HTTPS:
    https://<your-server-ip>:7080
  3. Your browser may show a "not private" warning because WebAdmin 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.

    Self-Managed VPS - WebAdmin Browser Security Warning
     

  4. Sign in with these credentials:
    • Username: admin
    • Password: (the password you found in Step 2)

    HG CP - WebAdmin log in
     

Step 5: Change Your Password

Should you ever need to change your WebAdmin console password, run this script and follow the prompts shown on screen:

/usr/local/lsws/admin/misc/admpass.sh

Example Output:

root@12-3-456-78:~# /usr/local/lsws/admin/misc/admpass.sh

Please specify the user name of administrator.
This is the user name required to login the administration Web interface.

User name [admin]: newadmin

Please specify the administrator's password.
This is the password required to login the administration Web interface.

Password: 
Retype password: 
Administrator's username/password is updated successfully!

After Setup: Recommended Best Practices

Now that you're logged in, here are a few quick housekeeping steps to lock down your environment:

Keep an Eye on Live Logs

Keep an eye on server errors and application activity in real time using these commands:

  • View server errors:
tail -f /usr/local/lsws/logs/error.log
  • View WebAdmin traffic:
tail -f /var/log/webadmin/webadmin.log

Review Your Firewall Settings

Confirm that UFW (Uncomplicated Firewall) is turned on and guarding your ports by running:

ufw status verbose

(By default, your setup should only allow access through ports 22, 80, 443, and 7080, blocking everything else).

Remove the Login Banner

After you've stored your password somewhere safe, you can remove the SSH login MOTD banner so your credentials stop appearing every time you SSH in:

rm -f /etc/update-motd.d/99-webadmin

Additional Information and Examples

You can run cat /root/README.md to see more information and useful commands:

Example Output:
root@11-1-111-11:~# cat /root/README.md
# WebAdmin

## Description

WebAdmin is OpenLiteSpeed's built-in management interface that lets you configure, monitor, and control your web server settings through a browser.

It provides access to virtual host configuration, SSL management, rewrite rules, and real-time performance statistics, making it easier to administer your OpenLiteSpeed server without editing configuration files manually.

---

## Services

| Service | Port | Purpose |
|---------|------|---------|
| WebAdmin UI | 7080 | Management console (HTTPS) |
| OpenSSH | 22 | Remote access |

Ports are protected using UFW.

---

## How-to-use

### 1. Get your password

```bash
grep WEBADMIN_PASSWORD /root/.app_passwords
```

The password is also shown automatically in the SSH login MOTD.

### 2. Open WebAdmin

After the instance boots, open your browser and go to:

| URL | Purpose |
|-----|---------|
| `https://server-ip:7080` | WebAdmin management console |

Login with **username:** `admin` and the password retrieved above. Accept the self-signed certificate warning.

### 3. If WebAdmin is not accessible after boot

Run the first-boot script manually:

```bash
sudo bash /var/lib/cloud/scripts/per-instance/001_onboot
```

---

## Manage

### OpenLiteSpeed service

```bash
systemctl status lshttpd
systemctl restart lshttpd
systemctl stop lshttpd
```

### Reset WebAdmin password

```bash
/usr/local/lsws/admin/misc/admpass.sh
```

### UFW Firewall

```bash
ufw status verbose
```

### Logs

```bash
tail -f /usr/local/lsws/logs/error.log
tail -f /var/log/webadmin/webadmin.log
journalctl -u lshttpd -f
cat /var/log/cloud-init-output.log
```

---

## Security hardening

| Hardening | Detail |
|-----------|--------|
| UFW firewall | Ports 22, 80, 443, 7080 open. Default deny all incoming |
| SSH rate limiting | Port 22 set to LIMIT - brute force protection |
| Admin password | Never baked into image - generated randomly at first boot |
| Credentials file | `/root/.app_passwords` mode `0600` - root read only |
| WebAdmin TLS | Console served over HTTPS on port 7080 |

---

## Configuration files reference

| File | Purpose | Permissions |
|------|---------|-------------|
| `/usr/local/lsws/conf/httpd_config.conf` | OpenLiteSpeed main config | `0644` |
| `/root/.app_passwords` | Generated admin credentials | `0600` |
| `/var/lib/cloud/scripts/per-instance/001_onboot` | First-boot script | `0755` |
| `/etc/update-motd.d/99-webadmin` | MOTD with credentials on login | `0755` |
| `/etc/logrotate.d/webadmin` | Log rotation config | `0644` |

---

## Notes

- Admin password is never baked into the image - generated fresh on first boot and saved to `/root/.app_passwords`.
- WebAdmin uses a self-signed TLS certificate by default - replace with a valid cert for production.
- Configure HTTP (port 80) and HTTPS (port 443) listeners inside WebAdmin for production use.
- Remove the MOTD once no longer needed: `rm -f /etc/update-motd.d/99-webadmin`

---

## Links

- Manage: [Manage](https://localhost:7080/)
- OpenLiteSpeed Documentation: [https://openlitespeed.org/kb/](https://openlitespeed.org/kb/)
- WebAdmin Console Guide: [https://openlitespeed.org/kb/admin-console/](https://openlitespeed.org/kb/admin-console/)
- Ubuntu 24.04 LTS Release Notes: [https://wiki.ubuntu.com/NobleNumbat/ReleaseNotes](https://wiki.ubuntu.com/NobleNumbat

Loading...