Fixing Awstats updates permission denied
Sometimes AWStats will refuse to update a website’s visitor statistics, usually after a cPanel server update. During an update. A process changes the permissions on the AWStats folder from 0777 to 0444. But this means the server is unable to write to the configuration file. So this means the server can’t can’t update its statistics. Failed to create conf file permission denied
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
Failed To Create Config File
and for the SSL version, it should be
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.
How was this article? – Fixing Awstats updates
More from cPanel
The cost of software that runs on servers is at a record high. In many cases where cPanel is used …
Memcached is an in-memory caching function that allows fast access and low-latency caching for PHP applications. Used by major companies …
Free SSL Certificates from places like cPanel or Let's Encrypt are great. When Let's Encrypt first introduces free SSL Certificates …