Page Not Found 404 when after installation - hestiacp on ubuntu

Hi

I just installed v5.8.57 and cannot access the setup page after installation (https://mydomain.com/setup). the site root points to the public folder… however, it loads for about 10 seconds and then redirects to /setup with a page not found error 404. I have done extensive research but nothing works.

  • no error in storage/log
  • no error in nginx domain log file

any ideas @david @hillel ?

side note: I have been using v4 for five years now with no issues.

Hi,

Sorry, hard to say without any error logs. Are you following one of the guides linked in the docs?

You may want to try using Docker or one of the automated installers.

Is the database schema populated? It you are seeing the setup page continuously it would mean the app cannot read from the accounts table at all.

Based on my analysis, the app is trying to access the account table, but the database migration that creates the schema and the setup script that populates the database tables have not run.

[mydomain.com] shows the error – [500- Server Error… back to mydomain.com]

The error in […storage/logs/Laravel.log] shows – [production.INFO: account table not found]

If I run [php artisan migrate] in the CLI, the schemas are loaded, and the migrations run successfully. However, the app now loads for about 10sec before redirecting to [mydomain.com/setup] with the error [Page Not Found 404].

This is confirmed in [/var/log/nginx/domains/mydomain.com.log] with – […“GET /setup/ HTTP/2.0” 404 1358 …]

No new error was added in […storage/logs/Laravel.log]

I hope this provides greater clarification @david @hillel

@merfeli

Try changing in the .env

APP_DEBUG=false

to

APP_DEBUG=true

you may need to run php artisan optimize afterwards, this will show the exception on screen and will help debug.

@david and @hillel
My issue is resolved. The default nginx config in Hestia cp was the issue. I created a new web template with the recommended config for laravel.

Thank you.

1 Like

can you share the solution or the web template. Thank you!