Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: awstats error while accessing awstats page in browser  (Read 13255 times)

0 Members and 1 Guest are viewing this topic.

jominj

  • Guest
awstats error while accessing awstats page in browser
« 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/"