Cloud VPS Guides — Linux

Complete guides to manage your VPS with Ubuntu, Debian and other Linux distributions. From initial setup to production deployment.

First SSH access to your Linux VPS

Connect to your Linux VPS for the first time via SSH, accept the server fingerprint, and navigate the system.

5 minSSHLinuxAccess

Create a user with sudo permissions

Create a user with administrator privileges to operate your VPS without using root directly.

5 minSudoUsersSecurity

Update the operating system

Keep your VPS up to date with the latest security patches and package updates on Ubuntu and Debian.

5 minAPTUpdatesUbuntu

Configure firewall with UFW

Configure UFW to control incoming and outgoing traffic, allowing only the necessary ports.

6 minUFWFirewallPorts

Install and configure Nginx

Install and configure Nginx as a web server with server blocks to host sites on your VPS.

7 minNginxWeb ServerHTTP

Install and configure Apache

Install Apache HTTP Server with virtual hosts and essential modules to serve websites.

7 minApacheWeb ServerHTTP

Install MySQL/MariaDB

Install MySQL or MariaDB, secure the installation, and create databases and users for your apps.

6 minMySQLMariaDBDatabase

Install PostgreSQL

Install PostgreSQL, create roles and databases, and configure authentication for local and remote connections.

6 minPostgreSQLDatabaseSQL

Install Node.js with NVM

Install Node.js with NVM to manage multiple versions and set up your development environment.

5 minNode.jsNVMJavaScript

Install Python and virtual environments

Install Python and configure virtual environments with venv to isolate dependencies per project.

5 minPythonVenvPip

Install Docker and Docker Compose

Install Docker Engine and Docker Compose to run applications in isolated containers.

6 minDockerContainersDocker Compose

Configure SSL with Let's Encrypt

Get free SSL certificates from Let's Encrypt with Certbot and enable HTTPS on your domain.

5 minSSLLet's EncryptCertbot

Configure SWAP memory

Create and configure SWAP memory to prevent processes from being killed due to low RAM on your VPS.

4 minSWAPMemoryPerformance

Monitor CPU, RAM and disk

Monitor CPU, RAM, disk, and network usage on your VPS to detect performance issues early.

5 minMonitoringCPURAM

Schedule tasks with Cron

Schedule automated tasks with Cron to run scripts and commands at defined intervals.

5 minCronAutomationTasks

Deploy with PM2 (Node.js)

Deploy Node.js applications in production with PM2 for process management and automatic restarts.

6 minPM2Node.jsDeploy

Configure reverse proxy with Nginx

Configure Nginx as a reverse proxy to route traffic to internal applications by port or domain.

6 minNginxReverse ProxyProxy

Manage services with systemd

Manage system services with systemd: start, stop, enable, and create your own custom services.

6 minSystemdServicesLinux

Transfer files with SCP and SFTP

Transfer files between your local machine and VPS securely using SCP, SFTP, and rsync.

5 minSCPSFTPFiles

Basic VPS security

Implement essential security measures: SSH keys, Fail2Ban, firewall, and automatic updates.

7 minSecurityFail2banSSH

Install and configure Redis

Install Redis as a cache and in-memory data store to improve your application performance.

7 minRedisCacheDatabase

Configure automatic backups with rsync

Automate incremental backups with rsync and cron to protect your data on a remote server.

8 minBackupsRsyncAutomation

Install WordPress with Nginx + PHP + MySQL

Install WordPress on a LEMP stack (Linux, Nginx, MySQL, PHP) optimized for performance.

10 minWordPressLEMPPHP

Configure SSH key authentication

Generate SSH keys, copy them to the server, and disable password authentication.

6 minSSHKeysSecurity

Install PHP and PHP-FPM

Install PHP-FPM with common extensions and configure pools for Nginx.

7 minPHPPHP-FPMNginx

Multi-service deploy with Docker Compose

Deploy a complete application with Docker Compose: app, database, Redis, and Nginx.

9 minDocker ComposeDeployProduction

Configure Fail2Ban against brute-force attacks

Install and configure Fail2Ban to block IPs attempting brute-force attacks.

7 minFail2BanSecuritySSH

Install WireGuard VPN

Set up a VPN server with WireGuard for secure and private access to your VPS.

8 minWireGuardVPNNetwork

Install and use Git on the server

Install Git, create bare repositories, and configure hooks for automatic deployment.

6 minGitDeployRepositories

Install Go (Golang) and build applications

Install Go, build applications, and run them as services on your Linux VPS.

7 minGoGolangBuild