Change PHP Version, should keep old-version socket working

Ohm J

Verified User
Joined
Aug 16, 2019
Messages
2,226
When change on domain or subdomain, if no other site using this version, it's immediately destroy the old-version
Code:
attempt to connect to Unix domain socket /run/php-fpm/php81-2222.sock
this keep site offline until background job running

so background job should be full-handle this together with rewrite domain/subdomain to use with changed version, not on-request destroy the old-version
 
When change on domain or subdomain, if no other site using this version, it's immediately destroy the old-version
Code:
attempt to connect to Unix domain socket /run/php-fpm/php81-2222.sock
The socket in that error is the old version pool, so the question is ordering. Is the pool removed before the vhost is rewritten, or is the rewrite done before the new pool is up? The site stays down for that gap.

Prove it on a staging domain by watching the socket file and the vhost during a switch. Note which one disappears first, and how long the gap lasts. That gives you a timeline rather than an impression.

If no other domain is still pinned to the old version, the pool has no reason to stay alive. If one is, the switch has a chance to pass without downtime. Check which case you are in before changing anything.

For the report, give the exact socket path, the timestamps of the rewrite and the socket removal, the reproduction steps, and the measured downtime.

Ask them to reorder the task so the new pool is listening before the old one is removed. The exact task ordering depends on the build, so the timeline is the useful part.
this keep site offline until background job running

so background job should be full-handle this together with rewrite domain/subdomain to use with changed version, not on-request destroy the old-version
 
Go doing your own issued if you don't know how it working...
just create one user, one domain, enable "isolated-php", and change the php version for that domain, that's it

don't bother me If you don't know
 
Back
Top