OS: CentOS 7.6.1810
DB: 5.5.60 (mariadb)
PHP: 5.4.16
I followed the instructions at https://www.cacti.net/downloads/docs/html/ but, when I reach the part about trying it in a browser I get:
Code: Select all
FATAL: Connection to Cacti database failed. Please ensure:
the PHP MySQL module is installed and enabled.
the database is running.
the credentials in config.php are valid.
Code: Select all
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/cacti/include/global_constants.php on line 28
I did set date.timezone in /etc/php.ini:
Code: Select all
date.timezone = "America/Los_Angeles"
Code: Select all
$database_type = 'mysql';
$database_default = 'cacti';
$database_hostname = 'localhost';
$database_username = 'cacti';
$database_password = '<password>';
$database_port = '3306';
$database_retries = 5;
$database_ssl = false;
$database_ssl_key = '';
$database_ssl_cert = '';
$database_ssl_ca = '';
--
Stephen