LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-04-2006, 01:30 AM   #1
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Rep: Reputation: 15
Slackware 10.2 Squid wont start


Here are all
the details :

Operating System: Slackware 10.2
Machine: PIII, 667 MHz

Compile options all in one single line,

Code:
CFLAGS="-O2" ./configure  --enable-delay-pools
--enable-removal-policies="lru" --enable-useragent-log --disable-wccp
--disable-wccpv2 --enable-ssl --enable-storeio=diskd,ufs --enable-snmp
--disable-ident-lookups --enable-http-violations
--enable-http-violations i686-slackware-linux make
all

It compiled without errors

Code:
#make install
With this command squid was installed without any error.

In the squid.conf file, I changed the following:

Code:
http_port 8080
visible_hostname cathy.alfa.net
To check the sanity of my configuration of squid.conf,

Code:
#/usr/local/squid/sbin/squid -k parse
I got no Error.

Now I gave the follwing command to start squid :

Code:
#/usr/local/squid/sbin/squid
It gave me error that 'cache' directory does not exist:
So I created the 'cache' directory

Code:
/usr/local/squid/var/cache
I set the permissions on directory 'cache' as follows:
Code:
chown root:root cache
( while I was at Directory "/usr/local/squid/var")

I have set the ownership on 'cache' directory' for root since other
folder i.e. in the 'var' directory was also owned by root with the permission 733

After this I gave the following command to create 'cache'
Code:
#/usr/local/squid/sbin/squid -z
The cache directories are created without any error.

Now I retry to start Squid:

Code:
#/usr/local/squid/sbin/squid
This time I got no error meaning that Squid should have started.

Now when I want to access Internet through this Machine on which Squid has been installed. I do not get anything, not even any warning like "Access Denied" since I have not configured Squid to allow access to
any machine.

What I have Tried?

I
Code:
tried the following command:

#/usr/local/squid/sbin/squid -k restart
I got;

Code:
Error: No running copy,
I have checked that there is no startup script in /etc/rc.d

I have earlier successfully run Squid on
FreeBSD. Fedora Core. But I have never ran into such problem.

Please help.
 
Old 10-04-2006, 02:26 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,822

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Open your squid.conf and find the "cache_effective_user" and "cache_effective_group" lines.
The cache diectory must be chown to that user/group and for security reasons it's always good to use nobody/nobody.
Also take a look at cache.log to see if you find something

Regards
 
Old 10-04-2006, 02:48 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Is squid actually RUNNING?

ps -ef | grep squid

If it's not - is there anything in the log(s)?

If it is - HOW are you accessing squid, on the local machine? How did
you set-up your browser?


Cheers,
Tink
 
Old 10-04-2006, 10:24 AM   #4
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Code:
Open your squid.conf and find the "cache_effective_user" and "cache_effective_group" lines.
The cache diectory must be chown to that user/group and for security reasons it's always good to use nobody/nobody.
I am a noob. So my question is "Is the user and group 'nobody' created upon installation in Slackware?

In the Squid.conf the cache_effective user was set to 'nobody' and cache_effective_group was set to 'none. Squid did not start in this case.

Now after reading a guide at "http://www.slackware-italia.com" I have create user 'squid' and group 'squid' and cache_effective user is set to 'squid' and cache_effective_group is set to 'squid'. Squid does not start in this case too.

Tinkster> Please read my first mail carefully. I have mentioned that Squid is not started.

I get
Code:
Error: No running copy.
if I try to restart Squid.

What is CFLAGS etc etc mentioned in the guide on
http://www.slackware-italia.com ?


Regards
 
Old 10-04-2006, 12:22 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by dpballey
Tinkster> Please read my first mail carefully. I have mentioned that Squid is not started.
No you didn't. Your title says squid won't start, but on the second
attempt to start it you only say:

Quote:
Code:
#/usr/local/squid/sbin/squid


This time I got no error meaning that Squid should have started.

And what about my other questions?



Cheers,
Tink
 
Old 10-04-2006, 11:43 PM   #6
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Tinkster> Thanks for your interset.

I forgot to mention that I had given the command to intialise the cache.
Code:
   # /usr/local/squid/sbin/squid -z
which resulted in error. Ihad to manually create the cache directory
Code:
/usr/local/squid/var/cache
Then I have set the permssions on cache for the user and group running squid as per squid.conf.

Now, I checked the sanity of squid.conf with the follwing command:
Code:
#/usr/local/squid/sbin/squid -z
Got no error.
After this an attempt to start Squid was made.
Code:
#/usr/local/squid/sbin/squid
It gave no error nor it started.

What are CFLAGS? People are using these to compile squid on Slackware. I have earlier run Squid on Mandrake, FreeBSD and FedoraCore. But this was never required.

Regards
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
amarok wont start in Slackware jaakkop Linux - Software 1 07-17-2005 04:16 AM
Squid wont start paul_mat Slackware 3 03-20-2005 05:26 PM
x wont start on slackware berrance Linux - Laptop and Netbook 2 11-28-2004 11:31 AM
x wont start on slackware berrance Linux - Laptop and Netbook 2 11-28-2004 11:02 AM
slackware wont start xquizit Slackware 9 09-13-2004 11:57 AM

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

All times are GMT -5. The time now is 09:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration