Fixing Awstats updates. Failed to create conf file permission denied

Fixing Awstats updates. Failed to create conf file permission denied

Sometimes AWStats will refuse to update a website’s visitor statistics, usually after a cPanel update. During an update a process changes the permissions on the AWStats folder from 0777 to 0444 meaning the server is unable to write to the configuration file and in turn, can’t update its statistics.

To fix the error first check the configuration file exists, in the below example you should swap all instances of first2host with the cPanel username that can’t update their statistics. Usually, the path to the HTTP version of the site’s statistics will be

/home/first2host/tmp/awstats

and for the SSL version, it should be

/home/first2host/tmp/awstats/ssl

Free cPanel VPS License

The configuration file will be in the format of awstats.first2host.co.uk.conf and if the file is in the respective folder make sure the permissions on the file are set to 0777. Next check the AWStats folders permissions are also set to 0777 and if you’re using the SSL version also make sure that folder is set to 0777.

Finally in an ssh console issue the below command, you will be asked for the cPanel username to update. Enter the cPanel username with the statistics issue and the server will update the user’s statistics and the problem, failed to create conf file permission denied will now be resolved.

/scripts/runweblogs

How was this article?

Fixing Awstats updates. Failed to create conf file permission denied
How was this post?
cPanel VPS Server

cPanel

Select Language
SSD Reseller Web Hosting ★ Host 50 Domains ★ 50 Free SSL Certificates ★ Weekly Backups ★ Free Migrations In14 Day Free Trial
+