Case Study
We moved a busy publishing site from PHP 8.1 to PHP 8.3 on a dedicated pool. While preparing, we found that the old pool’s error log had been empty since 2021. It was owned by root and sat in a folder the pool could not open, so PHP’s errors had been falling into the web server’s log instead, mixed with everything else and cut at 2 KB per line. The switch took three minutes, and in the 2 hours 15 minutes afterwards the site served 77,882 requests with no server errors. The new log turned years of hidden warnings into a clean, complete list, which we handed to the site’s developers so they could fix them in their own code.
October 2026 · 4 min read
SECTOR
Online publisher
SCALE
High-traffic news site on a server that hosts several sites
PLATFORM
Oracle Linux 8, nginx, PHP-FPM from Remi, MariaDB 10.3
ENGAGEMENT
PHP 8.1 to 8.3 upgrade for one site
PHP error lines found in the web server log instead of the PHP log
Requests and server errors in the 2 h 15 min after the switch
From the first change to the site running on PHP 8.3
Scroll the diagram sideways to see all of it →
An empty error log is not a clean bill of health. Check that the process can actually write to it.
Move one busy site to PHP 8.3 without anyone noticing. The site ran on a shared PHP 8.1 pool. The plan was a dedicated PHP 8.3 pool for this site only, switched over by changing the PHP backend in three lines of the site’s nginx configuration. Before touching anything, we checked what the old pool was logging, so that any new error after the switch would stand out.
The old error log had been empty since 2021. The pool’s error_log file was owned by root, had a size of 0 bytes, and had not changed since 2021. It also sat in a folder the pool’s user could not enter. PHP could not write there, so its errors went to standard error, and nginx recorded them in its own error log as “FastCGI sent in stderr”. We counted 7,196 of those lines. nginx cuts each one at 2 KB, so long messages arrived incomplete, mixed in with the web server’s own entries. Nobody reading the PHP log would ever have seen them.
The PHP error log was empty because PHP could not write to it, not because nothing was going wrong.
A dedicated pool, a writable log and a short, watched cutover. We built the PHP 8.3 pool with a log file it owns, copied the PHP sessions across so logged-in users stayed logged in, and checked four pages directly against the new pool before switching (identical response sizes). Then we changed the three nginx lines and reloaded. Comparing the 27 seconds before and after the switch, the old pool served 313 requests and the new one 261, with no server errors on either. We also set process_control_timeout to 10 seconds so future reloads let running requests finish, and doubled OPcache’s interned strings buffer from 32 to 64 MB, because the old pool had filled 67.8 percent of 32 MB within 31 minutes of a reload.
A busy site was moving from PHP 8.1 to a dedicated PHP 8.3 pool.
The old pool’s error log was root-owned and empty since 2021; 7,196 PHP error lines were in the web server log instead.
The switch took 3 minutes: 77,882 requests and 0 server errors in the next 2 h 15 min, and the warnings are now in one readable log.
process_control_timeout 0 to 10 s; OPcache interned strings 32 to 64 MBA quiet upgrade, and a list of problems the developers could finally see. In the 2 hours 15 minutes after the switch, the site served 77,882 requests with no 500, 502 or 504 responses. The new log recorded 2,906 lines in that time: 2,100 PHP warnings and 45 deprecation notices, led by two lines of one plugin with 787 warnings each. In the 10 minutes after the switch, every warning we compared already existed on PHP 8.1, so the upgrade surfaced them rather than caused them. Because the warnings live in the customer’s application code, we handed the complete list to the site’s developers so they could fix them properly in their own codebase and release process. The OPcache reading (37 percent used) was taken 26 seconds after a reload, so the longer-term figure is something to keep watching.
We check what the old setup is hiding before we switch, and watch the new one after.