Sehari 3 kali post .. wah rekor nih
Selanjutnya mengkonfigurasi apache2 yang sudah ada, agar cacti tidak dapat di akses pada http://localhost/cacti namun dapat diakses pada http://cacti.localhost
Ubuntu Server 9.04 dengan Apache2 2.2.11 dan Cacti 0.8.7b.
Untuk cacti.localhost, dapat dikonfigurasi pada file /etc/hosts. Maklum namanya juga nyoba jadi pake local ajah dulu.
Asumsi apache2 dan cacti dah terinstall.
# pico /etc/apache2/sites-available/cacti.localhost
<VirtualHost *:80>
ServerName cacti.localhost
ServerAdmin admin@cacti.localhost
DocumentRoot /usr/share/cacti/site
DirectoryIndex index.php
<Directory /usr/share/cacti/site/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log-cacti.localhost
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log-cacti.localhost
ServerSignature On
</VirtualHost>
# a2ensite cacti.localhost
# pico /etc/cacti/apache.conf
Edit file /etc/cacti/apache.conf lalu tambahkan tanda # pada Alias
#Alias /cacti /usr/share/cacti/site
<DirectoryMatch /usr/share/cacti/site>
Options +FollowSymLinks
AllowOverride None
order allow,deny
allow from all
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag short_open_tag On
php_flag register_globals Off
php_flag register_argc_argv On
php_flag track_vars On
# this setting is necessary for some locales
php_value mbstring.func_overload 0
php_value include_path .
DirectoryIndex index.php
</IfModule>
</DirectoryMatch>
# /etc/init.d/apache2 restart
# links http://cacti.localhost
Cek hasilnya dengan menggunakan links ato lynx
Keren dah …
Untuk spine diubuntu 9.04 sebaiknya diupgrade ke versi cacti-spine*c.deb
Bisa diunduh di sini http://de.archive.ubuntu.com/ubuntu/pool/universe/c/cacti-spine/
atau bisa lewat kambing http://kambing.ui.ac.id/ubuntu/pool/universe/c/cacti-spine/
Sumber :
http://www.petersblog.org/node/840
