Cloud

Cloud Hosting: Initial Setup for New Users

Learn how to set up your cloud hosting from scratch with clear, practical steps designed for first-time users.

A modern server room featuring network equipment with blue illumination. Ideal for technology themes.

Cloud hosting gives you a virtual server ready to run your website or application in minutes. The initial setup may seem daunting, but following the right sequence you can have it running and secured in under an hour.

Why Cloud Hosting Has the Edge Over Shared Hosting

Before diving into setup, it's worth knowing what you gain by choosing the cloud.

  • Dedicated resources: CPU and RAM reserved for you alone — no noisy neighbors eating your quota.
  • Instant scalability: expand or reduce resources without migrating to a new server.
  • High availability: providers replicate your instance across multiple nodes; if one fails, another takes over.
  • Full control: install what you need, configure the firewall, and choose your software stack.
  • Predictable pricing: pay for what you use; many plans start at just a few dollars per month.

For a deeper look at cloud options, browse the cloud hosting category where we compare plans and providers.

Step 1 — Access Your Server for the First Time

When your provider provisions the server, it sends you a public IP and initial credentials (a root user or a user with sudo privileges). The standard access method is SSH.

Connect via SSH from Your Computer

Open your terminal (macOS/Linux) or PowerShell (Windows 11) and run:

ssh root@YOUR_PUBLIC_IP

Accept the server fingerprint the first time. Once inside, the very first thing to do is change the root password:

passwd

Choose a long, unique password and store it in a password manager.

Create a Non-Root User for Daily Work

Always working as root is risky. Create a regular user with sudo privileges:

adduser your_username
usermod -aG sudo your_username

From now on, use that user for your everyday sessions.

Step 2 — Update the System and Configure a Basic Firewall

A freshly created server rarely has all patches applied. Update before installing anything:

# On Debian/Ubuntu distributions
apt update && apt upgrade -y

# On CentOS/AlmaLinux/Rocky distributions
dnf update -y

Then enable the firewall. On Ubuntu/Debian the simplest tool is UFW:

ufw allow OpenSSH
ufw enable

On RedHat-based systems use firewalld:

firewall-cmd --permanent --add-service=ssh
firewall-cmd --reload

Keep SSH open; close all other ports until you explicitly need them.

Step 3 — Point Your Domain to the Server

For your website to be reachable by a domain name (not just an IP), you need to configure DNS records in your registrar's panel.

Record type Name Value Suggested TTL
A @ YOUR_PUBLIC_IP 300 s (5 min)
A www YOUR_PUBLIC_IP 300 s (5 min)

DNS propagation can take anywhere from 5 minutes to 48 hours depending on the previous TTL of the record. You can check progress with:

dig +short yourdomain.com

Step 4 — Install and Secure Your Minimal Web Stack

Once the system is updated and the domain is pointed, install the components you need. The most common stack for PHP sites is Nginx + PHP-FPM + MariaDB or Apache + PHP + MariaDB.

Quick Example on Ubuntu 24.04

apt install -y nginx php-fpm mariadb-server
systemctl enable --now nginx php8.3-fpm mariadb

Then run the MariaDB security assistant:

mysql_secure_installation

Answer Y to all questions to remove anonymous users, disable remote root login, and drop the test database.

Enable HTTPS with Let's Encrypt

A free SSL certificate improves SEO and protects your visitors. Install Certbot and request the certificate:

apt install -y certbot python3-certbot-nginx
certbot --nginx -d yourdomain.com -d www.yourdomain.com

Certbot sets up automatic renewal; your site will be on HTTPS at no extra cost.

Security Best Practices from Day One

  • Disable SSH password login once you configure public/private key pairs. Edit /etc/ssh/sshd_config and set PasswordAuthentication no.
  • Enable fail2ban to block IPs attempting brute-force attacks against SSH.
  • Schedule automatic backups: most cloud providers offer daily or weekly snapshots for a small fee; enable them from day one.
  • Monitor resource usage with tools like htop, ncdu, or your provider's built-in dashboard.
  • Never expose phpMyAdmin or any admin panel without IP restriction or a VPN.

Key Takeaways

  • Cloud hosting offers dedicated resources, scalability, and full control compared to shared hosting.
  • The first step is always SSH access, changing the root password, and creating a non-root user.
  • Update the OS and enable the firewall before installing any software.
  • Point your domain with A records and wait for DNS propagation before activating SSL.
  • Let's Encrypt provides free, automatic HTTPS — there's no excuse to run HTTP in 2025.
  • Day-one security measures (SSH keys, fail2ban, backups) prevent major headaches later.

Ready to take the next step? The team at elenlace.com can help you choose the right cloud hosting plan and walk you through the full setup without the hassle.

FAQ

How long does initial cloud hosting setup take?

With basic Linux experience, the minimum setup (SSH access, firewall, web stack, and SSL) takes 30 to 60 minutes. If it's your first time, set aside a couple of hours and follow this guide step by step.

Do I need to know how to code to manage a cloud server?

You don't need to code, but you do need to be comfortable with basic Linux commands: navigating directories, editing files with nano or vim, managing services with systemctl, and reading logs. Those skills can be picked up in a few hours of practice.

Which Linux distribution is best for a new cloud server?

Ubuntu LTS (the long-term support version) is the most popular choice for beginners: it has extensive documentation, up-to-date repositories, and 5-year support. AlmaLinux or Rocky Linux are solid alternatives if your team already knows the RedHat ecosystem.

Is cloud hosting in Mexico more expensive than shared hosting?

The entry cost is higher: a basic cloud plan can run between $8 and $25 USD per month versus $3–5 USD for shared hosting. However, as traffic grows, cloud becomes more cost-effective because you scale without switching providers or risking data loss.

Prefer it done for you? El Enlace handles hosting and professional web development.

Compare providers

Other providers and guides worth comparing:

← All