- Joined
- Mar 15, 2014
- Messages
- 133
- Points
- 18
Running several PHP versions on one box and trying to work out a sane way to retire the oldest one. Every site still pinned to it has to be moved by hand, and at the moment I find out something broke when the client emails me, which is the wrong order.
What I do per site is run the codebase through a compatibility check and move it on a staging domain first. That works and does not scale past a few sites. The ones that worry me are old WordPress installs with abandoned plugins, where the fatal only fires on a path nobody visits until someone tries to check out.
The approach I have drifted towards is switching the site, watching the PHP error log filtered to that domain for a week, and rolling back on the first fatal rather than trying to predict them in advance. It feels backwards, but it finds the code paths that testing does not reach. What I lose is the client hitting the error before I do.
For anyone running a mixed box, do you set a date and move everyone whether they are ready or not, or keep the old version alive until the last site leaves it? And has anyone found a way to work out which sites will break that beats just running them and waiting?
What I do per site is run the codebase through a compatibility check and move it on a staging domain first. That works and does not scale past a few sites. The ones that worry me are old WordPress installs with abandoned plugins, where the fatal only fires on a path nobody visits until someone tries to check out.
The approach I have drifted towards is switching the site, watching the PHP error log filtered to that domain for a week, and rolling back on the first fatal rather than trying to predict them in advance. It feels backwards, but it finds the code paths that testing does not reach. What I lose is the client hitting the error before I do.
For anyone running a mixed box, do you set a date and move everyone whether they are ready or not, or keep the old version alive until the last site leaves it? And has anyone found a way to work out which sites will break that beats just running them and waiting?







