Purchase a HostGator Self-Managed VPS with Ollama Installation
Run and manage open AI models with Ollama, an open-source platform that makes it easier to run language models locally or within your own environment. Ollama provides access to a library of models for tasks such as text generation, coding, reasoning, vision, and embeddings.
Ollama also provides an API that allows applications and development tools to communicate with the models you run. You can download and manage models, generate text and chat responses, process images with supported multimodal models, create embeddings, use tool calling, and generate structured outputs. Because models run on your server, your prompts and data stay on your VPS. HostGator Self-Managed VPS plans don't include dedicated GPUs, so models run on the CPU, and larger models may respond slowly. With a Self-Managed VPS, you're responsible for configuring, maintaining, updating, and securing your server, your Ollama installation, and access to its API.
Key Benefits of Ollama
Ollama provides tools for running, managing, and integrating AI models into your applications and workflows.
- Run Open Models: Download and run supported open models directly within your own environment.
- Model Library: Choose from models designed for a variety of use cases, including coding, vision, embeddings, and reasoning.
- Local Model Management: Pull, create, copy, list, inspect, and delete models through Ollama's API.
- Chat and Text Generation: Generate responses from prompts or maintain conversations using the chat API.
- Multimodal Support: Send images to models that support image input for tasks involving visual content.
- Tool Calling: Allow supported models to request external tools or functions as part of a conversation.
- Embeddings: Generate vector embeddings from text for applications that use semantic search or other embedding-based workflows.
- Structured Outputs: Configure models to return responses in JSON format or according to a defined JSON schema.
- API Integration: Connect applications, coding tools, and other services to Ollama through its API and supported libraries.
What Can You Do with Ollama?
Ollama provides the tools you need to run AI models and connect them to your applications and workflows. With Ollama, you can:
- Run AI Models: Download and run supported models for text generation, coding, reasoning, vision, and other tasks.
- Generate Text: Send prompts to a model and generate responses using the Ollama API.
- Chat with Models: Create conversational interactions using chat messages and conversation history.
- Process Images: Send images to compatible multimodal models for image-based tasks.
- Manage Models: Pull, list, inspect, copy, create, and delete models using Ollama's model management capabilities.
- Create Custom Models: Build customized models using existing models, model files, adapters, system prompts, templates, and other supported settings.
- Generate Embeddings: Convert text into vector embeddings for applications that require semantic search or similar capabilities.
- Use Tool Calling: Connect supported models with external tools and functions that can be invoked during a conversation.
- Generate Structured Responses: Return model responses in JSON format or according to a specified JSON schema.
- Control Model Settings: Configure supported generation settings, such as temperature, context length, and the number of generated tokens.
- Integrate AI Models with Applications: Use Ollama's API, Python library, JavaScript library, or compatible integrations to add AI-powered capabilities to your applications.
Ollama on a HostGator Self-Managed VPS provides an environment for running and integrating open AI models with your applications and workflows. From managing models and generating responses to processing images, creating embeddings, using tools, and generating structured outputs, Ollama provides the capabilities needed to build AI-powered solutions while maintaining full control over your environment.
System Requirements
Before deploying, ensure your server meets the requirements below. For a stable production deployment, we recommend using higher specifications than the Approximate Size requirements.
Important:
- Do not purchase a server that only meets Approximate Size requirements. The Approximate Size specifications represent the software's bare survival threshold and do not account for operating system overhead or production workloads. Running with minimal resources can result in severe performance slowdowns, system freezes, or unexpected crashes during traffic spikes.
- For a stable deployment, we recommend allocating additional resources beyond basic installation levels, especially if you plan to store recordings, logs, or other application data.
Recommended Plans:
Ollama AI Model Storage Requirements
Ensure your server has sufficient disk space available to download and store the specific AI models you plan to run locally in Ollama:
| AI Model | Approximate Size | Description |
|---|---|---|
| TinyLlama | 637 MB | The starter model that comes pre-downloaded on first boot. |
| Llama 3.2 | 2 GB | A slightly larger, more capable model example. |
| 7B Parameter Models | 4 – 8 GB | The general disk space range required for standard 7-billion-parameter models. |
How to Purchase a Self-Managed VPS with Ollama

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
To use Ollama on HostGator, you first need to buy a Self-Managed VPS plan. Here is how to do it:
- Open https://www.hostgator.com/vps-hosting in your browser.
- Pick the plan you want and click Choose Plan.

Important: Pricing is subject to change—please visit https://www.hostgator.com/vps-hosting for the current introductory/sign-up offer for HostGator Self-Managed VPS Hosting. For the most up-to-date renewal pricing, visit your Customer Portal Renewal Center.
- Pick a Data Center location.

- On the Cart page, you can set up your server the way you want:
- Hardware:
- Pre-selected:
You can change to a different Self-Managed VPS plan here.

- Configure:
Click Configure if you want to build your own custom package.
Note: any changes you make here will change the total price.

- Pre-selected:
- Software:
The app will be grayed out if your selected plan does not meet its minimum requirements.
- Click the Application tab.
- Choose Ollama.

- In the pop-up, click Confirm.

- Hardware:
- 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.

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

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

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

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

- On the Checkout page, do the following:
If you are new to HostGator:
- Fill in your billing information and contact details. If you don't want marketing emails, uncheck the box at the bottom.

- Create a password for your account.

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

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.

- Fill in your billing information and contact details. If you don't want marketing emails, uncheck the box at the bottom.
- 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.

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.
How to Use Ollama
After the installation completes, follow the steps below to set up your application.
- Log in to your Customer Portal.
- From the left-hand menu, navigate to Hosting and select My Plans.

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

- Click the Reset Password button.

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

- Connect to your VPS via SSH.
Open your computer's terminal (or an SSH client like PuTTY) and run the following command to log into your server as the administrator, using your server's public IP address:Replaceyour_server_ipwith your actual server IP address.
Follow the prompts and enter the new root password you created in the step above.ssh root@your_server_ipExample Output:
Welcome to Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-111-generic x86_64) ******************************************************************************** Ollama is running on this server. The UFW firewall is enabled. All ports are BLOCKED except 22 (SSH) and 11434 (Ollama API). API endpoint: http://localhost:11434 Common commands: ollama list # list downloaded models ollama pull llama3.2 # download a model (~2GB) ollama pull tinyllama # download a small starter model (~637MB) ollama run tinyllama # start an interactive chat session REST API examples: curl http://localhost:11434/api/version curl http://localhost:11434/api/tags curl -X POST http://localhost:11434/api/generate \ -d '{"model":"tinyllama","prompt":"Hello","stream":false}' On the server: Models are stored in /var/lib/ollama/.ollama/models Service config: /etc/systemd/system/ollama.service.d/override.conf For more details please see /root/README.md To delete this message of the day: rm -rf /etc/update-motd.d/99-ollama - Check installed and available models via the CLI.
Example Output:ollama list
NAME ID SIZE MODIFIED tinyllama sha256:e5562a3b… 637 MB 3 minutes ago - Pull a model (tinyllama is preinstalled on first boot):
Example Output:ollama pull llama3.2
pulling manifest pulling 2.0 GB model ... success - Start an interactive session with a model:
Example Output:ollama run tinyllama
>>> Hello, how can I help you today? (type /exit to quit) - Remove a model to free up disk space:
Example Output:ollama rm tinyllama
Deleted model 'tinyllama' - Interact with the Ollama REST API
Version numbers and dates in the example outputs may differ on your server.
- Check Ollama version:
Example Output:curl http://localhost:11434/api/version
{"version": "0.1.25"} - List available models (tags):
Example Output:curl http://localhost:11434/api/tags
{"models":[{"name":"tinyllama","modified_at":"2024-06-18T10:17:22.093Z"}]} - Generate a non-streaming completion:
Example Output:curl -X POST http://localhost:11434/api/generate -H 'Content-Type: application/json' -d '{"model":"tinyllama","prompt":"Why is the sky blue?","stream":false}'
{"response":"The sky looks blue because of the way sunlight interacts with Earth's atmosphere...","model":"tinyllama",...} - Start a chat session via API:
Example Output:curl -X POST http://localhost:11434/api/chat -H 'Content-Type: application/json' -d '{"model":"tinyllama","messages":[{"role":"user","content":"Hello"}]}'
{"message":{"role":"assistant","content":"Hello! How can I help you?"}, ...}
- Check Ollama version:
- Model storage location
Models are stored in/var/lib/ollama/.ollama/modelsBefore pulling large models, make sure you have sufficient disk space (7B models may need 4-8 GB free space).
- Service config and logs
- Service configuration is at
/etc/systemd/system/ollama.service.d/override.conf
- For logs or troubleshooting, see:
cat /root/README.md
- Service configuration is at
Links
Additional Information and Examples
You can run cat /root/README.md to see more information and useful commands:
Example Output:
root@12-1-1-123:~# cat /root/README.md
# Ollama
## Description
Ollama is a platform that lets you run and manage AI models locally on
your server with full control and privacy. It makes it easy to
download, deploy, and interact with large language models, enabling
you to build AI-powered applications, automate tasks, and process data
without relying on external services.
## Services
Service | Ports | Purpose
-----------|---------|---------
ollama API | 11434 |
OpenSSH | 22 | SSH
Ports are protected using ufw. Port 11434 is open to allow external API access.
## How-to-use
On first boot the image will automatically pull **tinyllama** (~637 MB) as a starter
model so the API is ready to use without any manual steps.
### Interacting via CLI
SSH into the server and use the `ollama` command:
```bash
ollama list # list downloaded models
ollama pull llama3.2 # pull a model (~2 GB)
ollama pull tinyllama # pull a small model (~637 MB)
ollama run tinyllama # start an interactive session
ollama rm tinyllama # remove a model
```
### Interacting via REST API
The API is accessible from outside the server on port 11434:
```bash
# Check version
curl http://localhost:11434/api/version
# List available models
curl http://localhost:11434/api/tags
# Generate a completion (non-streaming)
curl -X POST http://localhost:11434/api/generate \
-H 'Content-Type: application/json' \
-d '{"model":"tinyllama","prompt":"Why is the sky blue?","stream":false}'
# Chat endpoint
curl -X POST http://localhost:11434/api/chat \
-H 'Content-Type: application/json' \
-d '{"model":"tinyllama","messages":[{"role":"user","content":"Hello"}]}'
```
### Model storage
Models are stored in `/var/lib/ollama/.ollama/models`. Ensure your volume has
sufficient space before pulling large models (7B parameter models are typically 4-8 GB).
## Links
Documentation: [https://docs.ollama.com/](https://docs.ollama.com/)