Guides tagged “linux”
Step-by-step MdmHost guides about linux, sorted A-Z.
280 guides · page 4 of 14
Docker restart policies: keep containers running after a reboot
How Docker's restart policies work, what no, on-failure, always and unless-stopped do after a crash or VPS reboot, and how to change the policy on a container that is already running.
Docker run flags you will actually use (-d, -p, -v, -e, --restart)
The docker run options that matter on a VPS, explained with examples. Covers detached mode, port publishing, volumes, environment variables, names, restart policies and resource limits.
Docker security checklist for a public VPS
A practical Docker hardening checklist for an internet-facing VPS. Run images as non-root, use read-only filesystems, drop capabilities, never expose the daemon socket, scan images and keep them updated.
Docker volumes vs bind mounts: store container data safely
Learn the difference between Docker named volumes and bind mounts, how to create, inspect and back up volumes, fix file permissions on bind mounts and find where the data lives on disk.
EasyApache 4 guide: profiles, modules and PHP versions
Use EasyApache 4 in WHM to add Apache modules and PHP versions, save your setup as a custom profile, and roll back to a known good profile after a bad change.
Edit files on a Linux server with nano and vim
Open, edit, save and quit configuration files on your Linux VPS with nano for simple edits and vim for power users, with the key shortcuts you actually need.
Edit files with nano: a beginner's guide
Open, edit, search and save files with the nano text editor on a Linux server, including cutting and pasting lines, showing line numbers and safely editing system config files with sudo.
Edit the sudoers file safely with visudo
Change who can use sudo without breaking it. Learn the sudoers syntax, use visudo and drop-in files in /etc/sudoers.d, and grant full or limited admin rights.
Enable Brotli compression in Nginx
Add Brotli compression to Nginx with the packaged dynamic modules on Ubuntu 24.04 and Debian 12, keep gzip as a fallback, and confirm browsers receive br encoding.
Enable gzip compression in Apache with mod_deflate
Compress HTML, CSS, JavaScript and JSON in Apache with mod_deflate, add Brotli with mod_brotli for modern browsers and check the Content-Encoding header to prove it works.
Enable gzip compression in Nginx
Turn on gzip in Nginx so HTML, CSS, JavaScript and JSON are sent compressed, choose sensible types and levels, and confirm it works with curl.
Enable NGINX with reverse proxy on cPanel
Install cPanel's ea-nginx as a caching reverse proxy in front of Apache, control caching per account, clear the cache and fix 502 Bad Gateway errors.
Enable.htaccess and mod_rewrite in Apache
If your.htaccess rules are ignored, Apache is usually missing mod_rewrite or AllowOverride. Enable both, restart safely and prove it works with a one-line test rule.
Encrypted off-site backups with restic: init, snapshot, restore
Set up restic encrypted backups on a Linux VPS — initialise a repository on a second host, take snapshots, list them, and restore data to a fresh server.
Essential Linux commands cheat sheet for VPS owners
A practical cheat sheet of the Linux commands you use most on a VPS: files, permissions, processes, services, disk, network, packages and logs, grouped by task.
Find recently changed files in Linux
List files changed in the last minutes, hours or days with find -mmin and -mtime, compare against a reference file, and read atime, mtime and ctime with stat.
Find the largest files and folders on a Linux server
Track down what is filling your Linux VPS disk with du, sort, find -size and ncdu, staying on one filesystem so the search is fast and the results make sense.
Fine-grained permissions with ACLs (setfacl and getfacl)
Give extra users or groups access to a file or folder without changing its owner, using POSIX ACLs with setfacl and getfacl, including default ACLs for new files.
First steps after your Linux VPS is ready (SSH, updates, firewall)
Log in over SSH, change the root password, install updates, add a sudo user and switch on a firewall without locking yourself out.
Fix "permission denied" on the Docker socket
Fix the "permission denied while trying to connect to the Docker daemon socket" error. Add your user to the docker group, apply it without rebooting, and understand the security trade-off versus sudo.
Browse by topic
- Getting startedYour first hour with a new server: access, logins and basics.69 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.37 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.49 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.40 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.37 guides
- DomainsRegistering, transferring and managing domains and nameservers.20 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.19 guides
- CloudLinuxCloudLinux setup and use: LVE limits, CloudLinux Manager, CageFS and PHP/Node.js selectors.31 guides
- LiteSpeedLiteSpeed Web Server, LSCache and the LiteSpeed Cache plugin: install, settings and tuning.30 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.23 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.23 guides
- WP SquaredcPanel's WordPress platform: sites, plugins, staging and backups.9 guides
- SitePadBuild and publish websites with the SitePad builder.9 guides
- SitejetDesign, edit and publish sites with the Sitejet builder.9 guides
- WHMResellerAlpha and master resellers with WHMReseller: install, setup and use.12 guides
- VirtFusionInstall, set up and manage VirtFusion: hypervisors, packages, servers and WHMCS integration.7 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.30 guides
- PleskWebsites, email, databases and settings in the Plesk panel.52 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.40 guides
- WHMCSBilling, automation, products and client management with WHMCS.51 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.106 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.115 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.34 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.52 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.64 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.68 guides
- Linux VPSSSH, packages, services and everyday Linux administration.70 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.58 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.58 guides
Still stuck?
Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.
