On Sun, 2008-11-30 at 11:12 -0800, elk dolk wrote:
I have installed Awstats-6.8 on my Linux PC (FC 9) .
Thank you Tim for your post it was the only one! and it was helpful,
How did you install it?
I installed awstats-6.8-1.noarch.rpm that I downloaded from Awstats.sourceforge.net
Show us:
/etc/httpd/conf.d/awstats.conf
it doesn’t exist!
Please note that I get the Log files from my ISP and process them locally in my Linux PC. That is why I don’t use Apache server in my PC but, it seems that first I have to setup Apache serve.
/etc/awstats/*.conf
This is my awstats.MyDomain.conf :
# AWSTATS CONFIGURE FILE 6.8
# $Revision: 1.333 $ - $Author: eldy $ - $Date: 2008/02/26 01:33:59 $
LogFile="/var/mylog/access.log"
LogType=W
LogFormat=1
LogSeparator=" "
SiteDomain="www.MyDomain.com"
HostAliases="MyDomain.com www.MyDomain.com 127.0.0.1 localhost"
DNSLookup=2
DirData="/var/mylog/Data"
DirCgi="/cgi-bin"
DirIcons="/icon"
AllowToUpdateStatsFromBrowser=0
AllowFullYearView=2
EnableLockForUpdate=0
DNSStaticCacheFile="dnscache.txt"
DNSLastUpdateCacheFile="dnscachelastupdate.txt"
SkipDNSLookupFor=""
AllowAccessFromWebToAuthenticatedUsersOnly=0
AllowAccessFromWebToFollowingAuthenticatedUsers=""
AllowAccessFromWebToFollowingIPAddresses=""
CreateDirDataIfNotExists=0
BuildHistoryFormat=text
BuildReportFormat=html
SaveDatabaseFilesWithPermissionsForEveryone=0
PurgeLogFile=0
ArchiveLogRecords=0
KeepBackupOfHistoricFiles=0
DefaultFile="index.html"
SkipHosts=""
SkipUserAgents=""
SkipFiles=""
SkipReferrersBlackList=""
OnlyHosts=""
OnlyUserAgents=""
OnlyUsers=""
OnlyFiles=""
NotPageList="css js class gif jpg jpeg png bmp ico rss xml swf"
ValidHTTPCodes="200 304"
ValidSMTPCodes="1 250"
AuthenticatedUsersNotCaseSensitive=0
URLNotCaseSensitive=0
URLWithAnchor=0
URLQuerySeparators="?;"
URLWithQuery=0
URLWithQueryWithOnlyFollowingParameters=""
URLWithQueryWithoutFollowingParameters=""
URLReferrerWithQuery=0
WarningMessages=1
ErrorMessages=""
DebugMessages=0
NbOfLinesForCorruptedLog=50
WrapperScript=""
DecodeUA=0
MiscTrackerUrl="/js/awstats_misc_tracker.js"
LevelForBrowsersDetection=2 # 0 disables Browsers detection.
LevelForOSDetection=2 # 0 disables OS detection.
LevelForRefererAnalyze=2 # 0 disables Origin detection.
LevelForRobotsDetection=2 # 0 disables Robots detection.
LevelForSearchEnginesDetection=2 # 0 disables Search engines detection.
LevelForKeywordsDetection=2 # 0 disables Keyphrases/Keywords detection.
LevelForFileTypesDetection=2 # 0 disables File types detection.
LevelForWormsDetection=0 # 0 disables Worms detection.
UseFramesWhenCGI=1
DetailedReportsOnNewWindows=1
Expires=0
MaxRowsInHTMLOutput=1000
Lang="auto"
DirLang="./lang"
ShowMenu=1
ShowSummary=UVPHB
ShowMonthStats=UVPHB
ShowDaysOfMonthStats=VPHB
ShowDaysOfWeekStats=PHB
ShowHoursStats=PHB
ShowDomainsStats=PHB
ShowHostsStats=PHBL
ShowAuthenticatedUsers=0
ShowRobotsStats=HBL
ShowWormsStats=0
ShowEMailSenders=0
ShowEMailReceivers=0
ShowSessionsStats=1
ShowPagesStats=PBEX
ShowFileTypesStats=HB
ShowFileSizesStats=0
ShowOSStats=1
ShowBrowsersStats=1
ShowScreenSizeStats=0
ShowOriginStats=PH
ShowKeyphrasesStats=1
ShowKeywordsStats=1
ShowMiscStats=a
ShowHTTPErrorsStats=1
ShowSMTPErrorsStats=0
ShowClusterStats=0
AddDataArrayMonthStats=1
AddDataArrayShowDaysOfMonthStats=1
AddDataArrayShowDaysOfWeekStats=1
AddDataArrayShowHoursStats=1
IncludeInternalLinksInOriginSection=0
MaxNbOfDomain = 10
MinHitDomain = 1
MaxNbOfHostsShown = 10
MinHitHost = 1
MaxNbOfLoginShown = 10
MinHitLogin = 1
MaxNbOfRobotShown = 10
MinHitRobot = 1
MaxNbOfPageShown = 10
MinHitFile = 1
MaxNbOfOsShown = 10
MinHitOs = 1
MaxNbOfBrowsersShown = 10
MinHitBrowser = 1
MaxNbOfScreenSizesShown = 5
MinHitScreenSize = 1
MaxNbOfWindowSizesShown = 5
MinHitWindowSize = 1
MaxNbOfRefererShown = 10
MinHitRefer = 1
MaxNbOfKeyphrasesShown = 10
MinHitKeyphrase = 1
MaxNbOfKeywordsShown = 10
MinHitKeyword = 1
MaxNbOfEMailsShown = 20
MinHitEMail = 1
FirstDayOfWeek=1
ShowFlagLinks=""
ShowLinksOnUrl=1
UseHTTPSLinkForUrl=""
MaxLengthOfShownURL=64
HTMLHeadSection=""
HTMLEndSection=""
Logo="awstats_logo6.png"
LogoLink="http://awstats.sourceforge.net"
BarWidth = 260
BarHeight = 90
StyleSheet=""
# PLUGINS
LoadPlugin="geoip GEOIP_STANDARD /usr/local/share/GeoIP/GeoIP.dat"
ExtraTrackedRowsLimit=500
Tim:
How did you install it?
elk dolk:
I installed awstats-6.8-1.noarch.rpm that I downloaded from Awstats.sourceforge.net
Is there some reason that you don't want to install the version that's already available from one of the repos? Doing so sets it up so that it works without the pain that you're going through.
/etc/httpd/conf.d/awstats.conf
it doesn’t exist!
That's half your problem, then. The output from it is usually read through a web server. You browse to its script, and feed it parameters to show you certain results. And to do that, the web server needs configuration for using awstats.
I dare say that you could get results, directly, but there's some useful flexibility you get when you can interact with it through the web browser.
Please note that I get the Log files from my ISP and process them locally in my Linux PC. That is why I don’t use Apache server in my PC but, it seems that first I have to setup Apache serve.
I don't know if you have to, but that's the only way I've used it. I used to download logs from my webserver, and parse them locally with webalizer, but I did use my own local webserver for displaying the results.
Generally speaking, it's a very good idea to have a local webserver when you're working with websites. You can test things before making them public.
This is my awstats.MyDomain.conf :
SiteDomain="www.MyDomain.com"
You'd change that to match your real domain name, then the program should be able to do the tricks that it does to produce stats in a controlled manner. Likewise with HostAliases parameters.
NotPageList="css js class gif jpg jpeg png bmp ico rss xml swf"
Add anything to that list that you don't want counted as being a "page".