44ae860
In order for Cacti to function properly, please edit the following files:
fe32fcf
fe32fcf
/etc/cacti/db.php
fe32fcf
/etc/cron.d/cacti
44ae860
/etc/httpd/conf.d/cacti.conf
fe32fcf
83d1b9f
Important:
83d1b9f
We recommend that you turnoff SELinux with setenforce 0 during the installation of cacti.
83d1b9f
fe32fcf
The installation procedure, briefly summarized:
fe32fcf
44ae860
1) Create the cacti MySQL database:
fe32fcf
44ae860
   # mysqladmin -u root -p create cacti
fe32fcf
44ae860
2) Import the default cacti database:
fe32fcf
44ae860
   # mysql -u root -p cacti < /usr/share/doc/cacti/cacti.sql
fe32fcf
44ae860
3) Create the cacti database user:
fe32fcf
44ae860
   # mysql -u root -p
44ae860
   mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser';
44ae860
   mysql> flush privileges;
fe32fcf
44ae860
   (Use a different password in the above GRANT command.)
44ae860
  
44ae860
4) Import mysql_tzinfo_to_sql to MySQL
fe32fcf
44ae860
   # mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
44ae860
  
44ae860
5) Set SELECT permission for cactiuser to mysql.time_zone_name
44ae860
44ae860
   # mysql -u root -p
44ae860
   mysql> use mysql;
44ae860
   mysql> GRANT SELECT ON mysql.time_zone_name TO cactiuser@localhost;
44ae860
   mysql> flush privileges;
44ae860
44ae860
6) Then visit http://localhost/cacti/ to complete the installation.
fe32fcf
fe32fcf
Cacti's install procedure is not fully compatible with mod_security. If you use
fe32fcf
mod_security, please uncomment the SecRuleRemoveById lines in
fe32fcf
/etc/http/conf.d/cacti.conf.
fe32fcf
83d1b9f
Cacti should work with SELinux. If you cannot get it to work, please file a bug.