Deploy Your First "Hello World" Website on a Momo Cloud VPS

TE
Technical Support 1
· May 24, 2026 · 7 min read

A friendly, step-by-step walkthrough for absolute beginners: order a Momo Cloud Ubuntu VPS, connect over SSH, install Nginx, publish a live Hello World page, attach a domain, and add free HTTPS.

Publishing your very first web page on a server you control is one of those small milestones that makes the whole world of self-hosting click into place. In this guide you will take a brand-new Momo Cloud VPS running Ubuntu, install a web server, and serve a simple Hello World page that anyone on the internet can visit.

No prior server experience is assumed. We will go step by step, exactly as the screens appear in cloud.momo.tz, and point out the safety nets along the way so you never feel stuck.

Step 1: Order Your VPS and Open the Server Detail Page

If you have not ordered a server yet, browse the VPS plans in the Momo Cloud client area, choose a plan and billing cycle, complete the order wizard, and pay the invoice with M-Pesa, Tigo Pesa, Airtel Money, Visa/Mastercard, or your wallet balance. Once payment clears, your VPS is provisioned automatically.

  1. Go to cloud.momo.tz and sign in with your account email and password.
  2. Find your new server in the server list and click it to open the server detail page.
  3. Note the IP Address — this is the public address of your server.
  4. Find the Root Password field and click the eye icon to reveal it. Copy it somewhere safe.
  5. Confirm the Operating System shows Ubuntu (22.04 or 24.04 LTS). This guide uses Ubuntu's apt package manager throughout.

Tip: Save your IP address and root password in a password manager straight away. You will need them every time you connect.

Step 2: Connect to Your Server

To run commands on your VPS you connect over SSH (Secure Shell). Pick the option that matches your computer.

macOS or Linux

Your machine already has an SSH client. Open the Terminal app and run the command below, replacing YOUR_SERVER_IP with the IP from the detail page:

ssh root@YOUR_SERVER_IP

The first time you connect, SSH asks you to confirm the server fingerprint — type yes and press Enter. Then paste your root password. Nothing appears as you type the password; that is normal. Press Enter.

Windows (PuTTY)

  1. Download and install PuTTY from putty.org.
  2. Open PuTTY, enter your server's IP in the Host Name field, leave the port at 22, and click Open.
  3. At the login as: prompt type root and press Enter, then paste your root password.

No SSH? Use the In-Browser Console

If you cannot get SSH working — perhaps a corporate network blocks port 22 — open your server in cloud.momo.tz and click the Console (VNC) button. This gives you a terminal directly in your browser, connected to the server screen. Everything in this guide works there too.

Tip: Treat the web Console as your recovery lifeline. If you ever lock yourself out over SSH later, this button gets you back in without any extra setup.

Step 3: Update the System First

A freshly provisioned server should be patched before you install anything else. Run:

apt update && apt upgrade -y

This refreshes the package lists and installs the latest security and bug-fix updates. It can take a minute or two on the first run. If you are prompted about restarting services, accept the defaults.

Step 4: Install Nginx and Open the Firewall

Nginx is a fast, lightweight web server and a great default for serving web pages. Install it with:

apt install nginx -y

Ubuntu ships with the ufw firewall. Before you switch it on, you must explicitly allow the traffic you need — otherwise you could lock yourself out of SSH. Run these three commands in order:

ufw allow OpenSSH
ufw allow 'Nginx Full'
ufw enable

Here is what each rule does:

RuleOpensWhy
OpenSSHPort 22Keeps your SSH connection alive
Nginx FullPorts 80 & 443Allows web traffic (HTTP and HTTPS)

When ufw enable warns that the command may disrupt existing connections, type y and press Enter. Because you allowed OpenSSH first, your session stays connected.

Warning: Always run ufw allow OpenSSH before ufw enable. If you skip it and your only access is SSH, you will be locked out — and your way back in is the web Console from Step 2.

Step 5: Create Your Hello World Page

Nginx serves files from /var/www/html by default, and it already placed a welcome page there. You will replace it with your own. The quickest way is a single heredoc command that writes the file in one go:

cat > /var/www/html/index.html <<'EOF'
<!DOCTYPE html>
<html lang="en">
<head><meta charset="utf-8"><title>Hello World</title></head>
<body>
  <h1>Hello World</h1>
  <p>Served from my Momo Cloud VPS.</p>
</body>
</html>
EOF

Prefer to edit by hand? Open the file in the nano text editor instead:

nano /var/www/html/index.html

Type or paste your HTML, then press Ctrl+O and Enter to save, and Ctrl+X to exit.

Step 6: View Your Page Live

Open a web browser and visit your server's IP address:

http://YOUR_SERVER_IP

You should see your Hello World heading rendered in the browser. That page is now being served from your own server, reachable by anyone on the internet. Congratulations — you are officially hosting.

Tip: If the page does not load, double-check the firewall with ufw status (port 80 should be allowed via "Nginx Full") and confirm Nginx is running with systemctl status nginx.

Step 7: Use a Real Domain Name

An IP address works, but visitors expect a name like example.co.tz. There are two ways to point a domain at your server.

Option A: Use Momo Cloud nameservers

At your domain registrar, set the domain's nameservers to:

ns1.momo.tz
ns2.momo.tz

Then create an A record for the domain in your Momo Cloud DNS that points to your server's IP.

Option B: Set an A record at your existing DNS

If you would rather keep your current DNS host, simply create or edit the A record for your domain so it points to YOUR_SERVER_IP.

Either way, DNS changes take time to spread across the internet — propagation can take up to 24 hours, though it is often much quicker. Once it resolves, http://yourdomain will load your page.

Step 8: Add Free HTTPS with Certbot

Modern browsers flag plain http:// sites as "Not Secure". A free Let's Encrypt certificate fixes that. Only do this once your domain points at the server (Step 7), because the certificate is issued against the domain name.

Install Certbot and its Nginx plugin:

apt install certbot python3-certbot-nginx -y

Then request and install the certificate:

certbot --nginx

Certbot asks for your email (for renewal reminders), the domain(s) to secure, and whether to redirect HTTP traffic to HTTPS — choose the redirect option. It edits your Nginx configuration automatically and reloads the server. Visit https://yourdomain and you should see the padlock.

Certbot installs a timer that renews the certificate automatically before it expires, so there is nothing further to do. You can confirm renewal works with:

certbot renew --dry-run

Tip: Before any big change — installing new software, editing core config, or running an upgrade — take a snapshot from your server's page in cloud.momo.tz. If something goes wrong, you can roll straight back to a known-good state.

Wrapping Up

You have ordered a VPS, connected to it, secured the firewall, served a live Hello World page, attached a domain, and locked it down with HTTPS. Those same building blocks — Nginx, a domain, and a certificate — are exactly what sits underneath far bigger sites and applications. From here you might install PHP and a database, deploy WordPress, or push your own app's files into /var/www/html.

Ready to build? Spin up a VPS from the Momo Cloud client area at cloud.momo.tz, and if you get stuck at any step, open a support ticket — our team is available 24/7 in English and Swahili to help you over the line.

TE
Written by

Technical Support 1

Sharing insights on hosting, cloud, security and the technology that powers your business online.