Assessment report
Ubuntu 16.04 no longer gets standard security updates. Your ordering app’s invoice code needs changes before it can run on a current PHP. On a copy, we can test your developer’s fix while web1 keeps taking orders. When you approve, the upgraded copy, web2.example.invalid, takes over.
- Route
- Upgrade a copy
- Ordering pause
- About 30 minutesEstimate, confirmed after a rehearsal
- Waiting on you
- 5 questions
What’s running today
| Service | What we found |
|---|---|
| www. | The home and contact pages load over HTTPS. WordPress can’t update past 6.5 until PHP is upgraded. |
| orders. | The sign-in page loads over HTTPS. Orders are stored in MySQL. A nightly job emails PDF invoices to customers. |
| mail. | Receives mail for example.invalid and holds 12 staff mailboxes. |
| Scheduled jobs To check | We found the nightly invoice job. You mentioned a weekly stock import, but it doesn’t run on web1. We need to know where it runs (question 4). |
Routes we considered
| Route | How it fits your server |
|---|---|
| Upgrade a copy Recommended | web1 keeps taking orders while we upgrade the copy and test the invoice fix on it. The switch needs a short ordering pause and a final data transfer. web2 gets a new IP address. |
| Upgrade web1 in place | Keeps the current IP address. The four release upgrades and the PHP change would run on the live server, with several restarts. The invoice fix could only be tested after PHP changed. |
| Move to a clean server | A fresh Ubuntu 24.04 server, with the sites and mail set up again and the data moved across. It skips the old release steps but needs more rebuilding and checking. This is our fallback if a release upgrade fails on the copy. |
If a supplier or service can only use web1’s current IP address, we would look again at upgrading in place.
Risks and how we’d handle them
| Risk | What we’d do |
|---|---|
| Invoices fail on the new PHP Developer needed | The invoice code uses a PHP function that PHP 8 removed. Your developer updates it. We deploy the fix to web2 and test an order through to the emailed PDF. If you’d like us to make the change, we’ll quote it separately. |
| Customers get invoices twice Included | Scheduled jobs and outgoing mail stay off on web2 until the switch. We turn off web1’s invoice job before we turn on web2’s. |
| Orders or mail missed at the switch Included | We pause ordering, copy and check the latest orders, uploads, and mail, then change DNS. We move any mail that still reaches web1. |
| A supplier rejects the new address Your check | You check with any supplier that only accepts known IP addresses. We send you web2’s address early so they can add it. |
What we would do
- Prepare recovery. We take a server image and a MySQL export of web1 and test that both restore. We confirm we can reach web1’s console if it stops responding.
- Build and upgrade the copy. We restore the image as web2, with its scheduled jobs and outgoing mail off. We upgrade it one Ubuntu release at a time and check the sites and mail after each.
- Update the applications. We deploy your developer’s invoice fix and update WordPress to its current release. We place a test order and open its invoice PDF.
- You test web2. We send you test addresses. You or your developer check what matters to you while web1 carries on as normal.
- Rehearse and agree the switch. We time a rehearsal of the final data transfer, then agree a switch time with you.
- Switch and hand over. We pause ordering, transfer the latest data, point DNS at web2, and turn on its invoice job. We check everything again and send you the handover report.
Pause. We estimate a 30-minute pause in ordering and will confirm it after the rehearsal. The websites stay up and mail keeps arriving.
Costs. Your quote will list the agreed work, web2’s hosting, and anything quoted separately, such as code changes. Keep web1 until the recovery period in the quote ends.
Questions for you
Please reply with the question numbers. “Not sure” is a fine answer.
- Who will update the invoice code, and when could they start? Or would you like a quote from us?
- Who will test web2 and approve the switch?
- Who manages DNS for example.invalid?
- Where does the weekly stock import run? Does it, or any supplier or service, connect to web1 by its IP address?
- How long can ordering pause, and when is your quietest time? Please include your time zone.
Technical findings and proposed versions
| Component | Current | Proposed |
|---|---|---|
| Ubuntu LTS | 16.04, 64-bit | 24.04, 64-bit |
| Website PHP | 7.0 | 8.3 |
| MySQL | 5.7 | 8.0 |
| Postfix / Dovecot | 3.1 / 2.2 | 3.8 / 2.3 |
Release path. 16.04, 18.04, 20.04, 22.04, then 24.04. Ubuntu upgrades one LTS release at a time. We restart and check services after each step.
Disk space. web1 uses 24 GB of its 40 GB disk, and the MySQL export is about 3 GB. We’ll size web2 for the release downloads, the export, and a rollback copy.
PHP. The invoice library calls each(), which PHP 8.0 removed. The active WordPress theme and plugins list support for PHP 8.3.
MySQL. The 20.04 step moves MySQL to 8.0. Before that step, we run MySQL Shell’s upgrade checker on web2. Afterwards, we confirm the ordering app reads an existing order and saves a new one.
Mail. Postfix and Dovecot keep their settings. Dovecot 2.3 replaces some TLS settings, which we update during the release steps.