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.

    BeginnerLinux server5 min read
  • 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.

    BeginnerLinux server5 min read
  • 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.

    IntermediateLinux server5 min read
  • 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.

    IntermediateLinux server5 min read
  • 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.

    IntermediateLinux server4 min read
  • 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.

    BeginnerLinux VPS2 min read
  • 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.

    BeginnerLinux server5 min read
  • 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.

    IntermediateLinux server5 min read
  • 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.

    IntermediateLinux server5 min read
  • 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.

    BeginnerLinux server4 min read
  • 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.

    BeginnerLinux server4 min read
  • 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.

    AdvancedLinux server4 min read
  • 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.

    BeginnerLinux server4 min read
  • 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.

    IntermediateLinux server6 min read
  • 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.

    BeginnerLinux VPS2 min read
  • 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.

    IntermediateLinux server4 min read
  • 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.

    BeginnerLinux server4 min read
  • 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.

    AdvancedLinux server4 min read
  • 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.

    BeginnerLinux server2 min read
  • 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.

    BeginnerLinux server4 min read

Browse by topic

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.