On Fri, Jan 8, 2010 at 5:16 PM, ashraf mohammed <[email protected]>wrote:

>
>
> Hi guys
> i want to implement awstat on my server
> i had downloaded package and untared it
> but here i am really getting configured How to install it ?
> how to configure it ?
>
> I want only awstat to implement httpd logs
> i can not can implemet any  other tool for XYZ reason
>
> Plz help me out
> it would be better if u exlpain the step
>
> Thanks in Advance
>
> MOHAMMED ASHRAF
>
> MOB: 9870161983
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> http://in.yahoo.com/
>
> [Non-text portions of this message have been removed]
>
>  
>

Hi,

Download awstats source extract it.
mkdir /usr/local/awstats/
mv the folder to /usr/local/awstats

########## Installation #######

>> Go to tools folder
>> perl awstats_configure.pl
>> y
>> enter the name of your domain "www.example.com"
>> vi /etc/awstats/awstats.www.example.com.conf
>> change the log location, log format, log type, domain name,
>> Data directory in the conf file should be "." instead of
"/var/lib/awstats"
>> check the directives in httpd.conf or
/usr/local/apache2/conf/extra/httpd-vhost.conf
>> Log format type should be 4
>> Update : perl awstats.pl -config=www.example.com -update
>> AllowToUpdateStatsFromBrowser should be set to 1 in the conf file

##### To build the main reports in a static html page we generate ########
>> perl awstats.pl -config=www.example.com -output -staticlinks >
awstats.www.example.com.html

#### to configure on the website to update########
>> http://www.example.com/awstats/awstats.pl?config=www.example.com

### To Make a PDF File of the statistics / or to get all report in once ####
>> Go in awstats folder --> tools
>> cd tools
>> perl awstats_buildstaticpages -config=www.example.com -output
-staticlinks > awstats.www.example.com.html

### To Automatically update ###
>> crontab -e
>> perl awstats.pl -config=www.example.com -update

########### Example
To run update every day at 03:50, use :
50 3 * * * /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=mysite
-update >/dev/null

To run update every hour, use :
0 * * * * /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=mysite
-update >/dev/null


########## If you dont want to include or exclude your ip from stats ###
edit the conf file located in /etc/awstats/awstats.www.example.com.conf

For example, to exclude:
* your own IP address 192.168.1.10, use SkipHosts="192.168.1.10"
* the whole subnet 192.168.1.xxx, use SkipHosts="REGEX[^192\.168\.1\.]"
* all sub hosts xxx.myintranet.com, use
SkipHosts="REGEX[\.myintranet\.com$]" (This one works only if DNS lookup is
  already done in your log file).

>>>>>perl awstats.pl -config=www.example.com -output -staticlinks >
awstats.www.example.com.html

If you want more details please let me know.

-- 
Ashwin R.


[Non-text portions of this message have been removed]

Reply via email to