Why Nostr? What is Njump?
2025-03-28 20:41:00

utopiArte on Nostr: Friendica Support Hi there, working on moving old friendica sites from a shared ...



Hi there,
working on moving old friendica sites from a shared hosting to a VPS, I ran into the following problem I can't find a solution for. This actually happens with one 2021.04 instance but not with another (anymore), so I'm crosschecking all the settings but can't find how to solve this. Both sites were installed as 2012.04 from the start:


not working version wrote:This is Friendica, version 2021.04 that is running at the web location sub.domain.com/var/www/subdomaincom. The database version is 1413/1413, the post update version is 1400/1400.

working version wrote:This is Friendica, version 2021.04 that is running at the web location sub.domain.com. The database version is 1413/1413, the post update version is 1400/1400.

As visible in the screen, the site also displays the following path on top of the page, and of course calls that URL:
sub.domain.com/var/www/subdomaincom

Different intents to fix this by changing or deleting the following settings from the console didn't work out:
system.basepath => /var/www/domaincom
system.urlpath => /var/www/domaincom/

Even more astonishing, sending the following setting with the console:
/bin/console config system url https://sub.domain.com
.. the site is displayed and works as it should be for a few minutes, and than falls back into the wrong behavior, like if the worker changes something when ever the cron kicks in. In that time span I can log in and even go thru the admin settings but this setting is not available.

Intents to modify the following specifications in local.config.php didn't work out either:
'system.basepath' => '',
'url.basepath' => '',
'system.urlpath'=> '',
At least I figured out/ realized that url. and system. actually shouldn't be used at all as:
'config' => [
],
'system' => [
],
.. are actually "in charge" of defining that. So now I'm not sure either if those wrong lines somehow made it from local.config.php into the DB and are now part of the problem.I found this conversation by on github:
Table config, cat = "system" AND key = "basepath"


and it actually looks like this is exactly te problem but I have no experience at all with mysql over CLI SSH and don't know what commands to use to delete the apparently wrong setting in the DB.

Is there a way to delete entries with bin/console?
I did manage to change some settings from there but couldn't find any hint how to "delete" an entry entirely from there:
/var/www/inversioncom/bin/console config -h
console config - Manage site configuration
Synopsis
bin/console config <category> <key> <value> [-h|--help|-?] [-v]

bin/console config system basepath /
system.basepath <= /

Author Public Key
npub1294khcygmzxr8fudt4dany08xnz7w3ufqqf4f835regcwpdwqamq82upjh