Page 1 of 1
[SOLVED} New install problem
Posted: Wed Sep 17, 2014 7:33 pm
by cantass
Just downloaded CMSMS through Bitnami. Running on a Mac with OS X 10.9.4
On charging up and running application I get the following error:-
Notice: Undefined index: HTTPS in /Applications/mampstack-5.4.26-0/apps/cmsmadesimple/htdocs/config.php on line 13
This is the offending line:
if ($_SERVER['HTTPS'] == 'on') {
$config['root_url'] = 'https://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
} else {
$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
}
Being brand new at this any help would be appreciated
Brian
Re: New install problem
Posted: Wed Sep 17, 2014 8:30 pm
by Jo Morg
cantass wrote:On charging up and running application I get the following error:-
Notice: Undefined index: HTTPS in /Applications/mampstack-5.4.26-0/apps/cmsmadesimple/htdocs/config.php on line 13
This is a
notice, not an
error, and (in this case) won't affect CMSMS in any way. You may need to change the error level of your server so that it doesn't display
notices or
warnings.
cantass wrote:This is the offending line:
if ($_SERVER['HTTPS'] == 'on') {
$config['root_url'] = 'https://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
} else {
$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
}
This line is not created by CMSMS normal install, and it shouldn't be needed at all, however if it is needed, a quick fix may eventually be this (note the
@):
Code: Select all
if (@$_SERVER['HTTPS'] == 'on') {
$config['root_url'] = 'https://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
} else {
$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
}
Re: New install problem
Posted: Wed Sep 17, 2014 8:35 pm
by cantass
Thanks for the prompt response. I do not understand why this is not a normal CMSMS install (unless it is due to it being downloaded from Bitnami) as I have only just installed it.
Not the less, thanks for your help.
Brian
Re: [SOLVED} New install problem
Posted: Wed Sep 17, 2014 8:55 pm
by Jo Morg
cantass wrote:I do not understand why this is not a normal CMSMS install (unless it is due to it being downloaded from Bitnami) as I have only just installed it.
I never tried Bitnami myself, but a stock install of CMSMS would create a config.php similar to this one:
Code: Select all
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'hostname';
$config['db_username'] = '***************';
$config['db_password'] = '***************';
$config['db_name'] = 'dbname';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'Europe/Lisbon';
AFAIK, if there is already one created, CMSMS won't overwrite it, allowing
one click installs or
server auto install scrips to create a customized one.
Note: I also recommend to read the reference pdf that comes with CMSMS and which can be usually found on: <root_of_cmsms>/doc/CMSMS_config_reference.pdf