Introduction
The following table lists the main Ubuntu LTS releases from 18.04 to 26.04 and their typical PHP and MySQL versions from the official Ubuntu repositories.
| Ubuntu LTS version | Codename | Default PHP version | Default MySQL version |
|---|---|---|---|
| 18.04 LTS | Bionic Beaver | PHP 7.2 | MySQL 5.7 |
| 20.04 LTS | Focal Fossa | PHP 7.4 | MySQL 8.0 |
| 22.04 LTS | Jammy Jellyfish | PHP 8.1 | MySQL 8.0 |
| 24.04 LTS | Noble Numbat | PHP 8.3 | MySQL 8.0 |
| 26.04 LTS | Resolute Raccoon | PHP 8.5 | MySQL 8.4 |
Ubuntu support
Ubuntu LTS releases generally receive 5 years of standard security maintenance, with extended security updates available through Ubuntu Pro. Here are the support dates for each major LTS release from 16.04 to 26.04, according to Canonical’s official release lifecycle.
| Ubuntu LTS version | Codename | Released | Standard support ends | Extended security maintenance (Ubuntu Pro) ends | Legacy support ends |
|---|---|---|---|---|---|
| 16.04 LTS | Xenial Xerus | Apr 2016 | Apr 2021 | May 2026 | May 2031 |
| 18.04 LTS | Bionic Beaver | Apr 2018 | May 2023 | May 2028 | May 2033 |
| 20.04 LTS | Focal Fossa | Apr 2020 | May 2025 | May 2030 | May 2035 |
| 22.04 LTS | Jammy Jellyfish | Apr 2022 | May 2027 | May 2032 | May 2037 |
| 24.04 LTS | Noble Numbat | Apr 2024 | May 2029 | May 2034 | May 2039 |
| 26.04 LTS | Resolute Raccoon | Apr 2026 | May 2031 | May 2036 | May 2041 |
What if you have outdated versions
Ubuntu can still receive updates after its standard support period ends, but it depends on the Ubuntu version and the type of update.
For a server running WordPress, PHP and MySQL, this is important because an outdated Ubuntu release can continue to run normally even after it stops receiving regular security patches.
What happens after Ubuntu support ends?
| Update type | After standard support ends |
|---|---|
| Regular security updates | Stop under standard support |
| Bug fixes and maintenance updates | Generally stop |
| Extended security updates | Available for eligible releases through Ubuntu Pro |
| Application updates (PHP, MySQL, WordPress) | Depend on the application’s own support and repository |
| Upgrade to a newer Ubuntu LTS | Still possible; recommended for long-term maintenance |
Conclusion
Assuming you have a digitalocean droplet, then You have 3 choices when your ubuntu version is less than version 24, First upgrade them. There are some risks in this option like incompetible, so best to do it step by step:
- backup and live snapshot your server.
- clone a server and update clone server noting all the problems and solutions.
- update ubuntu version one at a time, DO NOT skip order. That is you NEED to upgrade ubuntu 16 to 20 first, then 20 to 22, 22 to 24 and lastly 24 to 26. you can live snapshot before every update as a fail-safe step.
- keep you backup and snapshot for 7 days and check every function of your server like payment gateway, online shop function etc.
- This is the recommended way
Secondly, you can keep your server as it is, and your site will be vulnarable to hacking. being hack would mean your site data and activities will be halted to compromised.
Thirdly, you can setup a new server and export your wordpress site data and database to new server. you would need to sollow following steps to setup new LAMP with wordpress cluster as new digital one click app always setup cluster wordpress which I’m not included towards.
Fourly, you can check out Extended Security Maintenance (ESM), which is a service provided by Canonical for Ubuntu that gives you access to ongoing security updates and maintenance for specific older versions of Ubuntu after they have reached their end of life. This is particularly useful for users who need to maintain legacy systems but still require security updates.
How to Enable ESM in Ubuntu:
- Check for ESM Availability: Ensure your version of Ubuntu supports ESM. You can check the status of your Ubuntu version here.
- Register Your System (if necessary): You might need to register your system with an Ubuntu Advantage account to access ESM, which is often free for personal use. You can register with:
sudo ua attach <your-token> - Enable ESM: Once registered, run the following command to enable ESM:
sudo apt-get install ubuntu-advantage-tools sudo ua enable esm-infra - Update Your Package Lists: After enabling ESM, update your package lists to retrieve the available security updates:
sudo apt update - Upgrade Packages: To apply the available security updates, you can run:
sudo apt upgrade
Recommendation
It is advisable to regularly check for available updates and patches, as enabling ESM can help ensure your system remains secure even after its standard support period ends.
