LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   squid cache server- error creating swap directory (https://www.linuxquestions.org/questions/linux-networking-3/squid-cache-server-error-creating-swap-directory-135655/)

debloxie 01-17-2004 01:46 AM

squid cache server- error creating swap directory
 
pls who undertsands this message

Initializing the Squid cache with the command squid -f /etc/squid/squid.conf -z ..


2004/01/17 10:47:07| Creating Swap Directories
FATAL: Failed to make swap directory /cache/00: (13) Permission denied
Squid Cache (Version 2.5.STABLE3): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 10

after changing ownership from root to squid, it displayed this. my cache directory is another harddisk and it has the lable /cache.

pls help out

chrisfirestar 01-17-2004 01:56 AM

you have to make sure that the chmod for the directories have the correct rights.

check the squid installer giude to see what rights are needed or if lazy give it total rights. do the following


# cd /usr/local/squid/var/
# mkdir cache
# chown root:root cache
# chown root:root logs
# chmod -r 777 cache
# chmod -r 777 logs

should fix it

debloxie 01-17-2004 02:08 AM

pls i have 2 hard disks, i dedicated hdb for the cache directory.

so how ll this affect the command u gave out to me

thanks for the help

chrisfirestar 01-18-2004 07:09 PM

where have you set the squid cache directory? did you install the entire squid package there? or are you just pointing at it ?

chrisfirestar 01-19-2004 12:49 AM

visit www.chrisliveonline.com/security/ and go to the squid section.. ensure that you have completed all the steps. if that doesnt work post something that is useful for us, like an error message. The more help you give us the more likely we are to be able to help


All times are GMT -5. The time now is 10:23 PM.