Admin-Ahead Community

Linux => Control Panels => DirectAdmin => Topic started by: jominj on January 13, 2014, 08:45:20 pm

Title: awstats error while accessing awstats page in browser
Post by: jominj on January 13, 2014, 08:45:20 pm
Direct Admin awstats shows error while accessing awstats in the browser. When accessing domian.com/awstats  it shows the following error
Error: AWStats database directory defined in config file by 'DirData' parameter

(/home/test/domains/test.com/stats/) does not exist or is not writable.
Setup ('/etc/awstats/awstats.test.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

From the above error message we can Identify that there is a incorrect awstats directory path for the domain's awstats configuration file.
We can solve this by following below steps:
1. Just confirm whether the domain's awstats path has to be in which location.

2. Go to the domain's awstats conf file /etc/awstats/awstats.test.com.conf.

3. Search the word "DirData" in the file and change the path as per the correct awstats path.

DirData="/home/test/domains/test.com/stats/"
to
DirData="/home/test/domains/test.com/puplic_html/awstats/"