Page 1 of 2

Where is Awstats?

Posted: Sun Dec 27, 2015 1:29 am
by baijianpeng
I noticed that when creating a new website in VestaCP (v0.9.8) , there is options about "enable Awstats", I checked. But I don't know where to see those stats of Awstats. There is no button or link for Awstats.

Did I missed something?

Thank you.

Re: Where is Awstats?

Posted: Sun Dec 27, 2015 12:31 pm
by vlahonick
Actually there is a link. After enabling Awstats for the desired domain go back to the domain list page (https://your-domain.com:8083/list/web/) and when hover in that specific domain you will see an extra link "OPEN WEBSTATS". Alternatively you can see your stats directly in your-domain.com/vstats/. The same goes for Webalizer.

Re: Where is Awstats?

Posted: Sun Dec 27, 2015 12:44 pm
by baijianpeng
Thank you. I found this link on the tooltip pop-up ( it is very hard to find out).

However, when I clicked that link, I got following 403 error:
Forbidden

You don't have permission to access /vstats/ on this server.
What may be the cause?

Thank you.

Re: Where is Awstats?

Posted: Sun Dec 27, 2015 2:12 pm
by vlahonick
The problem is with permissions.

Code: Select all

chmod 777 -R /home/admin/web/your-domain.com/stats
With the command above, you will make your Awstats stats accessible for everybody. If you want to add some security or prevent people from looking up your stats, you can check the stats authorization box for your domain in Vesta.

Re: Where is Awstats?

Posted: Mon Dec 28, 2015 3:20 am
by baijianpeng
I think, if I was opening that link from my VestaCP Panel instead of input it directly to the address bar of my browser, it should be opened without extra permission settings.

Why this script can not detect that I was the person that had already login in to the VestaCP ? I think this means I should have the right permission to access Awstats pages.

If I set 777 to that path, it will become risky.

Re: Where is Awstats?

Posted: Mon Dec 28, 2015 1:24 pm
by vlahonick
Check if 644 or 655 could do the trick.

Re: Where is Awstats?

Posted: Mon Dec 28, 2015 1:37 pm
by baijianpeng
My test indicates that 644 and 655 both can not work. Finally I found out that 744 can work, but the public can also open the stats page.

This is not a good solution.

Thank you.

Re: Where is Awstats?

Posted: Tue Dec 29, 2015 10:37 am
by vlahonick
As I said above
If you want to add some security or prevent people from looking up your stats, you can check the stats authorization box for your domain in Vesta.

Re: Where is Awstats?

Posted: Tue Dec 29, 2015 1:11 pm
by baijianpeng
Oh, sorry, I just did not notice the "stats authorization " box. Now I saw it.

Ok, this can prevent public access of the web stats.

Thank you very much!

Re: Where is Awstats?

Posted: Wed Feb 10, 2016 6:08 pm
by jonn
Solution.

Code: Select all

chmod 744 /home/admin/web/example.com/stats