[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howtos:security:install_cacti_on_slackware [2012/09/26 03:11 (UTC)] – moved from the general howtos namespace mfillpothowtos:security:install_cacti_on_slackware [2012/12/19 22:57 (UTC)] (current) – removed arfon
Line 1: Line 1:
-<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> 
-====== Install Cacti On Slackware ====== 
  
-1) Enable [[howtos:network_services:httpd|httpd]] \\ 
-     vi /etc/httpd/httpd.conf 
-     CHANGE: 
-     #Include /etc/httpd/mod_php.conf 
-      
-     TO: 
-     Include /etc/httpd/mod_php.conf 
-      
-     CHANGE: 
-     DirectoryIndex index.html 
-      
-     TO: 
-     DirectoryIndex index.html index.php index.pl 
- 
-     fix php time zone: 
-     vi /etc/httpd/php.ini 
-     UNCOMMENT: date.timezone = America/Chicago <--and change to the right timezone 
- 
-2) Install rrd (using sbopkg)\\ 
- 
-3) Install cacti (using sbopkg)\\ 
- 
-4) Add a user if needed: \\ 
- 
-     adduser cacti 
- 
-5) Get [[howtos:databases:install_mysql_on_slackware|MySQL]] working: 
- 
-     NOTE: In /etc/rc.d/rc.mysqld COMMENT OUT: SKIP="--skip-networking" 
- 
-6) Setup the cacti database: 
- 
-     shell> mysqladmin -u root -p create cacti 
-     shell> locate cacti.sql  (should find cacti.sql) 
-     shell> mysql -u root -p cacti < $(locate cacti.sql) 
-          HINT: If you get: "locate: fatal error: Could not find user database", run updatedb then retry. 
-     shell> mysql -u root -p cacti 
-     mysql> update user_auth set password=md5('admin') where username='admin'; <---may not be needed 
-     mysql> flush privileges; 
-     mysql> exit 
- 
-     shell> use mysql 
-     mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser'; 
-     mysql> flush privileges; 
-     mysql> exit 
- 
- 
-7) VERIFY /var/www/htdocs/cacti/include/config.php: 
- 
- $database_type = "mysql"; 
- $database_default = "cacti"; 
- $database_hostname = "localhost"; 
- $database_username = "cactiuser"; 
- $database_password = "cactiuser"; 
- 
-8) Give the user ownership of the data directories: 
- 
-     shell> chown -R cacti /var/www/htdocs/cacti/rra 
-     shell> chown -R cacti /var/log/cacti 
- 
- 
-9) Set up the poller cron job: 
-     AS USER cacti: 
-     crontab -e 
-          */5 * * * *  php /srv/www/htdocs/cacti/poller.php > /dev/null 2>&1 
- 
- 
-10) Run the web install: Open a web browser and go to: http://YOUR_MACHINE/cacti/install.php 
- 
- 
- 
-====== Sources ====== 
-<!-- If you are copying information from another source, then specify that source --> 
-<!-- * Original source: [[http://some.website.org/some/page.html]] --> 
-<!-- Authors are allowed to give credit to themselves! --> 
-  * Originally written by [[wiki:user:arfon | arfon]] 
-<!-- * Contributions by [[wiki:user:yyy | User Y]] --> 
- 
-<!-- Please do not modify anything below, except adding new tags.--> 
-<!-- You must remove the tag-word "template" below before saving your new page --> 
-{{tag>howtos software cacti author_arfon}} 
 howtos:security:install_cacti_on_slackware ()