From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E2AlN-0007w9-MI for garchives@archives.gentoo.org; Mon, 08 Aug 2005 16:46:10 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j78Giwwj005391; Mon, 8 Aug 2005 16:44:58 GMT Received: from mail.bway.net (xena.bway.net [216.220.96.26]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j78GdDnE026083 for ; Mon, 8 Aug 2005 16:39:13 GMT Received: (qmail 20231 invoked by uid 0); 8 Aug 2005 16:39:34 -0000 Received: from unknown (HELO ida.bway.net) (216.220.96.4) by smtp.bway.net with (EDH-RSA-DES-CBC3-SHA encrypted) SMTP; 8 Aug 2005 16:39:34 -0000 Date: Mon, 8 Aug 2005 12:36:57 -0400 (EDT) From: "A. Khattri" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] recomendations for web stats in php In-Reply-To: Message-ID: References: <42F4D8A2.9040603@gmx.net> <20050807134000.7c712c59.hilse@web.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archives-Salt: 412af8bb-2e3e-409f-9bcb-b20087cf66a2 X-Archives-Hash: 7170c46adfe72d9492f5e3a5a54c5cc4 On Sun, 7 Aug 2005, glumtail wrote: > Why not write a GLOBAL script for collecting some usefull information? > And then just be included in every pages, store records in a > particular file. This is a horrible way to do it. A lot of free stats services do something similar with a block of JavaScript (usually some code that hits a script on the stats server while the page is loading). Since your web server logs accesses and errors it does most of the work for you! All you need to do is download the logs and run analog on them (optional: you could also setup analog to feed data to reportmagic). On our servers we have written scripts to do this weekly. > 2005/8/7, Hans-Werner Hilse : > > Hi, > > > > On Sat, 06 Aug 2005 12:34:58 -0300 > > Mauro Faccenda wrote: > > > > > I have an customer that has a website hosted in a chrooted environment > > > and want a stats page (hits, origin, etc...) I have access to the apache > > > logs but I don't have a shell access, so I was thinking if there is any > > > php script that reads the log file and plots a nice web page with those > > > stats. > > > > > > Or can anyone suggest another solution? > > > > Hm, I don't think using a simple php script would work very reliably. > > Parsing the log files can become a heavy task depending on the > > logfile's size. So I think it's always the best solution to run the > > analyzer from command line. > > > > You could e.g. run the analyzer on a different host where you have > > command line access and can run that scripted every night. The > > resulting stats pages and graphs can then be synced back to the web- > > only server. > > > > Another possibility would be to use desktop programs for the logfile > > analysis. I don't know of good free programs here, but at least there > > are a few very professional commercial ones. > > > > Both solutions only require access to the logfile which you told you > > have. > > > > -hwh > > -- > > gentoo-user@gentoo.org mailing list > > > > > > -- English 1. n. obs. The source code for a program, which may be in any language, as opposed to the linkable or executable binary produced from it by a compiler. The idea behind the term is that to a real hacker, a program written in his favorite programming language is at least as readable as English. Usage: mostly by old-time hackers, though recognizable in context. 2. The official name of the database language used by old the Pick Operating System, actually a sort of crufty, brain-damaged SQL with delusions of grandeur. The name permitted marketroids to say "Yes, and you can program our computers in English!" to ignorant suits without quite running afoul of the truth-in-advertising laws. -- gentoo-user@gentoo.org mailing list