Awstats-like PHP statistic counter

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tkarven
Forum Commoner
Posts: 41
Joined: Tue Aug 02, 2005 10:26 pm

Awstats-like PHP statistic counter

Post 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 ;)
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Well that depends.. what kind of statistics are you wanting to track? AWstats tracks a buttload of 'em :-P
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
tkarven
Forum Commoner
Posts: 41
Joined: Tue Aug 02, 2005 10:26 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
tkarven
Forum Commoner
Posts: 41
Joined: Tue Aug 02, 2005 10:26 pm

Post 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 .......
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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..)
tkarven
Forum Commoner
Posts: 41
Joined: Tue Aug 02, 2005 10:26 pm

Post by tkarven »

Argh...hard to understand...seems there's no easy way. Thanks anyway for everybody that replied and viewed ;)
Post Reply