Self-hosted Error 500 no setup wizard

I’m running Ubuntu 22.04 with PHP 8.1 on NGINX. I’ve setup invoice ninja in the /var/www/invoiceninja/ directory. Setup the .env file and when I pull up website it shows a picture & 500 - Server Error. I tried re-deploying several times but I’m always getting the same result.

Within the .env file the DB_CONNECTION=mysql although i’m using MariaDB but I think that’s correct?

I had to run the command ‘php artisan optimize’ and that got me past that 500 error page into the configuration wizard!

1 Like