
To move from one Ubuntu LTS release to the next without reinstalling, you use do-release-upgrade, after updating everything the current release has pending and taking a verified copy of the server. It is a long process that restarts services and can change the versions of PHP, databases and web server beneath your site. On an unmanaged VPS, the decision, the risk and the work are yours. If you have little or nothing installed, reinstalling with the new release is often cleaner (reinstalling your VPS operating system).
Before you start
| Prepare | Why |
| A complete, tested copy | If it goes wrong, it is the road back. A disk snapshot, if your plan offers them, plus an export of the databases and a copy of the configuration: backing up a VPS. |
| Free disk space | The upgrade downloads and installs thousands of packages: what fills the disk. |
| A list of what runs | PHP, database and web server versions, systemd services, cron jobs, ports. Afterwards you check each one. |
| A quiet hour | The site may be down while services restart. Pick a low-traffic period. |
| A way in if SSH fails | Know how to use the panel console, which gets in without the network: I have lost SSH access. |
Step by step
|
|
|
|
|
|
| PHP, MariaDB or MySQL and Apache or nginx can change version with the upgrade. An application that ran well on the old one may fail on the new one. Check what your application supports first: which PHP version to use. Third-party repositories are disabled by the tool; you will have to re-enable them by hand, for the right release. |
| Do not interrupt the upgrade. Stopping halfway, with packages half installed, is the easiest way to leave the system unusable. If the connection drops, get back into tmux and see where it is. |
| A new server is an honest alternative. Installing the new release on a clean VPS, moving the site and switching DNS carries far less risk than touching what is serving customers: migrating a site without downtime. What the upgrade does not solve is keeping the system up to date: keeping your VPS secure. |
|
Did the upgrade leave the server unreachable? Tell us the time and what you saw: the panel console gets in without the network. Open a support ticket |
|
SEE ALSO Which operating system to choose for your VPS Reinstalling or changing your VPS operating system |
RECOMMENDED PRODUCT Web hosting with cPanel Domain and SSL included, daily backups and the panel you already know. from 5.940,00 Kz/mo (3-year plan, with coupon) See plans |
- 0 Users Found This Useful











