(Get-Content ) | % | Set-Content ġ1) Launch the PowerShell script, and it will start to analyze the logs. $items = Get-ChildItem -Path “C:\Program Files\AWStats\wwwroot\cgi-bin\logs\intranet”Ĭd “C:\Program Files\AWStats\wwwroot\cgi-bin” # This is to permit URL access to scripts/files in AWStats directory.ĥ) Add “ScriptInterpreterSource registry” into nf to tell Apache to use Windows environment path.Ĭ:\Program Files\AWStats\LogFile=”C:/Program Files/AWStats/Create a PowerShell script file named genlog.ps1 ScriptAlias /awstats/ “C:/Program Files/AWStats/wwwroot/cgi-bin/” # Directives to allow use of AWStats as a CGIĪlias /awstatsclasses “C:/Program Files/AWStats/wwwroot/classes/”Īlias /awstatscss “C:/Program Files/AWStats/wwwroot/css/”Īlias /awstatsicons “C:/Program Files/AWStats/wwwroot/icon/” – Apache configure file: C:\Program Files\Apache Software Foundation\Apache2.2\conf\nfĤ) Verify the following can be found in your nf file, AWstats installation should have modified it already: – Apache folder: C:\Program Files\Apache Software Foundation\Apache2.2 (You can rerun the configuration by executing “C:\Program Files\AWStats\tools\awstats_”. You also can use IIS.ģ) Install AWstats, during the installation, you need to answer a few questions. The software version I use in my example:ġ) Install Apache, this is where I want to publish my log analysis. I built up one on a Windows 2003 server to analyze the intranet (IIS server) usage. You will see "Advanced Web Statistics 6.1 (build 1.751) - Created by awstats (with plugin geoip, tooltips)".AWstats is an open source log analyzer. Next, go into cpanel, click on awstats and go at the end of the page. #LoadPlugin="graphapplet /awstatsclasses" # EXPERIMENTAL FEATURE # Supported charts are built by a 3D graphic applet. # This plugin adds a form in AWStats main page to allow users to see raw # content of current log files. # This plugin reduces AWStats speed of 40% !!!!!!! # This module is useless for Apache and most IIS version. # Allow AWStats to correct a bad timezone for user of some IIS that use # GMT date in its log instead of local server time. # Time reported by -showsteps option is in millisecond. # A text file called, with two fields (first is URL, # second is text to show, separated by a tab char) must be created in DirData # directory. # Add a text (Page title, description.) in URL reports before URL value. # Add a column into host chart with a link to open a popup window that shows # info on host (like whois records). # A text file called, with two fields (first is login, # second is text to show, separated by a tab char) must be created in DirData # directory. ) in authenticated user # reports for each login value. # Add a text (Firtname, Lastname, Office Department. # Note: You must choose between using this plugin (need Perl Geo::IP module # from Maxmind) or the GeoIPfree plugin (need Perl Geo::IPfree module). # Perl modules required: Geo::IP or Geo::IP::PurePerl (from Maxmind) # Country chart is built from an Internet IP-Country database. # This plugin reduces AWStats speed of 10% ! # Note: You must choose between using this plugin (need Perl Geo::IPfree module) # or the GeoIP plugin (need Perl Geo::IP module from Maxmind). # This plugin is useless for intranet only log files. # Perl modules required: Geo::IPfree version 0.2 (from Graciliano M.P.) # Country chart is built from an Internet IP-Country database. This increase # DNS cache files loading speed, above all for very large web sites. # AWStats DNS cache files are read/saved as native hash files. # Note: If you are interesting in having country report, you should use the # geoipfree or geoip plugin instead of enabled reverse DNS lookup. # Perl modules required: Net::IP and Net::DNS # This plugin gives AWStats capability to make reverse DNS lookup on IPv6 # addresses. # Perl modules required: Encode and URI::Escape # Allow AWStats to show correctly (in language charset) keywords/keyphrases # strings even if they were UTF8 coded by the referer search engine. # Note that enabled this kind of help will increased HTML report pages size, # so server load and bandwidth. # Add some tooltips help on HTML report pages. # Uncomment LoadPlugin lines to enable a plugin after checking that perl # modules required by the plugin are installed. # Add here all plugins file you want to load. Document directory Download/install Configuration File naming rules: AWStats. Unpack it and move the "plugins" directory here: /usr/local/cpanel/3rdparty/bin/ģ/Go into your ftp program and Go here: /tmp/awstats/.ĭownload your file and add this at the end of the file: a W3C log format like IIS 5.0 or higher, or any other log format that contains all information AWStats expect to find. I find a way that we can use cpanel awstats with plugins!!ġ/ You must upgrade awstats to latest version (6.1):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |