LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   squid cache issue !! (https://www.linuxquestions.org/questions/linux-enterprise-47/squid-cache-issue-280854/)

hitesh_linux 01-22-2005 11:01 AM

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

masand 01-22-2005 01:10 PM

is ur squid sevrer working????

browse some pages and then see

regards

hitesh_linux 01-22-2005 01:36 PM

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

masand 01-22-2005 01:40 PM

why are u using squid??

also do

service syslogd restart

and then check ur logs

regards

hitesh_linux 01-22-2005 11:48 PM

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

masand 01-23-2005 01:48 AM

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

hitesh_linux 01-23-2005 10:49 AM

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

masand 01-24-2005 06:57 AM

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

hitesh_linux 01-24-2005 11:41 AM

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

Does 02-17-2005 07:28 PM

Are you still having problems with Squid?

hitesh_linux 02-21-2005 10:45 PM

yes, still problem not sloved.

-/Hitesh

Does 02-22-2005 12:11 PM

What does your squid.conf look like?

bagira 02-23-2005 04:56 PM

Does '/usr/sbin/squid -z' help?
~bagira

NetSnake 03-01-2005 12:19 AM

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.

hitesh_linux 03-06-2005 03:48 AM

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


All times are GMT -5. The time now is 04:33 AM.