LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-22-2005, 11:01 AM   #1
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
squid cache issue !!


I installed squid from source. (.tar.gz) it's installed nicly.

also,it started without any error. [checked in /var/log/messages]

under squid.conf file i have steup all the needed option for proxy settings.

cache_dir ufs /usr/local/squid/var/cache 2048 32 512

cache_access_log /usr/local/squid/var/logs/access.log

cache_log /usr/local/squid/var/logs/cache.log

cache_store_log /usr/local/squid/var/logs/store.log

Also, create cache directory. As under...

[root@domain cache]# pwd
/usr/local/squid/var/cache
[root@domain cache]#
[root@domain cache]#
[root@domain cache]# ls
00 02 04 06 08 0A 0C 0E 10 12 14 16 18 1A 1C 1E
01 03 05 07 09 0B 0D 0F 11 13 15 17 19 1B 1D 1F
[root@domain cache]#


[root@domain logs]# ls -l
total 0
-rw-r--r-- 1 root root 0 Jan 9 23:58 access.log
-rw-r--r-- 1 root root 0 Jan 9 23:58 cache.log
-rw-r--r-- 1 root root 0 Jan 9 23:58 store.log
[root@domain logs]#

But, it's not storing cache, access or store under log files.

it showing [0] for all the files.

am i doing some things wrong? please helpme...

Thanx in Adva...

-/Hitesh
 
Old 01-22-2005, 01:10 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
is ur squid sevrer working????

browse some pages and then see

regards
 
Old 01-22-2005, 01:36 PM   #3
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
I checked under /var/log/messages file after starting squid with following command,

/usr/local/squid/bin/squid start

It was started successfully. I can browser the net, but the page loading toooo slowly.

if i check all the log files. it's showing [0] byts

what could be the problem?

again thanx for quick reply.

-/Hitesh
 
Old 01-22-2005, 01:40 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
why are u using squid??

also do

service syslogd restart

and then check ur logs

regards
 
Old 01-22-2005, 11:48 PM   #5
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Quote:
why are u using squid??
I want to setup my RHEL 3 box as proxy server. so i can give net access to my other window$ client on LAN. that's why i use squid.


Quote:
service syslogd restart
I did this using redhat-config-services utilities, still no luck.

any other idea?

Thanx for help.

-/Hitesh
 
Old 01-23-2005, 01:48 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
if u want to share ur internet connection then go for ip forwarding
that is better than squid
squid is usefull for large organization

i have used both and i found squid not usefull for my home network of 4 Pcs
i now use ip forwading and it is fine

regards
 
Old 01-23-2005, 10:49 AM   #7
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
yes, i know that and i am learing how to setup proxy. i m trying to setup for my one linux box and wants to test whether i m getting fast pages or not.

As i told in my post it was wokring fine previosuly with both option 1) squid 2) ipforwarding/ masquerading.

BUT, that time i had use defaulst squid, [which install by defaults]

this time i uninstall default squid and complie squid through source (.tar.gz) and it's not working.

-/Hitesh
 
Old 01-24-2005, 06:57 AM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
any specific reason for not using that rpm packages???

also regarding ur log files going empty

maybe u would like to check out the permisions for these directories an files

although u r root but squid might be writing to these files as user squid i think the same way apache does it

regards
 
Old 01-24-2005, 11:41 AM   #9
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
I want to install and compile squid with source package. also, it has different file location if you install using source. [tar.gz]

Also, i know RPM base is easy to install. I have checked that permission. I don't think so it will cause the issue. bec'z at compile time it will set the permision for root and i using as root user. so NO issue with permission.

as far as i know if you install any package by RPM or source any package [inculde squid] will work as root user. so there is no point to think about as user or as root. I haven't try with non root user.

yes,if you configure services in such way then u have to check for it. like apache, but here issue with squid.

any way, any other idea ?

Thanx for an idea..

-/Hitesh
 
Old 02-17-2005, 07:28 PM   #10
Does
LQ Newbie
 
Registered: Jan 2005
Location: USA
Distribution: Slackware-current 2.6.10, Mandrake 10.1
Posts: 24

Rep: Reputation: 15
Are you still having problems with Squid?
 
Old 02-21-2005, 10:45 PM   #11
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
yes, still problem not sloved.

-/Hitesh
 
Old 02-22-2005, 12:11 PM   #12
Does
LQ Newbie
 
Registered: Jan 2005
Location: USA
Distribution: Slackware-current 2.6.10, Mandrake 10.1
Posts: 24

Rep: Reputation: 15
What does your squid.conf look like?
 
Old 02-23-2005, 04:56 PM   #13
bagira
LQ Newbie
 
Registered: Dec 2003
Location: Germany
Distribution: Gentoo
Posts: 27

Rep: Reputation: 15
Does '/usr/sbin/squid -z' help?
~bagira
 
Old 03-01-2005, 12:19 AM   #14
NetSnake
LQ Newbie
 
Registered: Sep 2004
Location: China
Distribution: Debian 3.0r2 unstable
Posts: 28

Rep: Reputation: 15
Are you sure your HTTP request is via Squid?
Config you browser and make it access Internet via your proxy server directly, and then see squid log.
 
Old 03-06-2005, 03:48 AM   #15
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Thanx for helping me.....

yes, HTTP request is via Squid. i have also set internet via proxy server also but still not working. any other idea?

-/Hitesh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring squid as a cache only usmanmehmood Linux - Networking 1 10-03-2005 03:58 PM
Squid Cache I think it is AJones Linux - Security 1 07-03-2005 06:50 AM
squid cache problem hasnain Linux - Networking 1 01-18-2005 02:17 PM
squid cache error woods Linux - Networking 3 10-29-2004 02:05 PM
clean up squid cache anoop_chandran Linux - Networking 4 12-19-2001 10:24 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration