Re: [Postfixadmin-devel] config.local.php not being read.
Brought to you by:
christian_boltz,
gingerdog
From: <me...@td...> - 2009-04-12 14:44:21
|
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? Regards, -- Tom me...@td... Spamtrap address me...@td... |