How to Tune PHP-FPM for a Server
Configure PHP-FPM by measuring worker memory, concurrency, queue, slow log and CPU/RAM capacity and execute the changes stepwise and reversible.
BIPIDA / IDEAS INTO PRACTICE
Read deeper. Diagnose better. Build with confidence.
Technical analysis and practical experience for your next challenge.
108 articlesShowing 37–48
Configure PHP-FPM by measuring worker memory, concurrency, queue, slow log and CPU/RAM capacity and execute the changes stepwise and reversible.
Identify the OOM Killer from the kernel log, cgroup, and RAM process, separate the victim process from the stress factor, and fundamentally modify capacity, limit, and…
Recognize Linux Disk overflow with filesystem, inode, directory, log, deleted file open, Docker and database; without rushing to delete production data.
Analyze Linux RAM usage with available, cache, swap, RSS/PSS, process, container and OOM and separate the memory leak from normal memory usage.
To find the cause of the CPU overloading Linux, check the load, user/system/iowait/steal, process, thread, container, PHP and Query in the event timeline.
When the site goes down, check DNS, network, TLS, Nginx, application and database layer by layer, save evidence, and recover the service with the least risk.
Fix 504 by identifying the payment gatewayway builder error, upstream time, PHP row, query database, external API and limit each layer; not increasing arbitrary timeout.
To fix 502 Nginx, match the error time with the error log and check the upstream status, PHP-FPM, socket, permission, worker capacity and proxy chain.
Check Nginx WordPress with server_name, root, try_files, PHP-FPM, sensitive file restrictions, TLS, cache and log settings, and before reloading with syntax test.
Compare Nginx and Apache in terms of processing model, static file, PHP, rewrite,.htaccess, reverse proxy, security and team capabilities, and choose wisely.
The basic configuration of Linux includes inventory, patch, SSH, firewall, user limit, time, backup, log and monitoring; in secure order and recovery path.
To set up the Ubuntu server securely, prepare access, patch, SSH, firewall, web server, TLS, backup, monitoring and rollback before DNS is transferred.