oxas a écrit :
Poste tes fichiers de conf, les commandes que tu executes et les messages d'erreur (ou pas) que tu as en sortie
|
Commande executée :
1) Dans /usr/lib/cgi-bin je lance la commande ./awstats.pl -config=www.monsite.com –update
Voici la réponse que j’obtiens :
An error occured. Contact your Administrator
2) Mais lorsque je tape la même commande avec ./awstats.pl -config=monsite.com –update
Voici la réponse que j’obtiens :
Update for config "/etc/awstats/awstats.conf"
With data in log file "/var/log/apache2/access.log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 245836)
Jumped lines in file: 245836
Found 245836 already parsed records.
Parsed lines in file: 120
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 120 new qualified records.
On voit bien que la mise à jour se fait bien mais elle va prendre les paramétres du fichier awstats.conf.
Or je voudrais qu’elle prenne en compte mon fichier awstats.www.monsite.com.conf
3) Voici le contenu de mon fichier awstats.www.monsite.com.conf :
# AWSTATS CONFIGURE FILE 6.5
#-----------------------------------------------------------------------------
# Copy this file into awstats.www.mydomain.conf and edit this new config file
# to setup AWStats (See documentation in docs/ directory).
# The config file must be in /etc/awstats, /usr/local/etc/awstats or /etc (for
# Unix/Linux) or same directory than awstats.pl (Windows, Mac, Unix/Linux...)
# To include an environment variable in any parameter (AWStats will replace
# it with its value when reading it), follow the example:
# Parameter="__ENVNAME__"
# Note that environment variable AWSTATS_CURRENT_CONFIG is always defined with
# the config value in an AWStats running session and can be used like others.
#-----------------------------------------------------------------------------
# $Revision: 1.324 $ - $Author: eldy $ - $Date: 2005/10/30 15:56:38 $
#-----------------------------------------------------------------------------
# MAIN SETUP SECTION (Required to make AWStats work)
#-----------------------------------------------------------------------------
# "LogFile" contains the web, ftp or mail server log file to analyze.
# Possible values: A full path, or a relative path from awstats.pl directory.
# Example: "/var/log/apache/access.log"
# Example: "../logs/mycombinedlog.log"
# You can also use tags in this filename if you need a dynamic file name
# depending on date or time (Replacement is made by AWStats at the beginning
# of its execution). This is available tags :
# %YYYY-n is replaced with 4 digits year we were n hours ago
# %YY-n is replaced with 2 digits year we were n hours ago
# %MM-n is replaced with 2 digits month we were n hours ago
# %MO-n is replaced with 3 letters month we were n hours ago
# %DD-n is replaced with day we were n hours ago
# %HH-n is replaced with hour we were n hours ago
# %NS-n is replaced with number of seconds at 00:00 since 1970
# %WM-n is replaced with the week number in month (1-5)
# %Wm-n is replaced with the week number in month (0-4)
# %WY-n is replaced with the week number in year (01-52)
# %Wy-n is replaced with the week number in year (00-51)
# %DW-n is replaced with the day number in week (1-7, 1=sunday)
# use n=24 if you need (1-7, 1=monday)
# %Dw-n is replaced with the day number in week (0-6, 0=sunday)
# use n=24 if you need (0-6, 0=monday)
# Use 0 for n if you need current year, month, day, hour...
# Example: "/var/log/access_log.%YYYY-0%MM-0%DD-0.log"
# Example: "CWINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%DD-24.log"
# You can also use a pipe if log file come from a pipe :
# Example: "gzip -d </var/log/apache/access.log.gz |"
# If there is several log files from load balancing servers :
# Example: "/pathtotools/logresolvemerge.pl *.log |"
#
logFile="/var/log/apache2/access.log"
LogType=W
LogFormat =1
LogSeparator=" "
SiteDomain= « www.monsite.com »
HostAliases="www.monsite.com REGEX[www.monsite.com$] REGEX[www.monsitebis.com$] tempo pp-tempo"
DNSLookup=1
DirData="/var/lib/awstats"
DirCgi="/usr/lib/cgi-bin"
DirIcons="/usr/share/apache2/icon"
AllowToUpdateStatsFromBrowser=0
AllowFullYearView=2
EnableLockForUpdate=0
DNSStaticCacheFile="dnscache.txt"
DNSLastUpdateCacheFile="dnscachelastupdate.txt"
SkipDNSLookupFor=""
AllowAccessFromWebToAuthenticatedUsersOnly=0
AllowAccessFromWebToFollowingAuthenticatedUsers=""
AllowAccessFromWebToFollowingIPAddresses=""
CreateDirDataIfNotExists=1
BuildHistoryFormat=text
BuildReportFormat=html
SaveDatabaseFilesWithPermissionsForEveryone=0
PurgeLogFile=0
ArchiveLogRecords=0
KeepBackupOfHistoricFiles=0
DefaultFile="index.html"
SkipHosts=""
SkipUserAgents=""
SkipFiles=""
SkipReferrersBlackList=""
OnlyHosts=""
OnlyUserAgents=""
OnlyFiles=""
NotPageList="css js class gif jpg jpeg png bmp ico swf"
ValidHTTPCodes="200 304"
ValidSMTPCodes="1 250"
AuthenticatedUsersNotCaseSensitive=0
URLNotCaseSensitive=0
URLWithAnchor=0
URLQuerySeparators="?;"
URLWithQuery=1
URLWithQueryWithOnlyFollowingParameters=""
URLWithQueryWithoutFollowingParameters=""
URLReferrerWithQuery=1
WarningMessages=1
ErrorMessages="An error occured. Contact your Administrator"
DebugMessages=0
NbOfLinesForCorruptedLog=50
WrapperScript=""
DecodeUA=0
MiscTrackerUrl="/js/awstats_misc_tracker.js"
UseFramesWhenCGI=1
DetailedReportsOnNewWindows=1
Expires=0
MaxRowsInHTMLOutput=1000
Lang="en"
DirLang="./lang"
ShowMenu=1
ShowSummary=UVPHBLEXC
ShowMonthStats=UVPHB
ShowDaysOfMonthStats=VPHB
ShowDaysOfWeekStats=PHB
ShowHoursStats=PHB
ShowDomainsStats=PHB
ShowHostsStats=PHBL$
ShowAuthenticatedUsers=PHBL
ShowRobotsStats=HBL
ShowWormsStats=HBL
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
AddDataArrayShowHoursStats=1
IncludeInternalLinksInOriginSection=1
FirstDayOfWeek=1
ShowFlagLinks="en fr"
ShowLinksOnUrl=0
UseHTTPSLinkForUrl=""
MaxLengthOfShownURL=64
HTMLHeadSection=""
HTMLEndSection=""
Logo="awstats_logo6.png"
LogoLink= « http://www.monsite.com »
ExtraTrackedRowsLimit=500
4) j’aimerais bien que le résultat de la requête sorte sur une page web mais je ne comprends pas trop le fonctionnement.
Voici mon fichier Virtualhost sous apache2
NameVirtualHost *:80
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName serveur.monsite.com
ServerAlias serveur
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Redirect permanent /index.html https://serveur.monsite.com/wiki/
Order allow,deny
allow from all
</Directory>
<Directory /usr/lib/cgi-bin>
DirectoryIndex awstats.pl
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir www
UserDir disabled root
<Directory /home/*/www>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
</IfModule>
ErrorLog /var/log/apache2/error.log
LogLevel warn
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName support
ServerAlias support
DocumentRoot /var/www/GLPI/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/GLPI>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
Order allow,deny
allow from all
</Directory>
# <IfModule mod_userdir.c>
# UserDir www
# UserDir disabled root
# <Directory /home/*/www>
# AllowOverride FileInfo AuthConfig Limit
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# </Directory>
# </IfModule>
ErrorLog /var/log/apache2/error.log
LogLevel warn
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName serveur2.monsite.com
ServerAlias serveur2
DocumentRoot /usr/share/serveur2/htdocs
ErrorLog /var/log/apache2/error.log
LogLevel warn
</VirtualHost>
Merci de ton aide pour me permettre de sortir les stats de mon site web sur une page web.
---------------
Que la paix soit avec toi mon ami(e) !