How to Self-Host a URL Shortener on Your VPS and Track Every Click

self-host a url shortener on vps

How to Self-Host a URL Shortener on Your VPS and Track Every Click Long links look messy in print, in bios, and in chat messages, and they tell you nothing about who clicked them. A short link fixes the first problem, and a self-hosted shortener fixes the second: when you self-host a URL shortener on … Baca Selengkapnya

How to Host a Client Website on Your VPS Without Mixing It with Your Own

host a client website on vps

How to Host a Client Website on Your VPS Without Mixing It with Your Own When you host a client website on VPS space that also runs your own sites, one wrong permission or one shared database user can mix the two together. A client plugin update can take down your blog. A client upload … Baca Selengkapnya

How to Run Scheduled Tasks on a VPS with systemd Timers Instead of Cron

systemd timers instead of cron

How to Run VPS Tasks with systemd Timers Instead of Cron Cron has scheduled Linux tasks for decades, and it still works. But on a modern VPS it hides failures, swallows output, and gives you no easy way to check whether last night’s backup actually ran. Running scheduled tasks with systemd timers instead of cron … Baca Selengkapnya

How to Monitor VPS Disk Space Before It Fills Up and Crashes MySQL

monitor vps disk space

How to Monitor VPS Disk Space Before MySQL Crashes: A Guide A full disk rarely announces itself. One day your site loads fine, the next day MySQL refuses new writes, WordPress shows a database error, and your logs stop growing because there is nowhere left to write. Learning to monitor VPS disk space is the … Baca Selengkapnya

How to Shrink a Bloated WordPress Database Without Installing a Plugin

shrink a bloated wordpress database

How to Shrink a Bloated WordPress Database Without Installing a Plugin A WordPress database grows every time you save a post, install a plugin, or receive a comment. Revisions pile up, transients expire but stay behind, and old plugin rows linger long after the plugin is gone. On a small VPS, that bloat eats disk … Baca Selengkapnya

Nginx Error Pages: How to Show a Custom 404 and 502 Page

nginx custom error pages

Nginx Error Pages: How to Show a Custom 404 and 502 Page When a visitor hits a missing page or your backend goes down, Nginx shows a plain white page with a short error line by default. That default page tells the visitor nothing useful and makes a small site look abandoned. Setting up nginx … Baca Selengkapnya

SSH Port Forwarding Explained: Access Your Homelab from Anywhere Safely

ssh port forwarding homelab

SSH Port Forwarding Explained: Access Your Homelab from Anywhere Safely Your homelab runs services on your home network: a dashboard, a file server, a media app, a test site. From your couch they load fine. From a hotel or a coffee shop they are unreachable, because your router hides them behind NAT. SSH port forwarding … Baca Selengkapnya

Your VPS Is Sending Spam? How to Find the Source and Stop It

find spam source on vps

Your VPS Is Sending Spam? How to Find the Source and Stop It Mail starts bouncing, your inbox fills with delivery failure notices for messages you never sent, or a customer tells you your emails land in spam. When that happens, you need to find spam source on VPS quickly, because every hour the leak … Baca Selengkapnya

How to Benchmark VPS Disk I/O with fio Before Hosting a Database

How to Benchmark VPS Disk I/O with fio Before Hosting a Database A database lives or dies by its disk. Queries, indexes, and write-ahead logs all become small random reads and writes, so a VPS that looks fine on paper can still slow down MySQL or PostgreSQL. That is why you should benchmark VPS disk … Baca Selengkapnya