Re: [Postfixadmin-devel] config.local.php not being read.
Brought to you by:
christian_boltz,
gingerdog
From: <me...@td...> - 2009-04-13 15:18:18
|
On Sun, 12 Apr 2009, Christian Boltz wrote: > 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"; That was it. I missed the setup_password parameter but set it in config.inc.local when I needed to add the superuser. It never occurred to me that not having that parameter set would keep config.local.php from working. Am I missing how this config.inc.php vs config.inc.local works? I was thinking that the values set in config.inc.local will over write values set in config.inc.php but if a value parameter does not exist in config.local.php then the value in config.inc.php will be in effect. This would appear to be wrong since the default config.inc.php was set to $CONF['setup_password'] = 'changeme'; So my question is does config.inc.php get read at all if config.local.php exists? It would appear not but I just want to be sure. If my suspicions are correct then might I suggest indicating that in the comments to avoid others getting confused. Thanks for the help. Regards, -- Tom me...@td... Spamtrap address me...@td... |