Case Study

A PHP upgrade found five years of errors nobody could see

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

7,196

PHP error lines found in the web server log instead of the PHP log

77,882 / 0

Requests and server errors in the 2 h 15 min after the switch

3 minutes

From the first change to the site running on PHP 8.3

Environment

Where the PHP errors wentBefore: the PHP 8.1 pool tried to write to its own error log, which was owned by root, empty since 2021 and in a folder the pool user could not open. The errors fell through to the web server error log, mixed with everything else and cut at 2 KB per line: 7,196 lines. After: the PHP 8.3 pool writes to its own log, which recorded 2,906 lines in the first 2 hours 15 minutes.Before the upgradePHP 8.1 poolwrites its errorsIts own error logowned by root, 0 bytessince 2021, folder lockedWeb server error log7,196 lines, mixed incut at 2 KB eachAfter the upgradePHP 8.3 pooldedicated to the siteA log the pool can write to2,906 lines in 2 h 15 min: 2,100 warnings, 45 deprecationswhole messages, one place, readable by the developersThe errors were always there. The upgrade made them visible.

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.

The job

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.

Investigation

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.

The switch

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.

At a glance

Challenge

A busy site was moving from PHP 8.1 to a dedicated PHP 8.3 pool.

Approach

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.

Result

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.

The fix

  1. Look before switching: checked the old pool’s log and found it root-owned, 0 bytes and unreachable; PHP errors were in nginx’s log, cut at 2 KB
  2. Give the new pool a log it can write: owned by the pool’s user, in a folder it can enter
  3. Keep users logged in: PHP sessions copied to the new pool before the switch
  4. Test, then switch: four pages checked directly against the PHP 8.3 pool, then three nginx lines changed and reloaded
  5. Watch, and keep watching: server errors compared before and after at 27 seconds, about 10 minutes and 2 h 15 min
  6. Tune what the old pool showed: process_control_timeout 0 to 10 s; OPcache interned strings 32 to 64 MB

Outcome

A 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.

More case studies

Full PHP Cache Slowing 47 Sites

66% → 99.4% PHP cache hit rate after the fix

ionCube and OPcache Stuck in a Loop

≈300 s → 2.2 s homepage render after one setting

PHP Update Broke the Control Panel

200 → 500 → 200 control panel, same configuration

Planning a PHP upgrade on a busy site?

We check what the old setup is hiding before we switch, and watch the new one after.