No access to Cacti after set "Force Connections over HTTPS"

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Moderators, Developers

Post Reply
Author
Message
hamrad
Posts: 1
Joined: Tue Jul 24, 2018 2:29 am

No access to Cacti after set "Force Connections over HTTPS"

#1 Post by hamrad » Tue Jul 24, 2018 4:18 am

Hello!
CentOS 7 x86_64, Cacti 1.1.38, RRDTool 1.7.0, MariaDB 10.3.8
Yesterday, in the configuration of Cacti, I marked the "Force Connections over HTTPS" checkbox (why I do it?..). After that, access to the web interface Cacti disappeared. When I typing the link in the browser {ip_address}/cacti, the link is automatically corrected to https://{ip_address}/cacti. I found the file named "global_settings.php" in the directory with Cacti installed and found the lines associated with the inclusion of this setting. Here is their content:
'force_https' => array(
'friendly_name' => __('Force Connections over HTTPS'),
'description' => __('When checked, any attempts to access Cacti will be redirected to HTTPS to ensure high security.'),
'default' => '',
'method' => 'checkbox',
),
The "default" parameter is apparently empty. I looked through similar blocks in this file and tried to substitute the value 0 and off. Every time after changing this setting, I restarted the httpd.service. Unfortunately, there is no effect...
Tell me please, maybe something somewhere else needs to be changed?...
Thank You!

netniV
Cacti Guru User
Posts: 2885
Joined: Sun Aug 27, 2017 12:05 am

Re: No access to Cacti after set "Force Connections over HTT

#2 Post by netniV » Tue Jul 24, 2018 10:45 am

First, check the current status. If the field is blank or the row is missing entirely, this means that the setting is off:

Code: Select all

select * from settings where name = 'force_https';
If you need to stop forcing HTTPS because you have not configured apache to use it, run one of the two following commands:

Code: Select all

update settings set value = '' where name = 'force_https';
or

Code: Select all

delete from settings where name = 'force_https';

bensiu
Posts: 1
Joined: Sat Sep 02, 2017 1:10 am

Re: No access to Cacti after set "Force Connections over HTT

#3 Post by bensiu » Tue Jan 15, 2019 9:19 am

Modify this file:
<cacti path>/include/global.php

then restart the apache

netniV
Cacti Guru User
Posts: 2885
Joined: Sun Aug 27, 2017 12:05 am

Re: No access to Cacti after set "Force Connections over HTT

#4 Post by netniV » Wed Jan 16, 2019 5:41 am

You should not need to modify that file. If you are modifying that file, something else is wrong.

Post Reply