ea4b061
In order for Cacti to function properly, please edit the following files:
fe32fcf
fe32fcf
/etc/cacti/db.php
fe32fcf
/etc/cron.d/cacti
c9b86e7
/etc/httpd/conf.d/cacti.conf
fe32fcf
900811e
Important:
900811e
We recommend that you turnoff SELinux with setenforce 0 during the installation of cacti.
900811e
fe32fcf
The installation procedure, briefly summarized:
fe32fcf
ea4b061
1) Create the cacti MySQL database:
fe32fcf
ea4b061
   # mysqladmin -u root -p create cacti
fe32fcf
ea4b061
2) Import the default cacti database:
fe32fcf
ea4b061
   # mysql -u root -p cacti < /usr/share/doc/cacti/cacti.sql
fe32fcf
ea4b061
3) Create the cacti database user:
fe32fcf
ea4b061
   # mysql -u root -p
ea4b061
   mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser';
ea4b061
   mysql> flush privileges;
fe32fcf
ea4b061
   (Use a different password in the above GRANT command.)
ea4b061
  
ea4b061
4) Import mysql_tzinfo_to_sql to MySQL
fe32fcf
ea4b061
   # mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
ea4b061
  
ea4b061
5) Set SELECT permission for cactiuser to mysql.time_zone_name
ea4b061
ea4b061
   # mysql -u root -p
ea4b061
   mysql> use mysql;
ea4b061
   mysql> GRANT SELECT ON mysql.time_zone_name TO cactiuser@localhost;
ea4b061
   mysql> flush privileges;
ea4b061
ea4b061
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
900811e
Cacti should work with SELinux. If you cannot get it to work, please file a bug.