From ea4b061375689a9c05222cc424d0ed6da99b81fb Mon Sep 17 00:00:00 2001 From: mstevens Date: Sep 05 2017 09:54:19 +0000 Subject: Update Cacti's install procedure --- diff --git a/cacti.README.fedora b/cacti.README.fedora index 093883a..e68c047 100644 --- a/cacti.README.fedora +++ b/cacti.README.fedora @@ -1,4 +1,4 @@ -In order for Cacti to function properly, please edit the following: +In order for Cacti to function properly, please edit the following files: /etc/cacti/db.php /etc/cron.d/cacti @@ -6,25 +6,37 @@ In order for Cacti to function properly, please edit the following: The installation procedure, briefly summarized: - Create the cacti MySQL database: +1) Create the cacti MySQL database: - # mysqladmin create cacti + # mysqladmin -u root -p create cacti - Import the default cacti database: +2) Import the default cacti database: - # mysql cacti < /usr/share/doc/cacti/cacti.sql + # mysql -u root -p cacti < /usr/share/doc/cacti/cacti.sql - Create the user: +3) Create the cacti database user: - # mysql - mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser'; + # mysql -u root -p + mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser'; + mysql> flush privileges; - (Use a different password in the above GRANT command.) + (Use a different password in the above GRANT command.) + +4) Import mysql_tzinfo_to_sql to MySQL - Then visit http://localhost/cacti/ to complete the installation. + # mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql + +5) Set SELECT permission for cactiuser to mysql.time_zone_name + + # mysql -u root -p + mysql> use mysql; + mysql> GRANT SELECT ON mysql.time_zone_name TO cactiuser@localhost; + mysql> flush privileges; + +6) Then visit http://localhost/cacti/ to complete the installation. Cacti's install procedure is not fully compatible with mod_security. If you use mod_security, please uncomment the SecRuleRemoveById lines in /etc/http/conf.d/cacti.conf. -Cacti should work with SELinux. If you cannot get it to work, please file a bug. +Cacti should work with SELinux. If you cannot get it to work, please file a bug. \ No newline at end of file