Suddenly squid will not start, open squid.out, found an error:
Warning:cannot Write log file:/var/log/squid/cache.log
/var/log/squid/cache.log:permission denied
Messages'll is sent to ' stderr '.
Keyword: Permission denied
Permission-Permit, approve
Denied-deny past style, reject
Direct CD into/var/log/squid directory, ls-l view current permissions
All files belong to Root:root, and then go back to the top level directory, see Squid is also root:root
Give your permission back to squid first.
sudo chown-r squid.squid squid
Then set access permissions
sudo chmod-r 770 Squid
Now try starting squid.
sudo service squid start
If it still fails, open thesquid.out file Look, it's not Permission denied question.
Then go back to the Squid top level directory, execute
sudo squid-ncd10
The following may appear fatal:cannot open '/var/log/squid/access.log ' for writing.
At this time, manually go to the Squid directory to create a Access.log file, give at least 750 permissions to
Then start squid and try again, fail to repeat the previous step to see the error
sudo service squid start
Linux Squid Service failed to start, unable to write cache.log,permission denied workaround