cacti/cacti.README.fedora

46 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2017-09-05 09:54:19 +00:00
In order for Cacti to function properly, please edit the following files:
2016-04-15 15:13:41 +00:00
/etc/cacti/db.php
/etc/cron.d/cacti
/etc/httpd/conf.d/cacti.conf
2016-04-15 15:13:41 +00:00
2019-01-03 17:48:21 +00:00
Important:
We recommend that you turnoff SELinux with setenforce 0 during the installation of cacti.
2016-04-15 15:13:41 +00:00
The installation procedure, briefly summarized:
2017-09-05 09:54:19 +00:00
1) Create the cacti MySQL database:
2016-04-15 15:13:41 +00:00
2017-09-05 09:54:19 +00:00
# mysqladmin -u root -p create cacti
2016-04-15 15:13:41 +00:00
2017-09-05 09:54:19 +00:00
2) Import the default cacti database:
2016-04-15 15:13:41 +00:00
2017-09-05 09:54:19 +00:00
# mysql -u root -p cacti < /usr/share/doc/cacti/cacti.sql
2016-04-15 15:13:41 +00:00
2017-09-05 09:54:19 +00:00
3) Create the cacti database user:
2016-04-15 15:13:41 +00:00
2017-09-05 09:54:19 +00:00
# mysql -u root -p
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser';
mysql> flush privileges;
2016-04-15 15:13:41 +00:00
2017-09-05 09:54:19 +00:00
(Use a different password in the above GRANT command.)
4) Import mysql_tzinfo_to_sql to MySQL
2016-04-15 15:13:41 +00:00
2017-09-05 09:54:19 +00:00
# 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.
2016-04-15 15:13:41 +00:00
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.
2019-01-03 17:48:21 +00:00
Cacti should work with SELinux. If you cannot get it to work, please file a bug.