Is it possible to upgrade directly from Matomo 3.x to Matomo 5.x?

Stupid question maybe, but I wanted to ask just in case. Also, because I’m lazy.

I have an old server I neglected (shameful, I know) and who is still using the Matomo’s debian source piwik/main, so it is still in 3.14.1.

Do I need to upgrade to Matomo 4.x first using a tarball found on Matomo builds’ page or can I upgrade directly to 5.3.1 using the matomo/main source?

Thank you for your time!

Edit: the server is already on php7.4 and using an up-to-date MariaDB at least

The FAQ says:

You can safely update from older versions directly to the latest release.

https://matomo.org/faq/how-to-update/faq_9/

But i never tested it :slight_smile:

It’s not recommended to upgrade directly from Matomo 3.x to 5.x. First upgrade from 3.x to the latest 4.x version, then move from 4.x to 5.x. This helps prevent errors and data loss because each major version includes important changes. Always back up your database and files before upgrading and check that your plugins and server meet the version requirements.

Thank you for your time! I’ll use the safer 3.x → 4.x → 5.x approach then