LinkStackOrg / LinkStack

LinkStack - the ultimate solution for creating a personalized & professional profile page. Showcase all your important links in one place, forget the limitation of one link on social media. Set up your personal site on your own server with just a few clicks.
https://linkstack.org
GNU Affero General Public License v3.0
2.29k stars 233 forks source link

Setup failing between steps 3 and 4 on `/db` #354

Closed juekr closed 1 year ago

juekr commented 1 year ago

Platform: Debian GNU/Linux 11 Server type: NGINX PHP version: 8.2

Like others in this forum, my installation/configuration stops between steps 3 and 4 with a 403 on a URL ending with /db. Unlike others I have a nginx setup and after reading about the others' experiences, I could imagine that there is something failing with the htaccess or apache vhost configurations. But I have no idea how to tackle or even debug them with a nginx webserver (came preinstalled with my hoster). Any ideas on what to do to solve or further track down the problem?

JulianPrieber commented 1 year ago

I thought we fixed this issue a while ago.

You can skip the installation with example.com/skip.

juekr commented 1 year ago

/skip gives me a 404 as well – did I install an old version by accident?

JulianPrieber commented 1 year ago

Do other routes still work?

juekr commented 1 year ago

Like?

JulianPrieber commented 1 year ago

Like just example.com or example.com/mysql-test.

JulianPrieber commented 1 year ago

During the installation, the app is set up to redirect all unknown routes to the home/installer page. This means during setup, 404s shouldn't even be possible.

It will probably be best to reinstall the app.

The thing that confuses me is all that the /db route does is redirect you to the next step in the installer:

        if($request->database == 'MySQL'){
            return redirect(url('?mysql'));
        }else{
            return redirect(url('?4'));
        }
juekr commented 1 year ago

/ works and starts the config process again, /mysql-test produces another 404.

Did I maybe miss a step in the installation? Isn't it just "Download and extract the zip file"? Is there more to it?

JulianPrieber commented 1 year ago

On NGINX, you'll have to configure your block first for the app to function properly, but essentially yes. https://laravel.com/docs/9.x/deployment#nginx https://docs.littlelink-custom.com/getting-started/other-webservers/

One thing that's also important is that PHP is able to read and write to all the files, but in most cases this is possible by default.

JulianPrieber commented 1 year ago

It's nothing really different from installing WordPress.

jmdv-es commented 1 year ago

Hi @JulianPrieber, maybe I can share some light:

this error described by @juekr is also happening to me. It's happening while deploying the files in an IONOS web server.

But, using an OVH web server, the applications install without problem.

crackscout123 commented 1 year ago

I got the same issue, but fixed it by enabling .thacces but then encounterd another error the installer is looking for two file which dont exsist called "INSTALLING" and "INSTALLERLOCK" here is the error code: https://flareapp.io/share/W7zRk3k7#F55

crackscout123 commented 1 year ago

Im going to reinstall it on a different server cause I changed my provider. I'll poste an update when im done.

DrMxrcy commented 1 year ago

I am getting the same error on my docker install. I can install with a local IP, but the setup redirects the /db to HTTP and 404s

JulianPrieber commented 1 year ago

@DrMxrcy

I am getting the same error on my docker install. I can install with a local IP, but the setup redirects the /db to HTTP and 404s

If you're accessing the docker directly over the IP and port, then it works?

crackscout123 commented 1 year ago

Im going to reinstall it on a different server cause I changed my provider. I'll poste an update when im done.

It wont work, i gave up

JulianPrieber commented 1 year ago

For everyone still wondering what's causing this:

This is most likely a Vhost issue in your setup or reverse proxy. You need to set up your app to redirect everything to HTTPS. Cloudflare has an option to do this for you, with no additional setup. We have documentation on this for NGINX reverse proxy or web. Everything else should be documented here or online somewhere.

If anyone is having this issue with docker, set up your instance using the IP and port directly without a reverse proxy. Then on the config page, enable force HTTPS.

For anyone else, just skip the setup and you should be fine. On the setup page, visit /skip this generates a default admin profile, and you can use the app like normal. Then on the config page, enable force HTTPS.

You can log in with: admin@admin.com 12345678