Menurut http://wiki.squid-cache.org/SquidFaq/CacheManager#What_is_the_cache_manager.3F cache manager adalah :
“Cache Manager (cachemgr.cgi) adalah utilitas CGI untuk menampilkan statistik tentang proses squid sebagaimana yang sedang berjalan. Cache Manager adalah cara mudah untuk mengelola cache dan melihat statistik tanpa login ke server.”
Oleh karena itu apanbila anda menjadi admin pada cache server ada baiknya di-install pula cache managernya. Berikut ini adalah pengalaman instalasi saya pada debian squeeze :
-
- Install squid3-cgi & apache2
root@
constantine
:~# apt-get install squid3-cgi apache2
-
- Cek konfigurasi squid, dan pastikan mempunyai konfigurasi spt dibawah ini
http_port 127.0.0.1:3128
-
- menambahkan konfigurasi pada apache2 agar menampilkan cachemgr.cgi
root@constantine:~# touch /etc/apache2/conf.d/squid-cachemgr
root@constantine:~# vim /etc/apache2/conf.d/squid-cachemgr
ScriptAlias /squid/cgi-bin/cachemgr.cgi /usr/lib/cgi-bin/cachemgr3.cgi
<Location /squid/cgi-bin/cachemgr.cgi>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName “Squid3 CacheManager”
AuthUserFile /etc/apache2/webpasswd
Require valid-user
</IfModule>
</Location>
-
- Cek konfigurasi apache, apabila tidak ada error restart service apache
root@constantine:~# apache2ctl configtest
root@constantine:~# apache2ctl restart
-
- Membuat file untuk authentikasi user yg diperbolehkan mengakses cachemgr.cgi
misal username : admin, password : passwordadmin
root@constantine:~# htpasswd -c /etc/apache2/webpasswd admin
New password: [passwordadmin]
Re-type new password: [passwordadmin]
Adding password for user admin
-
- Mengakses cache manager yang telah dibuat, apabila ditanya username & password, masukkan seperti yang diatas
http://10.122.67.55/squid/cgi-bin/cachemgr.cgi
atau
http://ip_address_cache_server_anda/squid/cgi-bin/cachemgr.cgi
- SIlakan menganalisa performa cache server anda dengan berpatokan pada http://wiki.squid-cache.org/SquidFaq/CacheManager
thx to :