Linux Squid Service failed to start, unable to write cache.log,permission denied workaround

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.