Install AWStats- Free Logfile Analyzer for Site Statistics Install AWStats-Free Logfile Analyzer par Vietnes Statistika
Prerequisite Priekšnoteikums
As AWStats is Perl based, a Perl Interpreter need to be installed first to take anvantage of AWStats. Kā AWStats ir Perl pamatā, a Perl Interpreter nepieciešams uzstādīt pirmo veikt anvantage un AWStats. For instruction on how to install Perl in Windows machine, check out Par norādījums par to, kā uzstādīt Perl Windows mašīnu, izbraukšana this article šo rakstu . .
Download AWStats Download AWStats
Download latest stable release of AWStats from Lejupielādēt jaunāko stabils atbrīvošanu AWStats no http://www.awstats.org/ http://www.awstats.org/ . . Choose the setup package that ended with .exe extension. Izvēlieties setup kompleksu, kas beidzās ar. Exe pagarinājumu.
Install AWStats Install AWStats
Launch the AWStats setup file by double clicking on the executable that just has been downloaded. Uzsākt AWStats setup failu, dubultā noklikšķinot uz izpildāmā, ka tikko ir lejupielādēta.

Click “Next” to continue. Noklikšķiniet uz "Next", lai turpinātu.

Click “I Agree” to continue. Noklikšķiniet uz "I Agree", lai turpinātu.

You may want to change the installation folder here. Iespējams, vēlaties mainīt uzstādīšanas mapi šeit. Then click on “Install” to start the installation. Pēc tam uzklikšķiniet uz "Install", lai sāktu instalēšanu.
Setup and Configuration for Apache Web Server Setup un konfigurācija Apache Web Server
AWStats installer will automatically launches the awstats_configure.pl script to do several setup actions. AWStats uzstādītājam automātiski uzsāk awstats_configure.pl skriptu do vairākas setup darbībām. If you're not using the Windows installer, you can find the script in the AWStats tools directory. Ja jūs neizmantojat Windows installer, jūs varat atrast skriptu, kas AWStats darbarīki direktorijā. To execute it use (if location of perl.exe is within your path environment): To izpildīt izmantot (ja vietu perl.exe ir jūsu ceļš videi):
perl awstats_configure.pl Perl awstats_configure.pl
This is what the script does/asks (you can do all these steps manually instead of running awstats_configure.pl (automatically launch by Windows installer) if you prefer): Tas ir tas, ko skriptu vai / prasa (vari darīt visu soļus rokām, nevis rādīt awstats_configure.pl (tiek automātiski sākt ar Windows installer), ja vēlies):
A) awstats_configure.pl tries to determine your current log format from your Apache web server configuration file httpd.conf (it asks for the path if not found). A) awstats_configure.pl cenšas noteikt jūsu pašreizējo log formāts no jūsu Apache tīmekļa servera konfigurācijas failu httpd.conf (tas prasa ceļu, ja nav atrasts). If you use a common log, awstats_configure.pl will suggest changing it to the NCSA combined/XLF/ELF format (you can use your own custom log format but this predefined log format is often the best choice and makes setup easier). Ja izmantojat kopīgu žurnālu, awstats_configure.pl ieteiks mainot to uz NCSA kombinētās / XLF / ELF formāts (vari izmantot savus custom log formāts bet tas iepriekšnoteikta log formāts bieži vien ir labākā izvēle un padara setup vieglāk).
If you answer yes, awstats_configure.pl will modify your httpd.conf, changing the following directive from: Ja atbildat "jā", awstats_configure.pl grozīs savu httpd.conf, nemainot šādu direktīvu no:
CustomLog /yourlogpath/yourlogfile common CustomLog / yourlogpath / yourlogfile kopējā
to uz
CustomLog /yourlogpath/yourlogfile combined CustomLog / yourlogpath / yourlogfile kombinētās
See the Apache manual for more information on this directive (possibly installed on your server as www.mysite.com/manual). Skatīt Apache rokasgrāmatā, lai iegūtu vairāk informācijas par šo direktīvu (iespējams uzstādīt uz jūsu serveri, kā www.mysite.com / manuāla).
B) awstats_configure.pl will then add, if not already present, the following directives to your Apache configuration file (note that the “/usr/local/awstats/wwwroot” path might differ according to your distribution or OS: B) awstats_configure.pl tad pievienot, ja tas jau nav klāt, šādas direktīvas jūsu Apache konfigurācijas failu (ņemiet vērā, ka "/ usr / local / awstats / wwwroot" ceļš var atšķirties atbilstoši jūsu izplatīšanas vai OS:
# #
# Directives to add to your Apache conf file to allow use of AWStats as a CGI. # Direktīvām pievienot savai Apache conf failu, lai varētu izmantot AWStats kā CGI.
# Note that path “/usr/local/awstats/” must reflect your AWStats Installation path. # Ievērojiet, ka ceļš "/ usr / local / awstats /" jāatspoguļo jūsu AWStats Installation ceļu.
# #
Alias /awstatsclasses “/usr/local/awstats/wwwroot/classes/” Alias / awstatsclasses "/ usr / local / awstats / wwwroot / klasēm /"
Alias /awstatscss “/usr/local/awstats/wwwroot/css/” Alias / awstatscss "/ usr / local / awstats / wwwroot / css /"
Alias /awstatsicons “/usr/local/awstats/wwwroot/icon/” Alias / awstatsicons "/ usr / local / awstats / wwwroot / ikona /"
ScriptAlias /awstats/ “/usr/local/awstats/wwwroot/cgi-bin/” ScriptAlias / awstats / "/ usr / local / awstats / wwwroot / cgi-bin /"# #
# This is to permit URL access to scripts/files in AWStats directory. # Šis ir atļaut URL piekļūt skripti / failus AWStats direktorijā.
# #Options None Iespējas Nav
AllowOverride None AllowOverride None
Order allow,deny Šķirot ļauj, noliegt
Allow from all Atļaut no visiemC) if changes were made as indicated in parts A and B, awstats_configure.pl restarts Apache to apply the changes. C) Ja izmaiņas tika izdarītas, kā norādīts A un B daļā, awstats_configure.pl restart Apache piemērot izmaiņas. To be sure the log format change is effective, go to your homepage. Lai būtu drošs, ka log formāts pārmaiņu efektivitāti, iet uz jūsu mājas lapā. This is an example of the type of records you should see inserted in your new log file after Apache was restarted: Šis ir piemērs par to, kāda veida uzskaiti jums vajadzētu redzēt iekļauj savu jauno log failu pēc Apache tika atsākta:
62.161.78.75 - - [dd/mmm/yyyy:hh:mm:ss +0000] “GET / HTTP/1.1″ 200 1234 “http://www.from.com/from.html” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)” 62.161.78.75 - - [dd / mmm / gggg: hh: mm: ss 0000] "GET / HTTP/1.1" 200 1234 "http://www.from.com/from.html" "Mozilla/4.0 (compatible ; MSIE 5,01; Windows NT 5.0) "
D) awstats_configure.pl will ask you for a name for the configuration profile file. D) awstats_configure.pl lūgs jums par nosaukumu konfigurācijas profils failu. Enter an appropriate name such as that of your web server or the virtual domain to be analyzed, ie mysite. Enter atbilstošu vārdu, piemēram, jūsu tīmekļa servera vai virtuālo domēna jāanalizē, ti mysite.
awstats_configure.pl will create a new file called awstats.mysite.conf by copying the template file awstats.model.conf. awstats_configure.pl radīs jaunu failu sauc awstats.mysite.conf kopējot šablona failu awstats.model.conf. The new file location is: Jaunais failu atrašanās vieta ir:
- For Linux/BSD/Unix users: /etc/awstats. - For Linux / BSD / Unix lietotāji: / etc / awstats.
- For Mac OS X, Windows and other operating systems: the same directory as awstats.pl (cgi-bin). - For Mac OS X, Windows un citām operētājsistēmām: tā pati direktorija, kā awstats.pl (CGI-BIN).E) awstats_configure.pl ends. E) awstats_configure.pl galiem.
Check through the httpd.conf is configured properly according to steps above. Iepazīstieties ar httpd.conf ir konfigurēta pareizi, saskaņā ar soļus iepriekš. It has been reported that sometime the CustomLog is not changed from common to combined. Ir ziņots, ka dažkārt ir CustomLog nav mainīts no kopīgas kombinēti.
Additional Configuration at Main Parameters of awstats. mysite .conf Papildu konfigurācijā parametri awstats. Mysite. Conf
A) Change Apache log file directory by: A) Maina Apache log failu direktoriju by:
Find : LogFile=”/var/log/apache/access.log” Find: LogFile = "/ var / log / apache / access.log"
Replace with : LogFile=”C:/Program Files/Apache Group/Apache2/logs/access_log” Aizstāt ar: LogFile = "C: / Program Files / Apache Group/Apache2/logs/access_log"
(Important: The setting is for default Apache installation path. If you change your Apache path, please input accordingly. Note that the directory seperator is /) (Svarīgi: Tas ir noklusējuma Apache uzstādīšana ceļu. Ja jūs maināt savu Apache ceļam, lūdzu ievadi attiecīgi. Ievērojiet, ka directory SEPERATOR ir /)
B) Change log file type (Optional, typically no need to change) B) Change log faila veids (izvēles, parasti nav nepieciešamības izmaiņas)
Find : LogType=W Find: LogType = W
Replace the value with “W” for analyzing web server log files, “S” for a streaming server log file, “M” for mail log files, “F” for ftp log files. Uzlieciet vērtību ar "W" analizēšanai tīmekļa servera log failus, "S" par Streaming Server log failu, "M" pastam log failus, "F", lai ftp log faili.
C) Check if LogFormat has the value “1″ (it means “NCSA apache combined/ELF/XLF log format”) or use a personalized log format if you don't use combined log format. C) Pārbaudiet, vai LogFormat ir "1" (tas nozīmē "NCSA apache kombinētās / ELF / XLF log formāts"), vai izmantot personalizētajai log formāts, ja jūs neizmantojat kombinētās log formātā.
D) Check if SiteDomain parameter with the main domain name or the intranet web server name used to reach the web site to analyze (Example: www.mydomain.com). D) Pārbaudiet, vai SiteDomain parametrs ar galveno domēna nosaukumu vai iekštīkla tīmekļa servera nosaukumu, ko izmanto, lai sasniegtu interneta vietni, lai analizētu (Piemērs: www.mydomain.com).
E) If you have several possible name for same site, add list in HostAlias parameter: E) gadījumā, ja jums ir vairāki iespējamie nosaukumu vienā vietā, pievienot saraksta HostAlias parametram:
Find : HostAliases=”localhost 127.0.0.1 REGEX[^.*\.myserver\.com$]” Find: HostAliases = "localhost 127.0.0.1 REGEX [^ .* \. Myserver \. Com $]"
Replace with : HostAliases=”yoursite.com localhost 127.0.0.1″ Aizstāt ar: HostAliases = "yoursite.com localhost 127.0.0.1"
(You can include alias names from dynamic DNS accounts such as www.mysite.serveftp.net and etc.) (Jūs varat iekļaut alias nosaukumus no dinamiskās DNS kontiem, piemēram www.mysite.serveftp.net uc)
F) AWStats statistics can be updated from a browser, to provide real-time statistics, by clicking the “Update now” link that appears when AWStats is used as a CGI. F) AWStats statistiku var tikt atjaunoti pārlūkprogrammā, lai reālā laika statistiku, noklikšķinot uz "Atjaunināt tagad" saiti, kas parādās, kad AWStats izmanto kā CGI. To enable it: Lai to varētu:
Find : AllowToUpdateStatsFromBrowser=0 Find: AllowToUpdateStatsFromBrowser = 0
Replace with : AllowToUpdateStatsFromBrowser=1 Aizstāt ar: AllowToUpdateStatsFromBrowser = 1
G) Edit 'awstats.pl' located in “C:\Program Files\AWStats\wwwroot\cgi-bin\” and change the path on the first line to point to exact location of perl.exe in your system, ie #!C:\perl\bin\perl.exe. G) Rediģēt 'awstats.pl "atrodas" C: \ Program Files \ AWStats \ wwwroot \ cgi-bin \ "un pārmaiņu ceļš uz pirmo līniju, kas norāda uz precīzu atrašanās vietu perl.exe jūsu sistēma, ti, #! C: \ Perl \ bin \ perl.exe.
To Maintain Just Single CGI Directory - Optional Lai saglabātu tikai atsevišķu CGI Directory - pēc izvēles
New version of AWStats creates alias directory entries at the bottom of Apache httpd.conf file. Jaunā versija AWStats rada alias directory entries pie apakšā Apache httpd.conf failu. If you want to have just one CGI executable directory, you have to move the AWStats scripts to existing CGI directory. Ja vēlaties, ir tikai viens CGI izpildāmā directory, jums ir pārvietojiet AWStats skripti esošajiem CGI direktorijā.
The following assume installation in default path. Turpmāk uzņemties uzstādīt noklusējuma ceļu.
- Copy ALL files and sub-folders contained within “C:\Program Files\AWStats\wwwroot\cgi-bin\” and paste into your Apache2 web server's cgi-bin at “C:\Program Files\Apache Group\Apache2\cgi-bin\” Copy ALL files and sub-folders ietvertas "C: \ Program Files \ AWStats \ wwwroot \ cgi-bin \" un ielīmēt Jūsu Apache2 web servera cgi-bin ir "C: \ Program Files \ Apache Group \ Apache2 \ cgi - bin \ "
- Copy ALL files and sub-folders contained within “C:\Program Files\AWStats\wwwroot\icon\” and paste into our Apache2 web server's icons folder at “C:\Program Files\Apache Group\Apache2\icons\” Copy ALL files and sub-folders ietvertas "C: \ Program Files \ AWStats \ wwwroot \ icon \" un ielīmēt mūsu Apache2 web servera ikonas mape ir "C: \ Program Files \ Apache Group \ Apache2 \ ikonas \"
Edit again the awstats. mysite .conf file, the change the following: Edit atkal awstats. Mysite. Conf failu, izmaiņas šādu:
Find : DirIcons=”/icon” Find: DirIcons = "/ ikona"
Replace with : DirIcons=”/icons” Aizstāt ar: DirIcons = "/ ikonas"
Delete from Apache web server's httpd.conf the alias directory that has been inserted by AWStats setup program. Dzēst no Apache Web servera httpd.conf ar alias katalogs, kas ir iekļauta ar AWStats setup program.
Optional Setup Section Neobligāta Setup iedaļa
Find : DefaultFile=”index.html” Find: DefaultFile = "index.html"
Replace with your default index page, only if necessary, ie DefaultFile=”index.php” or DefaultFile=”index.php index.html” Aizstāt ar noklusējuma indekss lapas, tikai tad, ja nepieciešams, ti DefaultFile = "index.php" vai DefaultFile = "index.php index.html"
Find : SkipHosts=”" Find: SkipHosts = ""
Replace with : SkipHosts=”127.0.0.1 REGEX[^192\.168\.] REGEX[^10\.0\.]” Aizstāt ar: SkipHosts = "127.0.0.1 REGEX [^ 192 \ ,168 \.] REGEX [^ 10 \ ,0 \.]"
This is to not include statistics from your own local machines, they will remain in the actual log files but excluded from awstats counts. Tas ir nepieciešams, lai neietver statistiku no jūsu vietējā mašīnas, tie paliks faktisko log failus, bet izslēdz no awstats skaitu. To get actual hits and figures it's sometime necessary, but is not essential at this stage. Lai iegūtu faktiskās hits un summas tas dažreiz pat nepieciešams, bet nav būtiski šajā posmā.
Build/Update Statistics Build / Update Statistika
There are two possible way to analyze, update and generate the AWStats statistics, command line and browser based. Ir divi iespējamie veids, kā analizēt, atjaunina un radītu AWStats statistika, komandrindas un pārlūka balstīts.
Command Line Option Command Line variants
Go to the command line, and change directory to your AWStats cgi-bin directory, ie C:\Program Files\AWStats\wwwroot\cgi-bin. Doties uz komandrindas un mainīt direktoriju jūsu AWStats cgi-bin direktorijā, ti C: \ Program Files \ AWStats \ wwwroot \ cgi-bin.
The AWStats update command line is (replace with your domain): Par AWStats update komandrindas ir (aizvietot ar savu domēna):
perl awstats.pl -config=www.yourdomain.com -update Perl awstats.pl-config = www.yourdomain.com-update
AWStats database files are saved in directory defined by DirData parameter in config file, which we left as default (current directory). AWStats datubāzē faili tiek saglabāti directory noteikts DirData parametrs config failu, kurā mēs kreisā kā noklusēto (pašreizējās katalogs). Update might take a while, if the log file is big. Update varētu pieņemt, bet, ja log fails ir liels. When update is finished, you should get on screen a result like this: Kad update ir pabeigta, jūs saņemsiet uz ekrāna rezultātā šādi:
Update for config “/etc/awstats/awstats.myvirtualhostname.conf” Atjaunin config "/ etc / awstats / awstats.myvirtualhostname.conf"
With data in log file “/pathtoyourlog/yourlog.log”… Ar datu log file "/ pathtoyourlog / yourlog.log" ...
Phase 1 : First bypass old records, searching new record… Phase 1: First apvedceļš veco ieraksti, meklējot jaunu ierakstu ...
Searching new records from beginning of log file… Meklē kartotēkas, no sākuma log file ...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)… Phase 2: Tagad process jaunu ierakstus (Flush vēsture diskā pēc 20000 mājotne) ...
Jumped lines in file: 0 Jumped līniju failu: 0
Parsed lines in file: 225730 Parsētu līniju failu: 225730
Found 122 dropped records, Atrasts 122 samazinājās uzskaiti,
Found 87 corrupted records, Atrasts 87 bojāti uzskaiti,
Found 0 old records, Found 0 veco uzskaiti,
Found 225521 new qualifed records. Atrasts 225521 jaunas kvalificētas ierakstus.
Browser Option Browser variants
AWStats statistics can be updated from a browser, to provide real-time statistics, by clicking the “Update now” link that appears when AWStats is used as a CGI (only applicable if AllowToUpdateStatsFromBrowser is set to 1 in AWStats config file ). AWStats statistiku var tikt atjaunoti pārlūkprogrammā, lai reālā laika statistiku, noklikšķinot uz "Atjaunināt tagad" saiti, kas parādās, kad AWStats izmanto kā CGI (piemērojama tikai tad, ja AllowToUpdateStatsFromBrowser ir līdz 1 AWStats config file).
Read Statistics Lasīt Statistika
Again, there is 2 methods where AWStats's statistics can be read, corresponding to the generation method of the stats mentioned above. Atkal, ir 2 metodes, ja AWStats statistiku var izlasīt, kas attiecas uz ražošanas metodi, no stats minēts iepriekš.
Command Line Option Command Line variants
At the same directory, after the first update command is finished, run the following command: Tajā pašā direktorijā, pēc tam, kad pirmo reizi atjaunots komanda ir pabeigta, palaist komandu:
perl awstats.pl -config=myvirtualhostname -output -staticlinks > awstats.myvirtualhostname.html Perl awstats.pl-config = myvirtualhostname un produkcijas-staticlinks> awstats.myvirtualhostname.html
The process may take a while, after it's finished, a html will be generated where you can view it with a browser by double clicking on it. Šis process var aizņemt kādu laiku pēc tam, kad tas ir pabeigts, ir html radīs, kur var apskatīt to ar pārlūkprogrammu dubultā noklikšķinot uz tā.
Browser Option Browser variants
Access the following directory (replace with your own domain): Piekļuve šādiem katalogs (aizvietot ar savu domēna):
http://www.myserver.mydomain/awstats/awstats.pl?config=myvirtualhostname http://www.myserver.mydomain/awstats/awstats.pl?config=myvirtualhostname
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- Site Statistics Tracker Performancing Metrics Reviews Site Statistika Tracker Performancing mērīšana Recenzijas
- WordPress Plugin: Display Google Analytics and FeedBurner Reports Statistics from Site Admin WordPress Plugin: Google Analytics un FeedBurner Ziņojumi statistika Site Admin
- Install, Setup and Configure CGI and Perl in Windows XP Install, uzstādīšana un konfigurēšana CGI un Perl Windows XP
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 2 Install Web Server Windows XP ar Apache2, PHP5 un MySQL4 - 2.daļa
- Download Free Disk Analyzer to Monitor and Clean Up Hard Disk Space Usage Download Free Disk Analyzer, lai uzraudzītu un Clean Up Hard Disk Space Usage
- Google AdSense and AdWords Statistics Not Updating and Delay Again Google AdSense un AdWords Statistika Ne atjaunināšana un Nokavējums Atkal
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3 Install Web Server Windows XP ar Apache2, PHP5 un MySQL4 - 3.daļa
- AdSense Reports and Statistics Not Real-Time AdSense ziņojumi un statistikas dati nav reāllaikā
- Redirect Blogger RSS Feed to FeedBurner for Detailed Statistics and Monetize Ads Pārvirzīšanas Blogger RSS Feed lai FeedBurner sīkākai Statistika un Monetize Ads
- Compare Website Traffic and Website Statistics Easily Alexaholic Salīdzināt Website Satiksmes un Website Statistics Viegli Alexaholic









































