회원가입

로그인

아이디
비밀번호
ID/PW 찾기
아직 회원이 아니신가요? 회원가입 하기

awstats 6.1 설치

Profile
:맥노턴

아파치 연동 웹로그 분석기 awstats 입니다. Perl 기반의 매우 강력하고 자세한 로그를 제공하는 유틸리티입니다. 강추~~


설치방법.


[root@localhost src]# cp -rf awstats-6.1/ ../awstats
[root@localhost src]# cd ..
[root@localhost indi]# cd awstats/
[root@localhost awstats]# ls
README.TXT  docs  tools  wwwroot
[root@localhost awstats]# cd tools
[root@localhost tools]# ls
awstats_buildstaticpages.pl  awstats_updateall.pl  httpd_conf          maillogconvert.pl   webmin
awstats_exportlib.pl         configure.pl          logresolvemerge.pl  urlaliasbuilder.pl  xslt
[root@localhost tools]# ll
합계 152
-r-x------    1 root     root        18472  4월 12 01:18 awstats_buildstaticpages.pl
-r-x------    1 root     root        12767  4월 12 01:18 awstats_exportlib.pl
-r-x------    1 root     root         4576  4월 12 01:18 awstats_updateall.pl
-r-x------    1 root     root        25011  4월 12 01:18 configure.pl
-r-x------    1 root     root          762  4월 12 01:18 httpd_conf
-r-x------    1 root     root        27513  4월 12 01:18 logresolvemerge.pl
-r-x------    1 root     root        26376  4월 12 01:18 maillogconvert.pl
-r-x------    1 root     root        10535  4월 12 01:18 urlaliasbuilder.pl
drwx------    2 root     root         4096  4월 12 01:18 webmin
drwx------    2 root     root         4096  4월 12 01:18 xslt
[root@localhost tools]# ./configure.pl


----- AWStats configure 1.0 (build 1.31) (c) Laurent Destailleur -----
This tool will help you to configure AWStats to analyze statistics for
one web server. You can try to use it to let it do all that is possible
in AWStats setup, however following the step by step manual setup
documentation (docs/index.html) is often a better idea. Above all if:
- You are not an administrator user,
- You want to analyze downloaded log files without web server,
- You want to analyze mail or ftp log files instead of web log files,
- You need to analyze load balanced servers log files,
- You want to 'understand' all possible ways to use AWStats...
Read the AWStats documentation (docs/index.html).


-----> Running OS detected: Linux, BSD or Unix
Warning: AWStats standard directory on Linux OS is '/usr/local/awstats'.
If you want to use standard directory, you should first move all content
of AWStats distribution from current directory:
/usr/local/indi/awstats
to standard directory:
/usr/local/awstats
And then, run configure.pl from this location.
Do you want to continue setup from this NON standard directory [yN] ? y


-----> Check for web server install
configure did not find your Apache web server path.


Please, enter full directory path of your Apache web server or
'none' to skip this step if you don't have local web server or
don't have permission to change its setup.
Example: /usr/local/apache
Example: d:\Program files\apache group\apache
Apache Web server path ('none' to skip):
> /usr/local/indi/apache


Now, enter full config file path of you web server.
Example: /etc/httpd/apache.conf
Example: d:\Program files\apache group\apache\conf\httpd.conf
Config file path (CTRL+C to cancel):
> /usr/local/indi/apache/conf/httpd.conf


-----> Check and complete web server config file '/usr/local/indi/apache/conf/httpd.conf'
  Add '<Directory>' directive
  AWStats directives added to Apache config file.


-----> Update model config file '/usr/local/indi/awstats/wwwroot/cgi-bin/awstats.model.conf'
  File awstats.model.conf updated.


-----> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ? y


-----> Define config file name to create
What is the name of your web site or profile analysis ?
Example: www.mysite.com
Example: demo
Your web site, virtual server or profile name:
> indischool


-----> Create config file '/etc/awstats/awstats.indischool.conf'
Config file /etc/awstats/awstats.indischool.conf created.


-----> Restart Apache with '/sbin/service httpd restart'
/etc/init.d/httpd restart: httpd restarted


-----> Add update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
You can do it manually by adding the following command to your cron:
/usr/local/indi/awstats/wwwroot/cgi-bin/awstats.pl -update -config=indischool
Or if you have several config files and prefer having only one command:
/usr/local/indi/awstats/tools/awstats_updateall.pl now
Press ENTER to continue...



A SIMPLE config file has been created: /etc/awstats/awstats.indischool.conf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for 'indischool' with command:
> perl awstats.pl -update -config=indischool
You can also read your statistics for 'indischool' with URL:
> http://localhost/awstats/awstats.pl?config=indischool


Press ENTER to finish...


 

Profile
:맥노턴
레벨 30
569407/686490
81%
McNorton & Education Lab.
Director
댓글
0
댓글 쓰기
권한이 없습니다.

로그인

아이디
비밀번호
ID/PW 찾기
아직 회원이 아니신가요? 회원가입 하기