LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   squid from source (https://www.linuxquestions.org/questions/linux-networking-3/squid-from-source-346187/)

roopunix 07-24-2005 05:36 AM

squid from source
 
Hello all i had to install squid from source coz RPM was not working.

i downloaded squid-2.5.STABLE10.tar.gz

i extracted it configured it too as the configuration manual had said. but when i try to creat swap directories it gives mre the following errors.


[root@mail root]# /usr/local/squid/sbin/squid -z
2005/07/24 16:10:47| Creating Swap Directories
FATAL: Failed to make swap directory /usr/local/squid/var/cache/00: (13) Permission denied
Squid Cache (Version 2.5.STABLE10): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.000 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 4
[root@mail root]#

Now the things that i have configured is the following

#vi /usr/local/squid/etc/squid.conf

#Default:
cache_effective_user nobody
cache_effective_group

*****i did'nt configured the group coz it said if i will not configure it then the fgroup id will be taken from the user nobody*******
*****Defining my network*****
acl our_networks src 192.168.1.0/24 192.168.2.0/24 192.168.3.0/24
http_access allow our_networks


******For transparent proxy*******

#transparent proxy
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on


******the port squid listens on*****

http_port 3128
Now why is that error comming


Any one got an idea

maxut 07-24-2005 12:03 PM

it seems as permission trouble, try followings:
rm -rf /usr/local/squid/var/cache/*
chown nobody /usr/local/squid/var/cache
after that create cache.


good luck.

roopunix 07-24-2005 11:59 PM

Thank You very much

it worked. really too exicted

thank you once again


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