Loading...

Knowledge Base

Purchase a HostGator Self-Managed VPS with Moodle Installation

Moodle (Modular Object-Oriented Dynamic Learning Environment) is a robust, secure, and integrated platform designed to create personalized online learning environments. Whether you are managing a small classroom or a large-scale corporate training program, Moodle provides the flexibility to scale and adapt to your needs.

Key Benefits of Moodle

You get Moodle for free, so your only real costs are hosting, customization, and upkeep. You can shape the platform to fit your needs: change course structures, adjust user roles and permissions, and add plugins for gamification, analytics, or other integrations. Moodle scales with you too, whether you're running a small training group or serving thousands of learners at once. A large, active global community keeps it updated and secure, and shares resources you can draw on. You can run self-paced courses, live sessions, or a mix of both, all optimized for mobile. And with built-in quizzes, assignments, gradebooks, and analytics, you track performance and outcomes without bolting on extra tools.

What You Can Do With Moodle

Moodle covers the full range of teaching and training, from a single classroom to an organization-wide program:

  • Online Course Delivery: Build and run fully online courses with videos, presentations, documents, and interactive activities.
  • Blended Learning: Combine classroom teaching with online resources, assignments, and discussions.
  • Corporate Training and Development: Train employees, onboard new hires, and standardize professional development while tracking progress.
  • Assessment and Evaluation: Run quizzes, exams, and assignments with automated grading, feedback, and detailed analytics.
  • Collaboration and Communication: Use forums, chats, and messaging for group work and peer learning.
  • Certification and Compliance Training: Deliver compliance training and issue certificates on completion, ideal for regulated industries.
  • Remote and Distance Learning: Reach learners anywhere with mobile-friendly, remote-ready courses.
  • Knowledge Management: Store, organize, and reuse learning materials in one central place.

However you plan to teach or train, Moodle gives you the tools to run it your way.

How to Purchase a Self-Managed VPS with Moodle Installation

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

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!
  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 Application tab.
      2. Choose Moodle.

        Self-Managed VPS - Moodle Software
         

      3. In the pop-up, click Confirm.

        Self-Managed VPS - Moodle -Confirm
         

  5. Support & Security:

    You can add Premium Support here for faster help and quicker replies. This is Optional.

    Self-Managed VPS - Premium Support
     

  6. AI Credits:

    Add a HostGator AI Credits package to connect your application to top LLM providers through one API key and a single bill. This step is optional.

    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 changes based on how many you add.
    • 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- Order Summary
     

  9. Check your HostGator cart. Remove any add-ons 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.

Preparing Your HostGator VPS for Moodle

Work through these steps to finish your initial setup.

Step 1: Log In to Your Server

  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
     

Step 2: Retrieve Initial Admin Credentials

Your Moodle server generates secure credentials automatically during installation, and stores them locally for you to retrieve.

  1. Connect to your VPS via SSH.

    Open a terminal (or an SSH client like PuTTY) and log in as the administrator using your server's public IP address. Replace your_server_ip with your actual server IP address.

    ssh root@your_server_ip

    Follow the prompts and enter the new root password you set in the step above.

  2. Once you're logged in, the server greets you with a welcome message that includes:
    • The Moodle administrator username (admin)
    • The Moodle login URL
    • Where your generated passwords are stored (/root/.app_passwords)

    Example Output:

    
    Welcome to Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-111-generic x86_64)
    ********************************************************************************
    
    The UFW firewall is enabled.
    All ports are BLOCKED except 22 (SSH), 80 (HTTP), and 443 (HTTPS).
    
    You can access Moodle at:
    https://12.3.456.789/login/index.php
    User: admin
    Password is saved in /root/.app_passwords
    
    To change your site to load under a domain instead of an ip, on the server run:
    /root/domain-change
    
    For more details please see /root/README.md
    
    ********************************************************************************
    To delete this message of the day: rm -rf /etc/update-motd.d/99-moodle
    
    

Step 3: Open the Moodle Management Interface

With your administrator credentials in hand, you're ready to open the Moodle dashboard.

  1. Open a web browser and go to the Moodle URL from your server's welcome message: https://your-server-ip/login/index.php Example: 
    https://12.3.456.789/login/index.php
  2. On the login screen, enter:
    • Username: admin
    • Password: The value of moodle_admin_pass from cat /root/.app_passwords
  3. Click Log in.

    Self-Managed Moodle Log in Page
     

Step 4: Update the System Password

Moodle makes you swap out that temporary password the first time you log in, as a security measure.

  1. Enter your current password.
  2. Create a new administrator password.
  3. Confirm the new password.
  4. Click Save changes.

    Self-Managed Moodle Reset Password Page
     

Step 5: Complete Your Profile Setup

Once your password's updated, Moodle asks you to fill in your account details.

  1. Fill in the required fields, including:
    • First Name
    • Last Name
    • Email Address
  2. Scroll to the bottom of the page, then click Update profile.

    Self-Managed Moodle Update Profile Page
     

You'll see a confirmation message once your profile updates successfully.

What's Next: Point a Domain to Your Site

Out of the box, Moodle answers to your server's public IP address.

Ready to switch over to your own domain name? Connect to your server over SSH and run:

/root/domain-change

Follow the prompts to point Moodle's configuration at your domain. Once it's done, your custom domain replaces the server IP for accessing your learning platform.

Why a Domain Name is Important

  • Security: A domain lets you get a free SSL certificate, which clears the "Not Secure" browser warning and encrypts login data.
  • User Experience: A web address (like learning.yourcompany.com) is far easier to remember and share than an IP address (like 50.6.230.166).
  • Email Reliability: Stick with just an IP address, and Moodle's automated emails (like password resets) will likely get blocked or land in spam with providers like Gmail.
  • Flexibility: Move or upgrade your server later, and your IP changes. A domain name stays constant, so your users never lose access.

An IP address works fine while you're testing privately. Once you're ready to bring in real learners, connect a domain.

Additional Information and Examples

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

Example Output:

# Moodle

## Description

Moodle is a robust, secure, and integrated platform designed to create personalized online learning environments. Whether you are managing a small classroom or a large-scale corporate training program, Moodle provides the flexibility to scale and adapt to your needs.

### Key Features
*   **Comprehensive Course Toolkit**: Build interactive courses with quizzes, assignments, forums, and wikis.
*   **Flexible & Customizable**: Personalize your site with custom themes and extend functionality via a massive plugin library.
*   **User-Friendly Management**: Access a personalized dashboard and use drag-and-drop tools to organize content easily.
*   **Powerful Progress Tracking**: Monitor learner performance with advanced grading, automated reporting, and analytics.
*   **Mobile-Ready**: A fully responsive interface and dedicated mobile app allow for learning anywhere, anytime.


## Services

Service         | Ports | Purpose
----------------|-------|---------
OpenSSH         | 22    | SSH
nginx           | 80/443| Website access

Ports are protected using ufw.


## How-to-use

Post installation the password for mysql and the moodle admin password will be stored in /root/.app_passwords.

The site will be installed and configured on an ip address. When you access the server via the console there will be instructions on how to run a script to change the site over to the domain of your choosing.

## Links

Documentation: [https://docs.moodle.org/501/en/Main_page](https://docs.moodle.org/501/en/Main_page)

Loading...