ركّبت [أوستتس-] حرّة [لوغفيل] محللة لموقعة إحصائيّة

متطلّب أساسيّ

بما أنّ [أوستتس] يكون [برل] يؤسّس, [برل] مترجمة حاجة أن يكون ركّبت أولى أن يأخذ [أنفنتج] [أوستتس]. فحصت لتعليم على كيف أن يركّب [برل] في [ويندووس] آلة, خارجا هذا مادة.

[دوونلوأد] [أوستتس]

[دوونلوأد] [لتست] إطلاق ثابتة [أوستتس] من http://www.awstats.org/. اخترت التركيب مجموعة أنّ أنهى مع [.إكس] إمتداد.

ركّبت [أوستتس]

أطلقت [أوستتس] تركيب مبرد بمزدوجة يطقطق على القابل للتنفيذ أنّ فقط يتلقّى يكون جلبت.

[أوستتس] تجهيز
طقطقة "بعد ذلك" أن يستمرّ.

[أوستتس] تجهيز
طقطقة "أنا أوافق" أن يستمرّ.

[أوستتس] تجهيز
أنت يمكن أردت أن يغيّر التجهيز ملف هنا. بعد ذلك طقطقت فوق "يركّب" أن يبدأ التجهيز.

تركيب وتشكيل ل [أبش] [وب سرفر]

[أوستتس] مركبة يطلق إرادة تلقائيّا ال [أوستتسكنفيغر.بل] نص أن يتمّ عدّة تركيب أعمال. إن أنت يكون لا تستعمل [ويندووس] مركبة, أنت يستطيع وجدت النص في [أوستتس] أدوات دليل. أن ينفّذ هو إستعمال (إن موقعة ال [برل.إكس] يكون ضمن ك ممر بيئة):

[برل] [أوستتسكنفيغر.بل]

أطلقت هذا ماذا النص يتمّ/يسأل (أنت يستطيع أتمّت كلّ هذا [ستبس] يدويّا [إينستد وف] يركض [أوستتسكنفيغر.بل] (تلقائيّا ب [ويندووس] مركبة) إن أنت تفضّل):

A) [أوستتسكنفيغر.بل] يحاول أن يحدّد ك حاليّة سجلّ مقياس سرعة شكل من ك [أبش] [وب سرفر] تشكيل مبرد [هتّبد.كنف] (يسأل هو للممر [إيف نوت] يؤسّس). إن أنت تستعمل سجلّ مقياس سرعة عاديّة, سيقترح [أوستتسكنفيغر.بل] يغيّر هو إلى ال [نكسا] [كمبيند/إكسلف/لف] شكل (أنت يستطيع استعملت ك خاصّة حسب الطّلب سجلّ مقياس سرعة شكل غير أنّ هذا يعرف سجلّ مقياس سرعة شكل غالبا الإختبار جيّدة ويجعل تركيب يتيح).

إن أنت تجيب نعم, سيعدّد [أوستتسكنفيغر.بل] [هتّبد.كنف] ك, يغيّر التوجيهات تالي من:

[كستوملوغ] /yourlogpath/yourlogfile عامة

إلى

[كستوملوغ] /yourlogpath/yourlogfile يضمّ

رأيت [أبش] دليل استخدام ل كثير معلومة على هذا توجيهات (من المحتمل يركّب على نادلتك ك www.mysite.com/manual).

B) [أوستتسكنفيغر.بل] يضيف إرادة بعد ذلك, [إيف نوت] سابقا هدية, التوجيهات تالي إلى ك [أبش] تشكيل مبرد (بطاقة أنّ ال "[/وسر/لوكل/وستتس/وّورووت]" ممر أمكن اختلفت وفقا ل ك توزيع أو [أس]:

#
# توجيهات أن يضيف إلى ك [أبش] [كنف] مبرد أن يسمح إستعمال [أوستتس] ك [كج].
# يلاحظ أنّ ممر "[/وسر/لوكل/وستتس/]" ينبغي عكست ك [أوستتس] تجهيز ممر.
#
[أليس] /awstatsclasses "[/وسر/لوكل/وستتس/وّورووت/كلسّس/]"
[أليس] /awstatscss "[/وسر/لوكل/وستتس/وّورووت/كسّ/]"
[أليس] /awstatsicons "[/وسر/لوكل/وستتس/وّورووت/يكن/]"
[سكريبتليس] /awstats/ "[/وسر/لوكل/وستتس/وّورووت/كج-بين/]"

#
# هذا أن يسمح [أورل] منفذة إلى نصوص/مبارد في [أوستتس] دليل.
#

خيارات لا شيء
[ألّوووفرّيد] لا شيء
أمر يسمح, ينكر
سمحت من كلّ

C) إن تغيرات كان جعلت بما أنّ يشار في أجزاء [ا] و [ب], يستأنف [أوستتسكنفيغر.بل] [أبش] أن يطبّق التغيرات. أن يكون يوقن السجلّ مقياس سرعة يغيّر شكل فعّالة, يذهب إلى [هومبج] ك. This is an example of the type of records you should see inserted in your new log file after Apache was restarted:

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)”

D) awstats_configure.pl will ask you for a name for the configuration profile file. Enter an appropriate name such as that of your web server or the virtual domain to be analyzed, i.e. mysite.

awstats_configure.pl will create a new file called awstats.mysite.conf by copying the template file awstats.model.conf. The new file location is:
- For Linux/BSD/Unix users: /etc/awstats.
- For Mac OS X, Windows and other operating systems: the same directory as awstats.pl (cgi-bin).

E) awstats_configure.pl ends.

Check through the httpd.conf is configured properly according to steps above. It has been reported that sometime the CustomLog is not changed from common to combined.

Additional Configuration at Main Parameters of awstats.mysite.conf

A) Change Apache log file directory by:

Find : LogFile=”/var/log/apache/access.log”
Replace with : 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 /)

B) Change log file type (Optional, typically no need to change)
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.

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.

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).

E) If you have several possible name for same site, add list in HostAlias parameter:

Find : HostAliases=”localhost 127.0.0.1 REGEX[^.*\.myserver\.com$]”
Replace with : 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.)

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. To enable it:

Find : AllowToUpdateStatsFromBrowser=0
Replace with : 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, i.e. #!C:\perl\bin\perl.exe.

To Maintain Just Single CGI Directory - Optional

New version of AWStats creates alias directory entries at the bottom of Apache httpd.conf file. If you want to have just one CGI executable directory, you have to move the AWStats scripts to existing CGI directory.

The following assume installation in default path.

  • 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 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\”

Edit again the awstats.mysite.conf file, the change the following:

Find : DirIcons=”/icon”
Replace with : DirIcons=”/icons”

Delete from Apache web server’s httpd.conf the alias directory that has been inserted by AWStats setup program.

Optional Setup Section

Find : DefaultFile=”index.html”
Replace with your default index page, only if necessary, i.e. DefaultFile=”index.php” or DefaultFile=”index.php index.html”

Find : SkipHosts=”"
Replace with : 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. To get actual hits and figures it’s sometime necessary, but is not essential at this stage.

Build/Update Statistics

There are two possible way to analyze, update and generate the AWStats statistics, command line and browser based.

Command Line Option

Go to the command line, and change directory to your AWStats cgi-bin directory, i.e. C:\Program Files\AWStats\wwwroot\cgi-bin.

The AWStats update command line is (replace with your domain):

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). Update might take a while, if the log file is big. When update is finished, you should get on screen a result like this:

Update for config “/etc/awstats/awstats.myvirtualhostname.conf”
With data in log file “/pathtoyourlog/yourlog.log”…
Phase 1 : First bypass old records, searching new record…
Searching new records from beginning of log file…
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)…
Jumped lines in file: 0
Parsed lines in file: 225730
Found 122 dropped records,
Found 87 corrupted records,
Found 0 old records,
Found 225521 new qualifed records.

Browser Option

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 ).

Read Statistics

Again, there is 2 methods where AWStats’s statistics can be read, corresponding to the generation method of the stats mentioned above.

Command Line Option

At the same directory, after the first update command is finished, run the following command:

perl awstats.pl -config=myvirtualhostname -output -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.

Browser Option

Access the following directory (replace with your own domain):

http://www.myserver.mydomain/awstats/awstats.pl?config=myvirtualhostname

IMPORTANT: This is a machine translated page which is provided "as is" without warranty. Machine translation may be difficult to understand. Please refer to original English article whenever possible.

Share and contribute or get technical support and help at My Digital Life Forums.



Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

AWStats FOR WINDOWS - AWStats windows - maillog analyzer - install awstat - awstat install - awstat windows - awstats command line - awstats windows installer - awstats windows apache - Flush history file on disk (unique url reach flush limit of 5000) - Flush history file on disk (unique hosts reach flush limit of 20000) - how to install awstats - awstats on windows - installer awstat - apache awstats windows - awstats_configure.pl - awstat command line - how to install awstats in windows 2003 server - AWstat on windows - awstats windows 2003 - awstats apache - awstats maillog - awstat installation - If not, you can run "awstats_configure.pl" from command line, or create it manually. - awstats windows installation - awstats apache windows - maillog analyser - awstat installer for windows - how to install awstats in windows - AWstats for Windows apache - awstats on windows apache - awstats directory location - installing awstats +bsd - AWStats Logfile Analyzer - repair corrupted records in awstats apache - awstat installer - awstats installer - how to install awstats on windows - awstats for win 64 - how to setup AWstats on windows XP - instalar awstats en windows server - how to install awstat - Awstats with apache on windows - awstat maillog - awstats install without httpd.conf - analyze access.log OS X - awstats windows 2003 ntfs - awstats for windows xp - installing awstats on windows xp - awstats windows install -