Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th November 2007, 02:52 AM
Jath Offline
Registered User
 
Join Date: Nov 2007
Posts: 34
Squid Problems

I know Fed8 is new, just trying to get some Squid up and running. Alright, well right now I have gotten Squid installed up to a certain point. On this website, http://www.geocities.com/squidrunner_dev/howto.html , I get up to doing /usr/local/squid/sbin/squid -z, but once there it says that my Permission is denied. I am doing this is root to get the best out of it all... Any ideas please?

Thanks
Reply With Quote
  #2  
Old 30th November 2007, 03:15 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Ok, I ran into some similar issues--a different howto, but...what both have in common is that they're for squid 2.5. Fedora has squid-2.6 and things have changed a bit. Also, much of what he mentions is being done from source packages. I believe, if you install the rpm, you won't have to do anything but edit squid.conf. It's only 4,300 plus lines, so no big deal.

Seriously, I used the rpm--used a squid-2.5 tutorial, got several errors, then realized that it was for squid 2.5

http://www.squid-cache.org/

has some better, and more up to date, information.
Reply With Quote
  #3  
Old 30th November 2007, 03:24 AM
Jath Offline
Registered User
 
Join Date: Nov 2007
Posts: 34
Yeah I understand about that. Foolishly enough. What I am still wondering is if I edit anything in squid.conf, what should be the main things that I do edit. I'm new to Fedora and the reason I wanted to use it is for 1) To definitely learn how to use it since I have been dying to learn how to, and 2) To be able to use a proxy, or Squid as my friend recommended. I honestly couldn't even figure out how to effectively edit this...
visible_hostname "your hostname"

cache_effective_user squid

cache_effetive_group squid

I did a search for cache_effective_user and put squid at the end, but then I realized it was a TAG and was thinking that I was wrong from there on. I knew I was obviously.

So to basically put it, using http://www.squid-cache.org/Versions/v2/2.6/cfgman/ what should I change to make squid work basically?

Also I installed it by going to Add/Remove Programs and I did a search for Squid. Thats how I installed it.

Last edited by Jath; 30th November 2007 at 03:25 AM. Reason: Adding something
Reply With Quote
  #4  
Old 30th November 2007, 03:55 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Well, shucks, the file's only 4300 plus lines or so, what could be hard? (Actually, one of our developers, trying to help us troubleshoot something, asked me if I could cut out all the comments and send him a copy of the file with just what was defined.)

There's many tutorials around, however, I was looking, at the time, for one on making it a reverse proxy, which is far less common. See if there's something helpful on that site I gave before. Visible host is what you want people to see. So, if the proxy is squid.jath.org but you want the user to see the error coming from another machine, you give it that name--for instance, jathweb.jath.org. Otherwise, you can leave it at the default, which will be the host name, e.g., squid.jath.org.

Hrrm, just checked that link, sigh, typical Linux documentation, almost useless to the novice. It had a good guide for reverse proxy though.

Try this one.

http://www.deckle.co.za/squid-users-...uration_Basics
Reply With Quote
  #5  
Old 30th November 2007, 03:59 AM
Jath Offline
Registered User
 
Join Date: Nov 2007
Posts: 34
Alright thanks a lot. I'm not that great with Linux or Fedora but I am going to try my best to learn as much as I can. : / Sucks being in 12th grade and just getting to this stuff. Would of loved if I could have been younger and learned most of this. Hah.

Gonna check it out either tonight or tomorrow after school.
Reply With Quote
  #6  
Old 30th November 2007, 05:42 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Heh--12th grade. I didn't start playing with Linux till I was in my late 40's, and my first work with squid was this week, at the age of 53. So, you've got quite a head start on me.
Reply With Quote
  #7  
Old 30th November 2007, 05:57 PM
Jath Offline
Registered User
 
Join Date: Nov 2007
Posts: 34
Well really quick question too. Your using Fedora 8 for Squid correct? Just making sure. EDIT: Just as something else to add, when I install Squid, all I have to do is regularly install Fed8 as a Office and Home Productivity right? Or do I need a Webserver install on the machine at the same time? If anything, when setting Squid up, does it actually need a real website to connect to and use as a proxy? For Example me buying the domain etc? Or does it automatically allow me to use it as a proxy?

Also I know I got a head start, I just want to be able to learn as much as I can before I die. Hah. Right now I am in FBLA, regionals are coming up soon. Failed miserably at states last year so hopefully I will win states this year around. I already took my Cisco classes at my High School, Cisco 1&2 and Cisco 3&4 and am going to be studying to get my CCNA hopefully before I graduate. I am also taking Comp Science, which is right now Java in my school, and Web Design, so obviously I am trying to take up as much as I can.

Just a little link to my other thread. Know anything about FreeNX? http://forums.fedoraforum.org/showthread.php?t=173932

Last edited by Jath; 30th November 2007 at 06:21 PM. Reason: Wanted to add something
Reply With Quote
  #8  
Old 1st December 2007, 06:13 AM
Jath Offline
Registered User
 
Join Date: Nov 2007
Posts: 34
Well so far its been iffy. I got it set up half way. Right now I am trying to run it but I get this error.
Code:
2007/12/01 01:08:36| /usr/local/squid/var/cache/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Aborted (core dumped)
I also had to copy the swap dirs from /usr/local/var/cache/ to /squid/var/cache/ nothing created them.
Reply With Quote
  #9  
Old 2nd December 2007, 02:31 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
I can't be much help here, as I didn't get those errors. I vaguely remember some tutorials suggesting that after installing squid, before running it, to run some other command to create a special squid swap file, but I *think* that was for an older version.

There's probably something buried in the config file to tell you where to look for the swap dirs, or where to create them.

Have you googled the error? That's probably the best bet, or perhaps to ask on the squid mailing lists, since I see no one's answered. A vey cursory google indicates that squid should have created those files when it started, but I didn't see a solution. (As I said, a very quick google, I have to run out, I'm afraid.)
Reply With Quote
  #10  
Old 2nd December 2007, 07:42 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Ah, I missed the other question--I think that squid will need something to proxy, though you can, in a pinch, run it on the same machine if you're doing this for learning purposes. However, let me reiterate, I don't know squid well at all, and if no one more knowledgeable steps in, you might try their mailing lists.
Reply With Quote
  #11  
Old 3rd December 2007, 01:30 AM
Jath Offline
Registered User
 
Join Date: Nov 2007
Posts: 34
Well I got Squid up and running from what its telling me. Right now when I try doing...
Code:
squidclient http://google/
It says that I have a Connection Refused error. I am not on that machine currently but it was something like this.
Quote:
Could not connect through localhostort: Connection Refused.
I'll get the actual message later but thats what it currently says to me.
Reply With Quote
  #12  
Old 3rd December 2007, 01:33 AM
Jath Offline
Registered User
 
Join Date: Nov 2007
Posts: 34
Well since I can't edit the post to add something, the code I entered in the previous post is told to be done by the Testing section of http://www.deckle.co.za/squid-users-...Starting_Squid.
Reply With Quote
  #13  
Old 3rd December 2007, 02:14 AM
Jath Offline
Registered User
 
Join Date: Nov 2007
Posts: 34
Sorry for the triple post but here is what I get from running the squidclient commamd:
Code:
client: ERROR: Cannot connect to localhost: PORT: Connection refused
Reply With Quote
Reply

Tags
problems, squid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Fedora/Squid/Bridge kkara Using Fedora 0 14th May 2008 05:11 PM
Various server problems (VNC & Squid) Pezzoni Servers & Networking 6 16th September 2006 04:10 PM
squid and dansguardian - problems! dazaau Servers & Networking 17 21st February 2006 01:35 PM
Problems with squid and selinux Richie Security and Privacy 0 11th August 2005 02:26 AM
Squid and selinux problems tstab Using Fedora 0 10th April 2005 03:58 AM


Current GMT-time: 09:11 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat