Migrate Invoice Ninja 4.5.x to Another Domain

Afternooon guys

I need to move my Invoice Ninja installation from one domain “sub1.domain.com” to another domain “sub1.domain2.com”.

Is there a documented process for this ?

Hi,

We recommend transferring the database using mysqldump, make sure to also copy over the .env file.

We tried that.

We make a MySQL dump and zipped up all the files in the public folder but I suspect there are files in the root that are required, no?

I suggest setting up a clean install and copying over the .env file (and and documents if you used that feature)

Hi Hillel

We created the new domain and copied over the MySQL data and the files.

We then change dthe DB variables in the .env file but all we get is “Whoops, looks like something went wrong.”

I checked the PHP version, it was 7.4. Switched to PHP 7.3 and all seems to work OK.

A quick question, will the following CRON work with version v4.5.40:

cd /home/public_html && php artisan schedule:run >> /dev/null 2>&1

Or should we continue to use the following:

/usr/local/bin/php /home/billingwhatnoweb/public_html/artisan ninja:send-invoices

/usr/local/bin/php /home/billingwhatnoweb/public_html/artisan ninja:send-reminders

With v4 you need to use the send-invoices/send-reminders commands.

Appreciated, thanks.

We-ll look at v5 omce you guys get it working with CentOS as advertised.