Anyone interested in #selfhosting with a little knowledge of #docker and #nginx wanna help me setup #friendica ?
-
@chebra I tried both the apache and the fpm images of Friendica. I tried connecting to the 8080 port which is the default (see https://hub.docker.com/_/friendica)
When going to the URL I got a page under /install listing all checks green, then clicked next which directed me to /index.php?pagename=install and that’s where it stopped in all tries…
I also tried putting nginx in front of it with letsencrypt certificates but the result is the same. -
@ruud When it stopped, how did it stop? White page? Error? Maybe make sure that the env variables are set correctly, from the docker hub page these might help: FRIENDICA_URL, FRIENDICA_DEBUGGING=true, check any suspicious messages in /var/www/friendica.log inside the container, or from `docker logs`. If you follow the section "Automatic installation" it should completely skip the install page.
-
@ruud well.. it's not your fault, I just tried it and I see the same behavior. It's trying to redirect everything to /install, including the manifest, which causes syntax error. I'll see if I can figure out what is broken, maybe just try previous version 2024.03
-
@chebra I actually saw I was missing the FRIENDICA_URL, and after setting that, it did the automatic installation… (Thanks to your post)
Their documentation isn’t foolproof..
Also their nginx.conf doesn’t work.
Now I need to figure out how to register an account, seems that’s disabled too. Didn’t see it in the docs yet
-
@chebra It’s just documented sooo poorly…
The signups are disabled, and I can’t find ANYWHERE how to enable it. I did configure the admin e-mail but now need to register the admin account…. -
> At this point visit your website again, and register your personal account with the same email as in the config.admin_email config value.
well hidden in https://wiki.friendi.ca/docs/install
-
@chebra Yes I tried that but I get ‘permission denied’
Also the ‘Sign Up’ button is missing from the front page so I guess registrations are disabled.
There must be an environment setting to enable them. ChatGPT suggested FRIENDICA_SIGNUP=true but that didn’t work. -
I found `'register_policy' => \Friendica\Module\Register::OPEN,` in sample config in /var/www/html/config/local-sample.config.php - so you'd need to copy that line into the config that's actually used (created by the install process).
-
-
@trendless @chebra Hmm yeah the gserver table is empty..
-
@trendless @chebra So registrations are enabled according to the local.config.php, but I don’t see that setting in the database anywhere, and the signup button isn’t there. Running auto install again did nothing.
-
Something must have failed during the installation and it didn't finish. I'd delete the database volume and start again, but keeping this local.config.php.
-
@chebra @trendless Recreated database empty, now this runs.
But still, no signup button… -
-
@chebra @trendless Creating a user now succeeded on the command line. I can login now. I see the setting is ‘Open’ but still no signup button…
-
@chebra @trendless I don’t think I changed anything but I have a signup button now… Need to figure out how to configure e-mail next..