VPS & Servers
Guides for VPS, cloud and dedicated servers: SSH, Linux, Apache, cPanel/WHM and firewalls.
Articles
16 articles
Connect to your server with SSHOpen a terminal and run ssh root@your-server-ip. It works the same from Windows 10 and 11, macOS…
Install the Apache web server on UbuntuInstall Apache on Ubuntu 24.04 with sudo apt install apache2, allow web traffic in the firewall,…
Host several websites on one server with ApacheGive each website its own folder and its own Apache virtual host file, turn it on with a2ensite and…
Install phpMyAdmin on UbuntuOn Ubuntu 24.04, install MySQL and PHP, then run sudo apt install phpmyadmin and pick apache2.…
Install cPanel & WHM on AlmaLinuxOn a fresh AlmaLinux 9 or 10 server, set a hostname, disable SELinux and firewalld, then run…
Update cPanel & WHM from the command lineLog in as root and run /usr/local/cpanel/scripts/upcp. Add --force to reinstall all cPanel files,…
Change the hostname of a Linux serverRun hostnamectl set-hostname server.example.com as root and update /etc/hosts. On a cPanel server,…
Where cPanel keeps custom DNS zone templatesCustom DNS zone templates are stored in /var/cpanel/zonetemplates/. Edit them in WHM under DNS…
Install or remove the CSF firewall on a cPanel serverOn a cPanel server, install CSF with dnf install cpanel-csf (AlmaLinux, CloudLinux) or apt install…
Free SSL for the server hostname and sites in WHM (AutoSSL)WHM's AutoSSL gets free Let's Encrypt certificates for your sites and the server hostname and…
Zip and unzip folders over SSHZip a folder with zip -r archive.zip folder and extract it with unzip archive.zip. For server…
Secure a new Linux server: first 10 steps (Ubuntu)On a new Ubuntu server: install updates, create a sudo user with an SSH key, turn off root and…
Install a free SSL certificate with Certbot (Nginx or Apache, Ubuntu)Install Certbot, run sudo certbot --nginx or sudo certbot --apache, and you get a free Let's…
Set up a firewall with UFW on UbuntuAllow SSH with sudo ufw allow OpenSSH, then switch the firewall on with sudo ufw enable. Open other…
Install a LEMP stack (Nginx, MySQL, PHP) on Ubuntu 24.04Install Nginx, MySQL (or MariaDB) and PHP-FPM with apt, then add an Nginx server block that passes…
Back up a server with rsync and cron (files and MySQL)A small script dumps your databases and copies your files with rsync to a second server over SSH. A…