Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

APP_ENV=production leads to 404 error

Scott Korvek   ( User )

Commented 3 years ago

I'm new to this software. Running ubuntu server 20.04LTS + nginx + PPHP7.4-fpm and postgres- all stock setup on a fresh server dedicated to this task. Spent 5 hours combing over my setup trying to figure out why I keep getting a 404 error after installation.

Turns out if I set the APP_ENV=production, everything breaks. Omitting that line from the .env file beings everything back to normal.

Can't find any mention of that directive anywhere in the forum or docs. Any info appreciated.

Let Wheeler   ( User )

Commented 3 years ago

Editing .env as per your findings above solved my issue as discussed here. Thanks.
https://akaunting.com/forum/discussion/installation-update/upgrade-2113-error-page-not-found

Neil   ( User )

Commented 3 years ago

Thanks for this worked perfectly!

Melda Melda   ( User )

Commented 3 years ago

Hello,

Please, make sure you've set the "APP_URL" value in the .env file, located in the root directory of your Akaunting installation:


APP_URL=https://my-domain.com/installed-folder


Of course, "my-domain.com" and "installed-folder" depend on your installation.

Kind Regards,
Melda

Please login or register to leave a response.

Showing 1 to 4 of 4 discussions