LANGKAH-LANGKAH INSTALLASI DAN KONFIGURASI
QoS CBQ WEB-BASED PADA LINUX REDHAT 9.0
###############################################
I. PERSIAPAN AWAL
------------------
Install Redhat Linux 9.0, dengan pilihan installasi "SERVER",
paket aplikasi yang tidak diinstall dengan paket tarball
dapat dinstall pada waktu proses installasi ini.
Paket aplikasi yang harus diinstall (pilih) antara lain :
[1]. Perl - perl-5.8.0-88.i386.rpm
\ perl-CGI-2.81-88.i386.rpm
\ perl-DBI-1.32-5.i386.rpm
\ perl-CPAN-1.61-88.i386.rpm
\ perl-suidperl-5.8.0-88.i386.rpm
\ perl-TimeDate-1.1301-5.noarch.rpm
\ perl-Archive-Tar-0.22-29.noarch.rpm
\ perl-HTML-Parser-3.26-17.i386.rpm
\ perl-HTML-Tagset-3.03-28.noarch.rpm
\ perl-libwww-perl-5.65-6.noarch.rpm
[2]. Squid - squid-2.5.STABLE1-2.i386.rpm
[3]. IPTables - iptables-ipv6-1.2.7a-2.i386.rpm
[4]. MySQL - mysql-3.23.54a-11.i386.rpm
\ mysql-server-3.23.54a-11.i386.rpm
II. INSTALLASI PAKET TARBALL
-----------------------------
* Sebagai 'root'
[1]. Installasi Apache Web Server
tar -xvf httpd-2.0.54.tar
cd httpd-2.0.54/
./configure --enable-http --enable-suexec --enable-cgi --enable-cgid --enable-so --enable-header --enable-ssl --enable-proxy --enable-proxy-http --enable-proxy-ftp --enable-proxy-connect --enable-rewrite
make; make install
useradd -s /bin/false apache
cp conf/httpd_init /etc/rc.d/init.d/httpd
chmod 755 /etc/rc.d/init.d/httpd
chkconfig --add httpd
chkconfig --level 3 httpd on
cp conf/httpd.conf /usr/local/apache2/conf/
cp conf/ca.* /usr/local/apache2/conf/
cp conf/qoscbq-httpd.conf /qoscbq/config/
[2]. Installasi Paket Library PHP
[x] freetype
tar -zxvf freetype-2.1.9.tar.gz
cd freetype-2.1.9/
./configure
make; make install
[x] zlib
tar -zxvf zlib-1.2.2.tar.gz
cd zlib-1.2.2/
./configure
make; make install
[x] libpng
tar -zxvf libpng-1.2.8-config.tar.gz
cd libpng-1.2.8-config/
./configure
make; make test; make install
[x] GD (untuk Jpgraph)
tar -zxvf gd-2.0.33.tar.gz
cd gd-2.0.33/
./configure
make; make install;
[3]. Installasi PHP
tar -xvf php-4.3.8.tar
cd php-4.3.8/
./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-fastcgi --with-openssl --with-mysql=/usr --with-zlib --with-gd --with-freetype --enable-bcmath --with-openssl --enable-calendar --enable-safe-mode --enable-memory-limit --with-tiff --with-png --enable-gd-imgstrttf --enable-gd-native-ttf --enable-inline-optimization --enable-mbstring --enable-mbregex
cp conf/php.ini /usr/local/lib
[4]. Installasi SNMP-extension LINUX-QOS dan Net-SNMP
tar -zxvf snmp-extension-0.2.0.tar.gz
tar -zxvf net-snmp-5.1.4.pre1.tar.gz
cp tree-new-model/QOS.txt net-snmp-5.1.4.pre1/mibs/
cp tree-new-model/source/* net-snmp-5.1.4.pre1/agent/mibgroup/
cd net-snmp-5.1.4.pre1/
./configure --with-perl-modules --enable-embedded-perl --enable-shared --with-mib-modules=qos
make; make test; make install
mkdir -p /usr/local/etc/snmp
cp conf/snmp.conf /usr/local/etc/snmp
[5]. Installasi cgilib, libart_lgpl dan RRDTool
tar -zxvf cgilib-0.5.tar.gz
cd cgilib-0.5/
make CC=gcc CFLAGS="-O3 -fPIC -I."
cp *.h /usr/local/include
cp libcgi* ../usr/local/lib
tar -zxvf libart_lgpl-2.3.17.tar.gz
cd libart_lgpl-2.3.17
./configure
make; make install
tar -zxvf rrdtool-1.2.6.tar.gz
cd rrdtool-1.2.6/
./configure --enable-perl-site-install
make; make install;
[6]. Tambahkan isi file pada conf/ld.so.conf kedalam /etc/ld.so.conf
dan eksekusi /sbin/ldconfig untuk mengaktifkan
semua paket installasi tarball
III. KONFIGURASI
-----------------
[1]. CBQ Script
cp cbq-script/cbq.init-v0.7.3 /etc/rc.d/init.d/cbq.init
chmod 755 /etc/rc.d/init.d/cbq.init
chown apache.root /etc/rc.d/init.d/cbq.init
chown apache.root /var/cache/cbq.init
mkdir -p /etc/sysconfig/cbq/
--
cp cbq-script/cbq-class/* /etc/sysconfig/cbq/
chmod 600 /etc/sysconfig/cbq/*
chown -R apache.apache /etc/sysconfig/cbq/
chkconfig --add cbq.init
chkconfig --level 3 cbq.init on
[2]. Squid dan Iptables
cp conf/squid.conf /etc/squid/
cp conf/iptables /etc/sysconfig/
[3]. QoSCBQ
mkdir /qoscbq
cp -r qoscbq/* /qoscbq/
chown -R apache.apache /qoscbq/
--tambahkan 2 baris berikut kedalam /etc/crontab
*/1 * * * * root /qoscbq/bin/qos_traffic.pl > /dev/null
*/1 * * * * root /qoscbq/bin/trap_datacbq.pl > /dev/null
*/5 * * * * root /qoscbq/bin/rrd_traffic.pl > /dev/null
IV. AKHIR INSTALLASI & KONFIGURASI
------------------------------------
[1]. Menjalankan cbq-init, Apache, Squid, Iptables dan MySQL
/etc/rc.d/init.d/cbq.init compile
/etc/rc.d/init.d/cbq.init start
/etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/squid start
/etc/rc.d/init.d/iptables start
/etc/rc.d/init.d/mysql start
[2]. MySQL CBQ Database
--sebagai user 'root'
mysql> use mysql;
mysql> CREATE DATABASE dbqoscbq;
mysql> GRANT ALL ON dbqoscbq.* TO cbqadmin@localhost IDENTIFIED BY 'admincbq';
mysql> flush privileges;
shell> mysql -u cbqadmin -p dbqoscbq < source/mysql/cbq_sql_script.sql
* Draft 01, dibuat oleh Zainal Abidin
Selasa, 09 Agustus 2006 jam 01:53:43 dini hari
* Draft 02, dibuat oleh Zainal Abidin
Selasa, 17 Agustus 2006 jam 14:49:12 siang
* Final, dibuat oleh Zainal Abidin
Rabu, 30 Agustus 2006 jam 10:13:58 siang
* Aplikasi akan di-Upload kemudian
(still looking for a place)
No comments:
Post a Comment