Page 1 of 1

Awstats-like PHP statistic counter

Posted: Thu Sep 15, 2005 9:36 pm
by tkarven
Hi, just wondering whether are there any awstats-like statistic counter in php ? If yes, what would you recommend? I'm looking for one with minimized root access required.

Thanks ;)

Posted: Thu Sep 15, 2005 10:06 pm
by s.dot
Well that depends.. what kind of statistics are you wanting to track? AWstats tracks a buttload of 'em :-P

Posted: Thu Sep 15, 2005 10:33 pm
by tkarven
Hmmh, mainly about how many traffics, unique visitors i get each day and where from they come from ? E.g. which search engine, and probably return result by which keyword query ?

Hehe...in short, something that can perform similarly with awstats :p

Posted: Thu Sep 15, 2005 10:55 pm
by feyd
all awstats does is analyze details from the access log file.. so provided your scripts can access your logs or backups of them if you set a cron to backup your logs for each day, you can do that.

Posted: Thu Sep 15, 2005 11:01 pm
by tkarven
Indeed i have awstats intalled at the shared server already. But it track only those traffics for main domain, and nothing for sub domain.

For example i got my main domain http://www.devnetwork.net and a sub domain forums.devnetwork.net, it track only those traffics for http://www.devnetwork.net and nothing for forums.devnetwork.net. Is it possible and easy to configure awstats so that it will track the sub domain also ?

Hmmh, i knew one of the solution is to install another awstats ? But as i using shared server and only granted permission for ftp and mysql, i think that's a bit hard.....Beside that, i knew nothing about perl as well.....Difficulties .......

Posted: Thu Sep 15, 2005 11:52 pm
by timvw
All you have to do is configure different access.log (and error.log) files for each virtual host (or subdomain).
And then you have to read the awstats documentation, and you'll see how you can use the same installation for all your virtual hosts (with proper stats..)

Posted: Fri Sep 16, 2005 2:52 am
by tkarven
Argh...hard to understand...seems there's no easy way. Thanks anyway for everybody that replied and viewed ;)