Cloud

Set Up Your First Cloud Server from Scratch

A step-by-step guide to configuring a cloud server from scratch, even if you have no prior sysadmin experience.

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

Setting up a cloud server from scratch is simpler than it sounds: pick a provider, launch an instance, lock down SSH access, install your software stack, and point your domain. This guide walks you through every step — no prior sysadmin experience required.

Why Choose a Cloud Server?

Unlike shared hosting, a cloud server gives you full control over the operating system, installed software, and allocated resources. You can scale up (more CPU/RAM) or out (more instances) in minutes, paying only for what you actually use.

  • Full control: install any package, choose your Linux distribution, and configure every service.
  • Instant scalability: add resources without migrating data or switching providers.
  • Predictable pricing: modern cloud plans charge hourly or monthly with a fixed cap.
  • High availability: most providers guarantee 99.9% uptime with an SLA.

If you need help picking the right plan, the team at elenlace.com offers personalized guidance for businesses taking their first steps in the cloud.

Step 1 — Choose a Provider and Launch Your Instance

First, decide where your server will live. Here's a quick comparison of popular options:

Provider Starting price (USD/mo) Datacenter in MX region Best for
DigitalOcean Droplet $6 No (us-east nearest) Small projects and testing
Linode / Akamai $5 No Independent developers
AWS EC2 (t3.micro) ~$8 Yes (São Paulo) Enterprise scalability
Google Cloud (e2-micro) Free tier Yes (us-central1) Zero-cost testing
Local MX provider From ~$8 USD Yes Low latency, Spanish support

Once you've chosen a provider, create an account, select the region closest to your audience, and launch an instance running Ubuntu 22.04 LTS — the most documented distribution with long-term support.

Step 2 — Connect via SSH and Secure the Server

With your instance running, connect from your local terminal:

ssh root@YOUR_SERVER_IP

Before installing anything, apply these essential security measures:

  1. Create a non-root user: adduser youruser and add them to sudo: usermod -aG sudo youruser.
  2. Disable root SSH login: edit /etc/ssh/sshd_config and set PermitRootLogin no. Restart SSH: systemctl restart sshd.
  3. Set up SSH keys: generate a key pair on your local machine (ssh-keygen) and copy the public key to the server (ssh-copy-id youruser@IP).
  4. Enable the firewall: ufw allow OpenSSH && ufw enable.

These four steps block roughly 90% of the automated brute-force attacks that hit every new server within minutes of launch.

Step 3 — Install Your Software Stack

The packages you need depend on your project. For a typical PHP web application, the LAMP stack (Linux, Apache, MySQL, PHP) is the proven standard:

sudo apt update && sudo apt upgrade -y
sudo apt install apache2 mariadb-server php php-mysql -y

For Node.js applications, use instead:

curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs

Remember to open the required ports in your firewall:

sudo ufw allow 80/tcp
sudo ufw allow 443/tcp

Step 4 — Configure DNS and Enable HTTPS

Point your domain to the server by creating an A record with your instance's public IP in your domain registrar's control panel. Propagation typically takes between 15 minutes and 24 hours.

Once your domain resolves to your IP, install a free SSL certificate with Certbot:

sudo apt install certbot python3-certbot-apache -y
sudo certbot --apache -d yourdomain.com -d www.yourdomain.com

Certbot automatically renews the certificate every 90 days via a cron job. Your site will serve HTTPS at no extra cost.

Key Takeaways

  • A cloud server offers full control, scalability, and transparent pricing compared to shared hosting.
  • Choose the region closest to your audience to minimize latency.
  • Securing SSH with keys and disabling root login are non-negotiable first steps.
  • The LAMP stack or Node.js covers the vast majority of modern web applications.
  • Certbot provides free HTTPS in minutes with automatic renewal.

Want a professional team to configure and manage your cloud server for you? Explore our managed services at elenlace.com — we take digital projects from idea to production with full Spanish-language support. For more cloud infrastructure articles, visit our cloud section.

FAQ

Do I need to know how to code to set up a cloud server?

You don't need to code, but you should be comfortable with the Linux command line. The basic steps — SSH, apt, ufw — are commands you can copy and run by following a guide like this one.

How long does it take to set up a cloud server from scratch?

With a clear guide, between 30 and 60 minutes to have a secure server with active HTTPS. Most of that time is spent waiting for DNS propagation.

What happens if my server restarts?

Services installed via apt (Apache, MariaDB, etc.) start automatically on reboot. Make sure they're enabled with systemctl enable apache2 mariadb at the end of your setup.

Is Google Cloud's free tier safe for production?

For low-traffic sites it can work, but the free tier has strict limits on CPU, network, and storage. For real production traffic, consider a paid plan with dedicated resources and a formal SLA.

Compare providers

Other providers and guides worth comparing:

← All