Page 3 of 3

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 5:04 pm
by abrist
Are you editing these files from vi/nano, or are you editing them on a windows box? (through filezilla/cygwin spc/etc)?

Re: Can't Apply Configuration in Core Config Manager

Posted: Mon Mar 11, 2013 5:05 pm
by dc7772000
I'm using vim on the linux (centos) side.

Re: Can't Apply Configuration in Core Config Manager

Posted: Tue Mar 12, 2013 9:10 am
by mguthrie
Can you zip up and post your /usr/local/nagiosxi/html/config.inc.php file? If your server is public, then you can send it in a PM.

Re: Can't Apply Configuration in Core Config Manager

Posted: Tue Mar 12, 2013 10:30 am
by dc7772000
Here's the file

Re: Can't Apply Configuration in Core Config Manager

Posted: Tue Mar 12, 2013 10:52 am
by mguthrie
Ah, found the problem, you've got two entries in config.inc.php.

Line 9

Code: Select all

// base url
$cfg['base_url']="/nagiosxi";  // do not include http(s) or host name - this is the base from "http://localhost"
$cfg['use_https']=true;
and line 24

Code: Select all

// force http/https
$cfg['use_https']=false;  // determines whether cron jobs and other scripts will force the use of HTTPS instead of HTTP
The second entry is overriding the first.

Re: Can't Apply Configuration in Core Config Manager

Posted: Tue Mar 12, 2013 11:29 am
by dc7772000
I commented out the extra line and it appears to be working. Thanks for all your help.

Re: Can't Apply Configuration in Core Config Manager

Posted: Tue Mar 12, 2013 11:58 am
by mguthrie
You bet!