LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 08-27-2007, 05:23 AM   #1
Dogar
Member
 
Registered: Feb 2007
Posts: 56

Rep: Reputation: 15
squid problem on RHEL Release 5


hi all

i have installed RHEL Release 5. when i configure the squid 2.6 on it as well as my requirement is that
1- configure individual cache on /cache (which has isolated mount point)
mean to say.
# cache_dir /var/spool/squid 100 16 256
cache_dir /cache 10000 16 256

2- squid configure on port 80 (listening port 80 either 3128)


but when i try to start the service of squid
i got a error page
cache_dir permission deny
squid cant listen port 80

note; i can change ownership of /cache directory from root to squid
also crating swap directories by squid -z

but again i can start the service of squid
i got the same error

plz help me for both cases.
 
Old 08-28-2007, 05:43 AM   #2
Dogar
Member
 
Registered: Feb 2007
Posts: 56

Original Poster
Rep: Reputation: 15
hi all

as i mentiond in above post i have two problems.the first one i have solved.the second one about port.when i change port from 3128 to 80 following error is generatd.

"can not bind Socket FD 12 to *:80: (13) Permission denid.
FATAL: can not open HTTP port"

plz help me..
 
Old 08-28-2007, 07:31 AM   #3
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
Are you running a web server such as apache on this system?

You can't have 2 services listening on the same port on the same interface.
 
Old 08-28-2007, 10:53 PM   #4
Dogar
Member
 
Registered: Feb 2007
Posts: 56

Original Poster
Rep: Reputation: 15
hi docalton

The service of apache is stoped.

Last edited by Dogar; 08-28-2007 at 11:00 PM.
 
Old 08-28-2007, 11:07 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
What user were you logged in as when you tried to start Squid? You should be logged in as root but you should have Squid configured to run as a non-privileged user with the cache_effective_user and cache_effective_group settings.

I haven't tried running Squid on port 80 (it's a privileged port by the way, < 1024), is there any reason you can't run it on the default port of 3128?
 
Old 08-29-2007, 05:38 AM   #6
Dogar
Member
 
Registered: Feb 2007
Posts: 56

Original Poster
Rep: Reputation: 15
hi gilead

i login as root.and i do same as u say but it still give error of permission.
Our network is consist of more then 4000 nodes and its very diffecult to change proxy settings on every machine.
is there any other solaution ????


plz help me....

bilal
 
Old 08-29-2007, 02:17 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
I'd suggest looking through the info at the Squid FAQ. The only info I found suggests that the problem is that you need to start Squid as the root user (FATAL: Cannot open HTTP Port). They mention that you can't start Squid as root and continue to run it that way (Why Can't I run Squid as root?) and that the suggested solution is to use the cache_effective_user setting (FATAL: Don't run Squid as root, set 'cache_effective_user'!)
 
Old 09-03-2007, 06:24 PM   #8
gr8scot
Member
 
Registered: Jun 2007
Distribution: Debian
Posts: 73

Rep: Reputation: 16
Use nodes' proxy settings on server

Quote:
Originally Posted by Dogar View Post
Our network is consist of more then 4000 nodes and its very difficult to change proxy settings on every machine. is there any other solution ????
There is another thread on LQ that might help you:
http://www.linuxquestions.org/questi...id#post2725475

Member win32sux is explaining how to use iptables to REDIRECT traffic from clients to the port used by Squid (& Dansguardian).

HTH
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid on RHEL 4.3 Xeon 3GHz 2 Gig RAM dead slow nabeelmoidu Linux - Software 2 06-14-2006 07:54 AM
LXer: Catch (But Don't Release) with Squid Web Proxying LXer Syndicated Linux News 0 04-24-2006 08:54 PM
How to Configure socks and squid proxies on RES HAT ENTERPRISE LINUX WS release 3 kbsudhir Red Hat 1 04-19-2006 07:55 AM
does rhel as/es/ws all versions all updates work on oracle 10g release 1 vasudha Linux - Software 1 10-18-2005 04:58 PM
Squid monitoring and authentication on RHEL 3 ES jterr02 Linux - Enterprise 1 03-02-2005 12:44 AM


All times are GMT -5. The time now is 06:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration