Pages

Showing posts with label Linux Cacti. Show all posts
Showing posts with label Linux Cacti. Show all posts

How to Install Apache Server on Linux for Cacti

Step by Step Installation
Install Apache
Run these commands as root
cd /cacti-install
tar -zxvf httpd*
cd httpd*
./configure --prefix=/www –enable-so
make
make install
cd /www/bin
cp apachectl /etc/init.d/httpd
y
cd /etc/rc3.d/
ln -s ../init.d/httpd S85httpd
ln -s ../init.d/httpd K85httpd
cd /etc/rc5.d/
ln -s ../init.d/httpd S85httpd
ln -s ../init.d/httpd K85httpd
/www/bin/apachectl start
Apache Install Script

How to Install MYSql on Linux for Cacti

Install MySQL
Run these commands as root
cd /cacti-install
tar -zxvf mysql*
cd mysql*
./configure --prefix=/usr/local/mysql
make
make install
groupadd mysql
useradd -g mysql mysql
scripts/mysql_install_db
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
rm -f /etc/my.cnf
cp support-files/my-medium.cnf /etc/my.cnf
echo /usr/local/mysql/lib/mysql >> /etc/ld.so.conf
echo /usr/local/lib >> /etc/ld.so.conf
ldconfig –v
cp support-files/mysql.server /etc/init.d/mysql
/usr/local/mysql/bin/mysqld_safe --user=mysql &
Echo
cd /etc/rc3.d/
ln -s ../init.d/mysql S85mysql
ln -s ../init.d/mysql K85mysql
cd /etc/rc5.d/
ln -s ../init.d/mysql S85mysql
ln -s ../init.d/mysql K85mysql
cd /etc/init.d/
chmod 755 mysql
MySQL Install Script

Forex Trading