Re: [Postfixadmin-devel] config.local.php not being read.
Brought to you by:
christian_boltz,
gingerdog
From: Christian B. <pos...@cb...> - 2009-04-12 18:41:20
|
Hello, Am Sonntag, 12. April 2009 schrieb me...@td...: > On Sun, 12 Apr 2009, David Goodwin wrote: > > me...@td... wrote : > >> On Sat, 11 Apr 2009, me...@td... wrote: > >>> The following is what I have in config.local.php: > >>> > >>> <?php > >>> $CONF['configured'] = true; ... > > I wasn't aware of config.local.php - this is a new thing to me Oh, it's quite old ;-) svn annotate says: 151 christian_boltz // If you want to keep most settings at default values and/or want to ensure 151 christian_boltz // that future updates work without problems, you can use a separate config 151 christian_boltz // file (config.local.php) instead of editing this file and override some 151 christian_boltz // settings there. 251 GingerDog if (file_exists(dirname(__FILE__) . '/config.local.php')) { # for / 251 GingerDog include(dirname(__FILE__) . '/config.local.php'); 251 GingerDog } The basic idea was from me (r151, 2007-10-12), and you (GingerDog) then made the better inclusion code in r251 (2007-12-02) ;-) > So should I assume this will not work, is this something that is > likely to be fixed or am I asking the wrong person? I like the idea > of not having my config file overwritten during upgrades but it is > not the end of the earth either. Using config.local.php works for me without problems. If you are unsure if config.local.php is read on your system, add something like die ("reading config.local.php works"); to config.local.php ;-) After testing with your config.local.php, I'm quite sure it misses a setting. You have to add a setup password: (that's quite new! - r616) $CONF['setup_password'] = "topsecret"; After this change (and changing the database secrets to match my installation), I can login. If it still doesn't work, check if you have a typo in the filename ;-) Regards, Christian Boltz -- Ich freue mich auf das Eröffnungsspiel Deutschland gegen Costa Rica. Auf der einen Seite eine Bananenrepublik und auf der anderen Seite: Costa Rica. [Thomas Gottschalk, Wetten dass...?, 10.12.2005] |