Install & Config squid-2.7.STABLE9 UbunSer 12.04

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby bellec » 01 Jan 2014, 01:55

SELAMAT TAHUN BARU 2014 untuk teman-teman FUI semua khusuunya yg Online saat ini :)
Topik Pertanyaan Pertama Tahun 2014
Saya memcoba Install squid-2.7.STABLE9 di Ubuntu Server 12.04.3 LTS
dan terkendala dalam kelanjutan konfigurasinya, saya harap teman2 dan master2 FUI bersedia membantu karna kepercayaan saya soal tukar pendapat masalah Ubuntu cuma di Forum ini :blush:

saya memulai dari sini setelah semua update yg diperlukan sudah selesai
Tampilkan
# apt-get install gcc build-essential
# wget http://www.squid-cache.org/Versions/v2/ ... E9.tar.bz2
# tar xvf squid-2.7.STABLE9.tar.bz2 && cd squid-2.7.STABLE9
#

sampai disini sukses sepertinya

mesin yg sy gunakan AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
dengan compile seperti dibawah ini
Tampilkan
CHOST="x86_64-pc-linux-gnu"CFLAGS="-march=k8 -O2 -pipe"CXXFLAGS="${CFLAGS}" \
./configure -prefix=/usr -exec-prefix=/usr -bindir=/usr/sbin -sbindir=/usr/sbin \
-libexecdir=/usr/lib/squid -sysconfdir=/etc/squid -localstatedir=/var/spool/squid \
-datadir=/usr/share/squid --enable-gnuregex --enable-async-io=24 --with-aufs-threads=24 \
--with-pthreads --with-aio --with-dl --enable-storeio=aufs,null \
--enable-removal-policies=heap --enable-icmp --enable-delay-pools --disable-wccp \
--enable-snmp --enable-cache-digests --enable-default-err-language=English \
--enable-err-languages=English --enable-linux-netfilter --disable-ident-lookups \
--with-maxfd=65535 --enable-follow-x-forwarded-for --enable-large-cache-files \
--with-large-files --enable-referer-log

dan juga tidak ada error

lanjut saya lakukan
Tampilkan
make
make install

dan sepertinya tdk ada masalah :)
squid -v hasinya
Tampilkan
root@proxy:~# squid -v
Squid Cache: Version 2.7.STABLE9
configure options: '-prefix=/usr' '-exec-prefix=/usr' '-bindir=/usr/sbin' '-sbindir=/usr/sbin' '-libexecdir=/usr/lib/squid' '-sysconfdir=/etc/squid' '-localstatedir=/var/spool/squid' '-datadir=/usr/share/squid' '--enable-gnuregex' '--enable-async-io=24' '--with-aufs-threads=24' '--with-pthreads' '--with-aio' '--with-dl' '--enable-storeio=aufs,null' '--enable-removal-policies=heap' '--enable-icmp' '--enable-delay-pools' '--disable-wccp' '--enable-snmp' '--enable-cache-digests' '--enable-default-err-language=English' '--enable-err-languages=English' '--enable-linux-netfilter' '--disable-ident-lookups' '--with-maxfd=65535' '--enable-follow-x-forwarded-for' '--enable-large-cache-files' '--with-large-files' '--enable-referer-log'

setelah itu saya sangat ragu untuk melanjutkan karna tidak memahami perintah2 selanjutnya
dengan Pengaturan HDD, pengaturan cache seperti dibawah ini

Tampilkan
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 30G 1.7G 27G 6% /
udev 3.7G 4.1k 3.7G 1% /dev
tmpfs 1.5G 254k 1.5G 1% /run
none 5.3M 0 5.3M 0% /run/lock
none 3.8G 0 3.8G 0% /run/shm
/dev/sda1 496M 51M 421M 11% /boot
/dev/sdb5 45G 58k 43G 1% /cache4
/dev/sdb6 45G 58k 43G 1% /cache5
/dev/sdb7 45G 58k 43G 1% /cache6
/dev/sda9 45G 58k 43G 1% /cache2
/dev/sdb8 45G 58k 43G 1% /cache7
/dev/sda10 45G 58k 43G 1% /cache3
/dev/sda6 30G 578M 28G 3% /home
/dev/sda8 45G 58k 43G 1% /cache1


Mohon bantuan pada teman2 dan Mater2 FUI semua langkah selanjutnya yang harus saya lakukan :)
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby bellec » 01 Jan 2014, 03:36

akhirnya salah juga :confused:
Tampilkan
2014/01/01 03:32:40| Creating Swap Directories
FATAL: Failed to make swap directory /cache1/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache2/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache3/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache4/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache5/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache6/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache7/00: (13) Permission denied
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 4464 KB
Page faults with physical i/o: 0
root@proxy:~#

dimana salahnya Teman ??
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: Install & Config squid-2.7.STABLE9 UbunSer 12.04

Postby nif » 01 Jan 2014, 06:28

ini om;
[quote=bellec]FATAL: Failed to make swap directory ... : (13) Permission denied

silahkan diteliti lagi pengaturan permission-nya.