my notes are for CactiEZ CD installations
Code: Select all
mkdir /SRC/CACTI/upgrades #<== my drop location for src files
wget http://www.cacti.net/downloads/cacti-0.8.6i.tar.gz
wget http://download.cactiusers.org/downloads/cacti-plugin-arch.zip
ls
tar -xvzf cacti-0.8.6i.tar.gz
ls
mysqldump -l --add-drop-table cacti > mysql.cacti -p
mv /var/www/html /var/www/html_old
mv cacti-0.8.6i /var/www/
mv /var/www/cacti-0.8.6i /var/www/html
vi /var/www/html_old/include/config.php
vi /var/www/html/include/config.php
cp /var/www/html_old/rra/* /var/www/html/rra/
cp -u /var/www/html_old/scripts/* /var/www/html/scripts/
cp -u -R /var/www/html_old/resource/* /var/www/html/resource/
chown -R apache.apache /var/www/html
mkdir plugin-arch
cp cacti-plugin-arch.zip plugin-arch/
cd plugin-arch/
unzip cacti-plugin-arch.zip
cp -a * /var/www/html/
cd /var/www/html
patch -p1 -N < cacti-plugin-0.8.6i.diff
vi include/config.php
# change db password, add plugins from old config.php
vi /var/www/html/include/config.php
vi /var/www/html_old/include/config.php
vi /var/www/html/include/config.php
copy plugins from old location
cd /var/www/html_old/plugins/
mv index.php index.php.old
cp -a * /var/www/html/plugins/
cd /var/www/html/plugins
chown -R apache.apache *
# I want to keep the old version around for a bit, but lock the dir down
chmod 750 /var/www/html_old