Loading...

Knowledge Base

Purchase a HostGator Self-Managed VPS with Odoo Installation

Odoo is an all-in-one business management suite built to bring sales, operations, accounting, and more under a single roof. Its collection of connected apps, including CRM, invoicing, inventory, eCommerce, and HR, lets you cut down on manual work, get a clearer view across departments, and run day-to-day operations from one unified system.

This install includes Odoo 17 and is configured to use a local PostgreSQL backend and a Python virtual environment.

Key Benefits of Odoo

Staying competitive today means cutting out the busywork wherever you can. Odoo helps with that by consolidating your business data and workflows into a single system instead of scattering them across disconnected tools. That consolidation cuts down on manual errors, keeps teams working from the same information, and makes it easier for departments to stay in sync as your operation grows.

What You Can Do With Odoo

Odoo's application suite supports a wide range of day-to-day business needs, including:

  • CRM and Sales Management: Track leads, manage customer relationships, and put sales workflows on autopilot.
  • Inventory and Warehouse: Keep tabs on stock levels, speed up order fulfillment, and fine-tune your supply chain.
  • Accounting and Finance: Handle invoicing, payments, and financial reporting without the manual busywork.
  • Human Resources: Manage employee records, payroll, hiring, and performance reviews in one place.
  • E-commerce: Launch an online store that stays connected to the rest of your business operations.
  • Manufacturing: Schedule production, track work orders, and keep quality control on track.

With this range of built-in apps, Odoo adapts to how your business actually runs rather than forcing you into a rigid, one-size-fits-all workflow.

How to Purchase a Self-Managed VPS with Odoo Installation

To use Odoo 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 Odoo.

        Self-Managed VPS - Odoo Software
         

      3. In the pop-up, click Confirm.

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

Configuring Odoo on Your HostGator VPS

Once installation is complete, continue with the steps below to configure and start using the application.

  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. Log in to your server via SSH.
    When you log in to your server for the first time via SSH, you're greeted with a welcome message that includes all the essential commands and instructions for setting up Odoo.
    ssh root@your_server_ip

    Example Output:

    
    Welcome to Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-111-generic x86_64)
    ********************************************************************************
    
    Odoo is running on this server.
    
    The UFW firewall is enabled.
    All ports are BLOCKED except 22 (SSH), 80 (HTTP), 443 (HTTPS), and 8069 (Odoo).
    
    In a web browser, you can access Odoo at:
     * Direct Odoo URL: http://12.1.1.1320:8069
    
    First-time setup notes:
     * Odoo will show a "Create Database" screen on first access
     * The Odoo Master Password is stored in: /root/.app_passwords
    
    Use the following guidance on the setup screen:
     * Master Password:
          Use the value shown above or retrieve it with:
          grep ODOO_MASTER_PASSWORD /root/.app_passwords
     * Database Name:
          Choose a name such as: odoo_prod
     * Email:
          This becomes the first Odoo administrator login
     * Password:
          This becomes the first Odoo administrator password
     * Load Demonstration Data:
          Leave UNCHECKED for production use
    
    Important locations on the server:
     * Odoo config: /etc/odoo/odoo.conf
     * Odoo log:    /var/log/odoo/odoo.log
     * Passwords:   /root/.app_passwords
    
    Helpful commands:
        systemctl status odoo                  # Check Odoo service status
        systemctl restart odoo                 # Restart Odoo service
        tail -100 /var/log/odoo/odoo.log       # View recent Odoo logs
    
    For more details please refer /root/README.md
    
    To delete this message of the day:  rm -f /etc/update-motd.d/99-odoo
    
        
  2. See full server documentation (recommended):
    Run the following to view all useful info about your Odoo server:
    cat /root/README.md
  3. First-time browser access: create your Odoo instance and database.
    1. Open your browser and go to:
      http://server_ip:8069
    2. On the "Create Database" screen, fill out:
      • Master Password: Get the value with
        grep ODOO_MASTER_PASSWORD /root/.app_passwords
        Example Output:
        
        ODOO_MASTER_PASSWORD="abc123456aa979cdbe977d89d2285e0"
                    
      • Database Name: Example: odoo_prod
      • Email & Password: These become your Odoo admin login.
      • Load Demonstration Data: Leave UNCHECKED for production.
      • Click Create database

        Self-Managed VPS - Odoo Web UI - Create Database
         

  4. Check Odoo and related service status:
    • Check Odoo:
      systemctl status odoo
      Example Output:
      
      ● odoo.service - Odoo Open Source ERP and CRM
         Loaded: loaded (/etc/systemd/system/odoo.service; enabled; vendor preset: enabled)
         Active: active (running)
              
    • Check PostgreSQL:
      systemctl status postgresql
      Example Output:
      
      ● postgresql.service - PostgreSQL RDBMS
         Loaded: loaded (/lib/systemd/system/postgresql.service; enabled)
         Active: active (exited)
              
    • Check Nginx:
      systemctl status nginx
      Example Output:
      
      ● nginx.service - A high performance web server
         Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
         Active: active (running)
              
  5. To verify logs or troubleshoot:
    tail -100 /var/log/odoo/odoo.log
    Example Output:
    
    2024-06-05 11:53:21,340 340 INFO odoo_prod odoo.addons.base: Base setup ready.
    2024-06-05 11:53:21,401 340 INFO odoo_prod odoo.service.server: Server running...
        
    journalctl -u odoo -n 100 --no-pager
  6. Show or retrieve the master password:
    grep ODOO_MASTER_PASSWORD /root/.app_passwords
    Example Output:
    
    ODOO_MASTER_PASSWORD="w92iq8f9d17b2ab40eaa979cdbe977d89d2285e0"
        
  7. Validation test (optional):
    prove /root/app_test/main.t
    Example Output:
    
    /root/app_test/main.t .. ok
    All tests successful.
    Files=1, Tests=8,  1 wallclock secs ( 0.04 usr  0.01 sys +  0.13 cusr  0.04 csys =  0.22 CPU)
    Result: PASS
        

Helpful Notes and Resources

  • The Odoo master password is the database manager password (for creating/restoring databases), and is different from your Odoo admin login password.
  • Odoo runs on port 8069. Nginx is enabled by default; to set up a secure reverse proxy, see Odoo HTTPS Deployment Docs.
  • Odoo Documentation

Additional Information and Examples

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

Example Output:

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

## Description

Odoo is an all-in-one business management platform that helps you
manage sales, operations, accounting, and more in one place. It offers
a wide range of integrated applications such as CRM, invoicing,
inventory, eCommerce, and HR, allowing you to streamline processes,
improve visibility, and run your entire business more efficiently from
a unified platform.

This install includes Odoo 17 and is configured to use a local
PostgreSQL backend and a Python virtual environment.

The image is built from Ubuntu cloud image sources, installs required
packages, clones the Odoo 17 source tree, creates an isolated virtualenv,
and configures systemd, UFW, and first-boot initialization.

## Image contents

This template installs and configures:

* Odoo 17 from the official GitHub repository (`branch 17.0`)
* PostgreSQL local database service
* Nginx web server
* UFW firewall rules for SSH, HTTP, HTTPS, and Odoo
* Python 3 virtual environment under `/opt/odoo/venv`
* Odoo config at `/etc/odoo/odoo.conf`
* Odoo logs at `/var/log/odoo/odoo.log`
* First-boot injection script at `/var/lib/cloud/scripts/per-instance/001_onboot`
* App password store at `/root/.app_passwords`

## Services

Service     | Ports     | Purpose
----------- | --------- | -----------------------------------------------------------
Odoo        | 8069      | Primary Odoo HTTP interface
PostgreSQL  | local     | Database backend for Odoo
Nginx       | 80, 443   | Installed and enabled, but Odoo is exposed directly on 8069
OpenSSH     | 22        | Remote access

Ports are protected using UFW.

## Odoo configuration

The default Odoo configuration file is `/etc/odoo/odoo.conf`.

Key settings include:

* `admin_passwd = CHANGE_ME_ON_FIRST_BOOT` - replaced at first boot by the
  per-instance cloud-init script
* `db_host = False` and `db_port = False` - use local PostgreSQL
* `db_user = odoo`
* `addons_path = /opt/odoo/odoo-server/addons,/opt/odoo/custom-addons`
* `logfile = /var/log/odoo/odoo.log`
* `xmlrpc_port = 8069`
* `proxy_mode = True`
* `data_dir = /opt/odoo/.local/share/Odoo`

The systemd service unit is `/etc/systemd/system/odoo.service` and starts Odoo
as the `odoo` user from the source tree.

## First boot behavior

On the first boot, the cloud-init per-instance script
`/var/lib/cloud/scripts/per-instance/001_onboot`:

* generates a random `ODOO_MASTER_PASSWORD`
* stores it securely in `/root/.app_passwords`
* updates `/etc/odoo/odoo.conf`
* ensures runtime directories exist and are owned by `odoo`
* waits for PostgreSQL readiness
* restarts Odoo

This guarantees that no master password is baked into the image.

## First-time access (How-to-use)

After the VM boots, access Odoo at:

* `http://server-ip:8069`

On the first screen, create the first database using:

* Master Password: value from `/root/.app_passwords`
* Database Name: any name you choose
* Email: Odoo administrator login email
* Password: Odoo administrator login password

## Useful commands

* Check Odoo service:
  `systemctl status odoo`
* Check PostgreSQL service:
  `systemctl status postgresql`
* Check Nginx service:
  `systemctl status nginx`
* View Odoo logs:
  `tail -100 /var/log/odoo/odoo.log`
* View systemd logs:
  `journalctl -u odoo -n 100 --no-pager`
* Show current master password:
  `grep ODOO_MASTER_PASSWORD /root/.app_passwords`

## Validation tests

The template includes a validation script at `/root/app_test/main.t` that checks:

* `postgresql`, `nginx`, and `odoo` are enabled
* `/etc/odoo/odoo.conf` exists
* `/etc/systemd/system/odoo.service` exists
* first-boot script exists and is executable
* Odoo is active and listening on port 8069

## Notes

* The Odoo master password is the database manager password.
* It is different from the Odoo administrator password you create in the UI.
* Nginx is installed and enabled, but this starter image exposes Odoo directly
  on port 8069.
* A reverse proxy can be added later if desired. See https://www.odoo.com/documentation/17.0/administration/on_premise/deploy.html#https for how to do this.

## Links

* Manage: [http://{server_ip}:8069](http://{server_ip}:8069)
* Documentation: [https://www.odoo.com/documentation/17.0/](https://www.odoo.com/documentation/17.0/)root@server-646875:~#

Loading...