Php upgrade - can I do this?

5.4.11 self hosted in a shared hosting environment
I would like to upgrade to 5.11 which requires an upgrade to php 8.

I’ve installed php8 and the new version on a new subdomain and have it running.

Questions:

  1. Can I copy or edit the new ENV file to connect to the old / existing database without any conflicts?
  2. Can I run both copies of invoice ninja connected to the same database without issues?

Thank you.

Hi,

The new version of the app will apply database migration to update the database, I don’t believe you can use two different versions of the app with one database.

I suggest using mysqldump to setup a copy of your database and then copy over the .env file and adjust the database settings.