[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 445
  • Last Modified:

Squid cache probelm

I've been working with Squid for 2 weeks now trying to get it up and running.  For a long time I couldn't get it to cache my webpages, but I think it is now.  How do I tell for sure?

I'm also trying to get the web interface to work.  The directions said to put cachemgr.cgi into the cgi-bin of apache.  I can access the page, but it won't let me log in...any ideas?

THanks
0
chaok
Asked:
chaok
  • 3
  • 2
1 Solution
 
chaokAuthor Commented:
well i got the web part working
0
 
paranoidcookieCommented:
Take a look at the log files check out

/var/log/squid/access.log
/var/log/squid/cach.log

If its installed you can get some statistics from calimaris /var/log/squid/access.log
0
 
paranoidcookieCommented:
Oh did you set up the acl's for cachemanger in squid.conf?
0
 
chaokAuthor Commented:
ok, i have it running i believe.  I'm running it so i can watch what is going on ...here is a few thigns its saying

2004/09/09 22:09:18| CACHEMGR: <unknown>@127.0.0.1 requesting 'menu'
2004/09/09 22:09:18| CACHEMGR: <unknown>@127.0.0.1 requesting 'menu'
2004/09/09 22:09:19| CACHEMGR: <unknown>@127.0.0.1 requesting 'menu'
2004/09/09 22:09:30| CACHEMGR: <unknown>@127.0.0.1 requesting 'objects'

That seems good.

What do I need to look for in the cache.log?

Here is  abit from my access./frame.swf? - DIRECT/63.216.25.139 application/x-shockwave-flash
1094785826.114    205 192.168.1.65 TCP_MISS/200 251 GET http://a.tribalfusion.com/play/ESLLPPBLPHOJIEOIGVPTKCPDPOMPWRGVSXEEMRGQUWQMXMDLKLOPNGPFCAKQWPKQPMKIONIV/ - DIRECT/208.185.101.168 image/gif
1094785826.122    187 192.168.1.65 TCP_MISS/200 1099 GET http://www.experts-exchange.com/images/acceptButton.gif - DIRECT/64.156.132.140 image/gif
1094785826.211    215 192.168.1.65 TCP_MISS/200 1150 GET http://www.experts-exchange.com/images/submitButton.gif - DIRECT/64.156.132.140 image/gif
1094785826.343    414 192.168.1.65 TCP_MISS/200 1661 GET http://pagead2.googlesyndication.com/pagead/ads? - DIRECT/64.233.171.104 text/html
1094785826.369    245 192.168.1.65 TCP_MISS/200 19479 GET http://cdn1.tribalfusion.com/media/205096/728x90.swf - DIRECT/63.216.25.139 application/x-shockwave-flash
1094785826.370    159 192.168.1.65 TCP_MISS/200 463 GET http://cdn1.tribalfusion.com/media/205096/button.swf - DIRECT/63.216.25.135 application/x-shockwave-flash
1094785826.412    297 192.168.1.65 TCP_MISS/200 339 GET http://itxt.vibrantmedia.com/intellitxt/front.asp? - DIRECT/63.211.210.221 text/html
1094785894.224   2578 192.168.1.65 TCP_MISS/200 3989 GET http://gmail.google.com/gmail? - DIRECT/64.233.171.107 text/html
log

---------------------
Does that look normal?

Also in my web cache manager when I look under all Cache Objects...its all pictures, no html pages why is that?
-------------
 KEY D263B400A9AED6E9442F915D527A7BEC
      GET http://squid:3128/squid-internal-static/icons/anthony-script.gif
      STORE_OK      IN_MEMORY     SWAPOUT_NONE PING_NONE  
      SPECIAL,CACHABLE,VALIDATED
      LV:1094785914 LU:1094785914 LM:1093910577 EX:-1      
      0 locks, 0 clients, 0 refs
      Swap Dir -1, File 0XFFFFFFFF
      inmem_lo: 0
      inmem_hi: 379
      swapout: 0 bytes queued

KEY B3A43AB124CD1A4CC0B96671EFB06CC8
      GET http://squid:3128/squid-internal-static/icons/anthony-unknown.gif
      STORE_OK      IN_MEMORY     SWAPOUT_NONE PING_NONE  
      SPECIAL,CACHABLE,VALIDATED
      LV:1094785914 LU:1094785914 LM:1093910577 EX:-1      
      0 locks, 0 clients, 0 refs
      Swap Dir -1, File 0XFFFFFFFF
      inmem_lo: 0
      inmem_hi: 387
      swapout: 0 bytes queued

KEY CAC574313811A75B44E12173CD5BF424
      GET cache_object://localhost/objects
      STORE_PENDING NOT_IN_MEMORY SWAPOUT_NONE PING_NONE  
      DELAY_SENDING,RELEASE_REQUEST,PRIVATE,VALIDATED
      LV:-1        LU:1094786029 LM:-1        EX:1094786029
      2 locks, 1 clients, 1 refs
      Swap Dir -1, File 0XFFFFFFFF
      inmem_lo: 0
      inmem_hi: 1591
      swapout: 0 bytes queued
      Client #0, 0x8f54d00
            copy_offset: 1286
            seen_offset: 1286
            copy_size: 4096
            flags:
-----------------------


Thanks for any help
0
 
paranoidcookieCommented:
Looks like its running fine, have you set minimum object sizes? If so the html might be too small to cache.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now