Question By

Solved
Solved
info227

Apr 6th, 2022 05:12 AM

Hi, after having installed Wave, then all routes look broken. How can i get login screen?

bobbyiliev

Apr 6th, 2022 05:18 AM

Hi there,

How did you install Wave? Can you share more information about your setup and the exact error that you are getting?

info227

Apr 6th, 2022 05:31 AM

Hi, thankyou: i have installed it as in docs, i just receive 404 on any route from homepage. Ubuntu 20.04, php 8.1.

I just put in .env, my address instead APP_URL=http://wave.test

bobbyiliev

Apr 7th, 2022 06:25 AM

Best Answer

Hi there,

I believe that we just sorted it out via the GitHub discussion. But for future reference this is what we did:

  • I had to change the APP_ENV back to dev as if you set it to production it will try to load via HTTPS, but as you are using your server's IP address and do not have an SSL installed, the static resources like CSS, JS and etc. would fail to load. Once you have a domain + SSL you can change the env back to production

  • Regarding the routes, I've fixed that by adding the following to your Apache Vhost:

        <Directory /var/www/html/public>
            Options -Indexes +FollowSymLinks +MultiViews

            # Allow .htaccess files
            AllowOverride All

            Require all granted
        </Directory>

This basically allows the use of the .htaccess file in that directory, which is needed for Laravel to be able to handle its routes.

Report
1
info227

Apr 7th, 2022 07:20 AM

That's it! Thanks again Bobby....