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
/home/first2host/tmp/awstats
and for the SSL version, it should be
/home/first2host/tmp/awstats/ssl
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
More from cPanel
Shared cPanel Servers – Distributing the cost of cPanel and other software licenses
The cost of software that runs on servers is at a record high. In many cases where cPanel is used …
How To Install Memcached PHP Cache In cPanel Servers
Memcached is an in-memory caching function that allows fast access and low-latency caching for PHP applications. Used by major companies …
How To Install A Cloudflare Origin SSL Certificate In cPanel
Free SSL Certificates from places like cPanel or Let's Encrypt are great. When Let's Encrypt first introduces free SSL Certificates …