AWStats icon indicating copy to clipboard operation
AWStats copied to clipboard

Unable to read config file from non-standard location

Open cowherdboy opened this issue 8 years ago • 1 comments

I am using awstats 7.3 in a non-standard directory as I have no root access. It has been running fine for more than a year. Just today I found that I wasn't able to view my site analysis from the URL. I got the following error: Error: Couldn't open config file "awstats.xyz.conf" nor "awstats.conf", after searching in path "., /etc/awstats, /usr/local/etc/awstats, /etc, /etc/opt/awstats": No such file or directory

My config file is located in the same directory as awstats.pl. The cron update from command line works fine. To get it to work from the browser, I had to replace line #16860 in awstats.pl from: $DIR ||= '.'; to $DIR ||= "Absolute Path to Config File";

Something has probably changed on my server side that is causing browser access to fail.

cowherdboy avatar Dec 04 '15 11:12 cowherdboy

How do you run awstats.pl and from which dir ? Did you try to launch it with ./awstats.pl instead of awstats.pl ? and from the current awstats.pl directory

eldy avatar Jan 08 '16 18:01 eldy