WordPress Developer Ukraine, Kyiv
Linux Podman for WordPress: Rootless Containers Without Docker

Linux Podman for WordPress: Rootless Containers Without Docker

Podman for WordPress: rootless containers and Compose files without the Docker daemon Docker runs a daemon as root, and anyone who can talk to it effectively has root on the machine. Podman runs containers without a central daemon and, by default, without root: the containers run as processes of the user who started them. It…
Linux cgroups v2 and Systemd Slices for PHP-FPM Resource Control

Linux cgroups v2 and Systemd Slices for PHP-FPM Resource Control

Limit PHP-FPM, cron and imports with systemd slices and cgroups v2 On a server that runs several WordPress sites, one site’s runaway import or a crawler storm on another can take all CPU and memory, and every site becomes slow. Linux cgroups v2 can cap a group of processes, and systemd exposes them through simple…
Linux OOM Killer and Swap Tuning for WordPress Servers

Linux OOM Killer and Swap Tuning for WordPress Servers

The Linux OOM killer and swap on a WordPress server When a Linux server runs out of memory, the kernel’s out-of-memory killer picks a process and kills it. On a WordPress server, the process with the most memory is usually MySQL, so the site goes down with “Error establishing a database connection”, although the real…
Building Custom WP-CLI Commands for Plugin Operations

Building Custom WP-CLI Commands for Plugin Operations

Custom WP-CLI commands for a plugin’s maintenance tasks Every plugin with real data sooner or later needs tasks that do not belong in the admin: re-sync 20,000 products with an API, rebuild a lookup table, clean up after a failed import. A shell script that chains wp eval calls is fragile. A WP-CLI command of…
Nginx map and geo Modules for IP Blocking and Admin Protection

Nginx map and geo Modules for IP Blocking and Admin Protection

Nginx map and geo: block bad traffic and protect wp-admin before PHP runs Every request that reaches PHP costs a worker, a WordPress bootstrap and often database queries. Scanners that probe /.env, bots that hammer wp-login.php and scrapers with known user agents can be rejected by Nginx itself in microseconds. Two modules do the classification:…
Zero-Downtime WordPress Deployment with rsync and SSH

Zero-Downtime WordPress Deployment with rsync and SSH

Zero-downtime WordPress deployment with rsync, SSH and a symlink Uploading a new theme version file by file means that for a few seconds the server has a mix of old and new files. A request in that moment loads a new template with an old functions file and ends in a fatal error. The fix…