Re: [Postfixadmin-devel] config.local.php not being read.
Brought to you by:
christian_boltz,
gingerdog
From: David G. <da...@co...> - 2009-04-12 15:46:22
|
me...@td... wrote : > Hi, > > Sorry to followup to my own post but I have more info to add. Please see below. > > On Sat, 11 Apr 2009, me...@td... wrote: > > > Hi, > > > > I did an svn co on trunk today (rev 626). I have a config.local.php that is > > not being read when I try to run setup.php. When I try to run setup.php, I > > get the following warning: > > Please edit config.inc.php - change $CONF['configured'] to true after > > setting your database settings > > > > If I modify config.inc.php as instructed above then the warning goes away > > but my database config does not get read since the settings for it are in > > config.local.php. I have another test system with svn rev 564 installed > > using the same config.local.php except for some machine specific changes and > > it works as advertised. > > > > Can someone give me an idea how to troubleshoot this problem? A diff of > > config.inc.php between the 2 systems shows nothing significant. The > > following is what I have in config.local.php: > > > > <?php > > $CONF['configured'] = true; > > > > $CONF['postfix_admin_url'] = 'http://foggy.tntechs.com/pfa'; > > > > $CONF['database_type'] = 'mysqli'; > > $CONF['database_host'] = 'localhost'; > > $CONF['database_user'] = 'mydb_user'; > > $CONF['database_password'] = 'my_passwd'; > > $CONF['database_name'] = 'postfix'; > > $CONF['database_prefix'] = ''; > > > > $CONF['encrypt'] = 'system'; > > > > $CONF['alias_control'] = 'YES'; > > $CONF['alias_control_admin'] = 'YES'; > > > > $CONF['create_mailbox_subdirs_prefix']=''; > > In config.inc.php we have he following statement: > /***************************************************************** > * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > * The following line needs commenting out or removing before the > * application will run! > * Doing this implies you have changed this file as required. > * i.e. configuring database etc; specifying setup.php password etc. > $CONF['configured'] = false; > */ > > If as it says above I simply comment out the configured statement > and make all of my local changes to config.local.php, I am then able to > run setup.php successfully and add my superuser account. The problem > is that I still cannot login to pfa. I never get the login screen, I keep > getting the "Welcome to Postfix Admin" screen. If I change the > $CONF['configured'] = false; to $CONF['configured'] = true; and uncomment > it, then I get a login screen and I am able to login successfully. > > This is a new install on a test box. No upgrades involved. > > Is this a bug or a feature? :-) If it is a bug should I file a bug report > somewhere? > I'd guess that config.local.php isn't being read in, to overwrite anything in config.inc.php I wasn't aware of config.local.php - this is a new thing to me thanks David. -- David Goodwin [ david at codepoets dot co dot uk ] [ http://www.codepoets.co.uk ] |