LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-01-2007, 12:47 PM   #1
sscultima
LQ Newbie
 
Registered: Jun 2007
Posts: 21

Rep: Reputation: 15
Squid3 on Ubuntu Server 7.04


I recently have tried installing the Squid-cache/proxy server version 3 onto my fresh ubuntu server. So far i have had no luck in the sense of getting connections threw it, mainly because i can't seem to figure out how to get port 3128 (default squid listening port) to listen on the network. I have go threw many configuration manuals and have searched google over and over and i can't find a solution as to why its not listening. I have downloaded a working Squid server but i need to figure out how to do this on my own so we can add this lesson to our class' at work. If anyone knows how to get this program to start listening please help me...
 
Old 08-02-2007, 09:59 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
There's 2 parts to that. Firstly, does your firewall allow connections to port 3128? Secondly, did Squid start correctly?

You should be able to tell whether Squid started correctly by looking in its log files. The location is specified in your squid.conf file, but is often something like /var/log/squid. Can you check those and post any errors here please?

Checking your firewall means looking at what rules are set with iptables. Are you running a firewall on the box?
 
Old 08-02-2007, 11:10 PM   #3
sscultima
LQ Newbie
 
Registered: Jun 2007
Posts: 21

Original Poster
Rep: Reputation: 15
well all i can tell you at the moment is that there are no firewalls enabled on this box. It's kinda just a virtual machine experiment. I will post the log file tomorrow when i get into work.
 
Old 08-03-2007, 08:37 AM   #4
sscultima
LQ Newbie
 
Registered: Jun 2007
Posts: 21

Original Poster
Rep: Reputation: 15
So, sadly by looking at the log file, I have come to the conclusion that it is doing nothing except that it has created the swap directories.

Creating swap Directories
/var/spool/squid3 exists
Making directories in /var/spool/squid3/00
Making directories in /var/spool/squid3/01
Making directories in /var/spool/squid3/02
Making directories in /var/spool/squid3/03
Making directories in /var/spool/squid3/04
Making directories in /var/spool/squid3/05
Making directories in /var/spool/squid3/06
Making directories in /var/spool/squid3/07
Making directories in /var/spool/squid3/08
Making directories in /var/spool/squid3/09
Making directories in /var/spool/squid3/0A
Making directories in /var/spool/squid3/0B
Making directories in /var/spool/squid3/0C
Making directories in /var/spool/squid3/0D
Making directories in /var/spool/squid3/0E
Making directories in /var/spool/squid3/0F

then nothing after that, so im guessing its not doing andthing when i start it. i check with 'ps -aux' to see if it is running, it shows the directory of the executable for about 1 minute then it disappears. Also, when i use 'netstat -ano' it doesn't come up with the port that it is supposed to be listening on.
 
Old 08-03-2007, 04:09 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Are there any messages in /var/log/squid/access.log, /var/log/squid/cache.log or /var/log/squid/store.log? It's odd that there's just nothing after creating the cache directories.
 
Old 08-03-2007, 11:27 PM   #6
sscultima
LQ Newbie
 
Registered: Jun 2007
Posts: 21

Original Poster
Rep: Reputation: 15
well that is what shows up in the cache.log, haven't checked the other logs yet. im off work till tuesday, civic holiday monday, ill post other logs then.
 
Old 08-07-2007, 08:07 AM   #7
sscultima
LQ Newbie
 
Registered: Jun 2007
Posts: 21

Original Poster
Rep: Reputation: 15
well it turns out there is no /var/log/access.log or /var/log/squid3/store.log... I honestly don't see why it is not working, I have tried lots of tutorials on getting it to work.
 
Old 08-09-2007, 06:51 PM   #8
srfk
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
I just tried squid3 on our Ubuntu Server 7.04 and I get the same results. It looks like it runs for a few seconds, then nothing. I've checked the log files, etc., for a reason but there is nothing. I have also tried Squid2.6 and it works fine. I was just poking around to see what the difference is, and so far, the biggest difference between 2.6 and 3 is that 3 does not work. :-)
 
Old 08-09-2007, 11:32 PM   #9
sscultima
LQ Newbie
 
Registered: Jun 2007
Posts: 21

Original Poster
Rep: Reputation: 15
just figured it out, its either the permissions on the /var/log/squid folder are too low or it worked when i ran it as a daemon. either way its proxying now.
 
Old 08-13-2007, 10:15 AM   #10
srfk
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
Wow, that's what it was. I looked at the /var/log/squid3 folder and it was owned by root. I chmod it to 750 and chown -R it to proxy.proxy and it works!
 
  


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
Ubuntu + Kubuntu + Xubuntu + edubuntu + Ubuntu Server linux-ishu Ubuntu 12 01-17-2008 07:55 PM
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 06:46 AM
Intel i810 on-board graphics card bug, with Ubuntu server 7.04 running Ubuntu-Desktop calebf Linux - Server 2 05-14-2007 11:53 PM
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 02:06 PM
Ubuntu Server with Samba, Windows PC's cant access server! elliotfuller Linux - Networking 1 09-10-2005 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:34 AM.

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