Guides tagged “linux”
Step-by-step MdmHost guides about linux, sorted A-Z.
280 guides · page 3 of 14
Create an SFTP-only user limited to one folder
Give someone file access over SFTP without a shell, locked inside one folder. Configure internal-sftp with a Match block, set the chroot ownership right and test with WinSCP.
Create files and folders in Linux (touch, mkdir, echo)
Create empty files, folders and nested folder trees on a Linux server with touch and mkdir -p, and write text into files with echo, redirection and heredocs.
Create system users for apps and services
Run each app on your Linux VPS under its own system account with no password and no shell, so a bug or breach in one app cannot take over the whole server.
Customise the login message (MOTD) on Ubuntu and Debian
Change the message you see when you log in over SSH. Edit /etc/motd, trim or add update-motd.d scripts, switch off Ubuntu news and show disk and load at a glance.
Delete a user and their files on Linux
Remove a Linux user account cleanly. Stop their processes, back up what matters, delete the account with userdel or deluser and find any files they left behind.
Delete files and folders in Linux safely (rm, rmdir)
Delete files and folders on a Linux server with rm and rmdir, understand why rm -rf and wildcards are dangerous, and remove files with awkward names such as spaces or leading dashes.
Delete files older than X days automatically
Clean up old backups, logs and temp files on a schedule. Find files older than a set number of days, test with a dry run, delete them and automate it with cron, a systemd timer or tmpfiles.d.
Deploy a Node.js app with PM2 behind Nginx
Install a Node.js LTS release, keep your app running with PM2 across crashes and reboots, and serve it through Nginx with HTTPS.
Deploy a Python app with Gunicorn, systemd and Nginx
Set up a virtual environment, run your Flask or Django app with Gunicorn as a systemd service, and serve it through Nginx with HTTPS.
Deploy a Self-Hosted App with Docker Compose from Scratch
Write a compose.yaml, keep your secrets in.env, start the stack with docker compose up -d, then verify it and update it later without losing data.
Deploy from GitHub Actions to your VPS over SSH
Create a dedicated deploy user, store its SSH key as a GitHub secret and run a workflow that ships your code to the VPS on every push.
DirectAdmin: Manage Email Accounts and DNS Records Effectively
Learn how to manage email accounts, set up forwarders, and edit DNS zone records within your DirectAdmin VPS environment.
Disable root login and password authentication over SSH
Stop brute-force attempts by switching off root and password logins with a small SSH drop-in file, then verify the change from a second session.
Disable Weak SSH Ciphers and MAC Algorithms on a Linux VPS
Edit sshd_config to allow only modern ciphers, MACs and key exchange algorithms, then verify the negotiation and keep a fallback session open.
Docker basics: containers, images and registries explained
A plain-English introduction to Docker for VPS owners. Learn what images, containers, tags and registries are, how docker run differs from Compose, and when containers suit a small server.
Docker Compose depends_on and healthchecks: get startup order right
Use depends_on with condition: service_healthy so your app waits until the database accepts connections, and learn how to tune healthcheck timing without slowing every start.
Docker Compose file explained: services, volumes, networks and ports
A line-by-line walk through docker-compose.yml: what services, volumes, networks, ports and depends_on do, with a working example stack you can run on a Linux VPS.
Docker Compose override files: separate dev and production configs
Keep one base Compose file and layer per-environment settings with a dev override file and a production file, merged with -f or COMPOSE_FILE.
Docker networks: bridge, host and custom networks explained
How Docker networking works on a VPS. Covers the default bridge, user-defined networks with built-in DNS, host mode, connecting containers across Compose projects and inspecting networks.
Docker persistent storage for non-root users on a Linux VPS
Set up Docker persistent storage so container data survives deletion, and fix ownership so a non-root user inside the container can read and write it.
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.
