Page 1 of 1

[Solved] Db password config.php docker

Posted: Thu Apr 09, 2020 6:52 am
by Pierp
I have already searched for solution on this forum , but it doens't work

I have to change the mariadb password on php side and I have searched for config.php
phpBB was installed on docker

but config.php has no password or $variable to manage
Do you know where is the right config.php ?

Code: Select all

root@95593253dc0a:/# find / -name config.php

Code: Select all

/opt/bitnami/phpbb/config.php
/opt/bitnami/phpbb/phpbb/template/twig/extension/config.php
/opt/bitnami/phpbb/phpbb/search/sphinx/config.php
/opt/bitnami/phpbb/phpbb/db/migration/tool/config.php
/opt/bitnami/phpbb/phpbb/di/extension/config.php
/opt/bitnami/phpbb/phpbb/config/config.php
/opt/bitnami/phpbb/phpbb/install/helper/config.php
Thanks so much

Re: Db password config.php

Posted: Thu Apr 09, 2020 7:36 am
by Mick
Presumably you don’t have a back up? You can try Knowledge Base - Rebuilding Your config.php File or asking your host, they should have those details and I would have thought your host would have emailed those details to you in the first place. The phpBB config.php is in the board root btw.

Re: Db password config.php

Posted: Thu Apr 09, 2020 4:22 pm
by Lumpy Burgertushie
in that list you posted, you are looking in the wrong place.

if I am not mistaken bitnami is the program that installs phpbb for you.
in the first place you should install it yourself and not use the once click installs.

once the board is installed you would find the config.php file in the directory you installed it to, not in the directory you installed it from.

before installation that config.php file is blank. after installation it would look something like this:

Code: Select all

<?php
// phpBB 3.3.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'phpbb\\db\\driver\\mysqli';
$dbhost = '';
$dbport = '';
$dbname = 'yours';
$dbuser = 'yours';
$dbpasswd = 'yours';
$table_prefix = 'phpbb_';
$phpbb_adm_relative_path = 'adm/';
$acm_type = 'phpbb\\cache\\driver\\file';

@define('PHPBB_INSTALLED', true);
 @define('PHPBB_DISPLAY_LOAD_TIME', true);
 @define('DEBUG', true);
 @define('DEBUG_CONTAINER', true);
open it only in a good text editor like notepad++

robert

Re: Db password config.php docker

Posted: Fri Apr 10, 2020 6:23 pm
by Pierp
I'm sry it was my fault. I logged in on the wrong instance of the container . Solved
Thannks