Fixing Webalizer Errors: Unable to Lock DNS Cache File

Introduction:
If you encounter the Webalizer errors:
Error: Unable to lock DNS cache file /usr/local/psa/var/webalizer.cache
don’t worry this is a common issue caused by cache file permissions. You can quickly resolve it by recreating the cache file and correcting its ownership and permissions.

Steps to Fix Webalizer Errors

1. Remove the existing cache file

rm -f /usr/local/psa/var/webalizer.cache

2. Create a new empty cache file

touch /usr/local/psa/var/webalizer.cache

3. Set the correct ownership

chown root:root /usr/local/psa/var/webalizer.cache

4. Set proper file permissions

chmod 644 /usr/local/psa/var/webalizer.cache

5. Verify file status

stat /usr/local/psa/var/webalizer.cache

Pro Tip

Always make sure you’re logged in as root before making changes. Incorrect ownership or permissions can prevent Webalizer from functioning correctly.

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

To check the bad block for HDD (hard disk)

Use following command to check the badblocks of the hard drive (HDD)/sbin/badblocks -vv /dev/hdXXThis is…

IIS 5.0 Security Checklist

The Windows section of the forum needs some work, because we operate on both Linux…

How to Resolve Module Error in R1 Soft Backup?

When installing or updating the R1Soft/Idera CDP Agent, you may encounter module build failures due…