Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2220

[3.3.x] Support Forum • Re: Managing phpbb via CLI

$
0
0
Any activity of bringing a vanilla installation of phpbb up to speed for a running setup. There are settings that can be done via the UI, and somehow I'd expect a CLI to allow me doing the same via command line. Now there is a command to get and set configuration parameters. Setting takes two parameters: a key and the value. But what are the known keys? Since there is no list function, I also cannot print the current values and compare to what I want to have.
Looks like I found a value that gives a meaningful result:

Code:

php bin/phpbbcli.php config:get captcha_plugincore.captcha.plugins.recaptcha_v3
Now a lot of people might wonder how I found out captcha_plugin.
After all in phpbb's database there is a table called phpbb_config. The first column config_name apparently has the parameter names that can be read and set via the cli.

So the list function I was expecting to find could be as simple as

Code:

mariadb -e "select * from phpbb_config" phpbb
Alternatively add this list of parameters to the documentation.

Statistics: Posted by hiran — Tue Apr 02, 2024 7:05 am



Viewing all articles
Browse latest Browse all 2220

Trending Articles