웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
CentOS 6.5 웹로그 모니터링 awstats 설치하기
2014.04.29 16:30
1. awstats 설치
# yum install awstats
* 패키지가 없을경우 epel repo 를 추가합니다.
2. conf 파일 수정하기
# vi /etc/awstats/awstats.세팅할도메인주소.conf
Lang="ko"
LogFile="/var/log/httpd/access_log" // 로그파일 주소가 다를경우 거기에 맞게 수정
3. crontab 에 스케쥴러 추가
# crontab -e
*/5 * * * * /usr/share/awstats/tools/awstats_updateall.pl now -confdir="/etc" -awstatsprog="/var/www/awstats/awstats.pl"
4. 아이피의 국가별 구문을 위해 geoip 설정
# yum install geoip perl-Geo-IP
# mkdir /usr/local/geo
# cd /usr/local/geo
# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
# gzip -d GeoIP.dat.gz
# gzip -d GeoLiteCity.dat.gz
# vi /etc/awstats/awstats.도메인.conf
LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"
LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/local/geo/GeoIPCity.dat"
# /usr/share/awstats/tools/awstats_updateall.pl now -confdir="/etc" -awstatsprog="/var/www/awstats/awstats.pl"
5. 아파치 설정파일 수정
# vi /etc/httpd/conf.d/awstats.conf
Allow from 127.0.0.1 을 Allow from All 로 수정
6. 접속
http://도메인/awstats/awstats.pl
# yum install awstats
* 패키지가 없을경우 epel repo 를 추가합니다.
2. conf 파일 수정하기
# vi /etc/awstats/awstats.세팅할도메인주소.conf
Lang="ko"
LogFile="/var/log/httpd/access_log" // 로그파일 주소가 다를경우 거기에 맞게 수정
3. crontab 에 스케쥴러 추가
# crontab -e
*/5 * * * * /usr/share/awstats/tools/awstats_updateall.pl now -confdir="/etc" -awstatsprog="/var/www/awstats/awstats.pl"
4. 아이피의 국가별 구문을 위해 geoip 설정
# yum install geoip perl-Geo-IP
# mkdir /usr/local/geo
# cd /usr/local/geo
# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
# gzip -d GeoIP.dat.gz
# gzip -d GeoLiteCity.dat.gz
# vi /etc/awstats/awstats.도메인.conf
LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"
LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/local/geo/GeoIPCity.dat"
# /usr/share/awstats/tools/awstats_updateall.pl now -confdir="/etc" -awstatsprog="/var/www/awstats/awstats.pl"
5. 아파치 설정파일 수정
# vi /etc/httpd/conf.d/awstats.conf
Allow from 127.0.0.1 을 Allow from All 로 수정
6. 접속
http://도메인/awstats/awstats.pl
제목 | 글쓴이 | 날짜 |
---|---|---|
1원팁) 톱메뉴를 제거하고 왼쪽 서브메뉴만 출력하는 방법 [2] | Gnee | 2008.08.02 |
1.0.3 버전 이상부터 본문 내 이미지 자동 리사이징이 안되는 경우 [1] | kirrie | 2008.08.01 |
제로보드XE 설치 완료버튼 누르니까 My sql 관련 내용 나오던데요 [3] | Naver™ | 2008.07.30 |
코멘트를 달아야만 첨부파일 다운로드 할 수 있게 하기 [8] | 지오426 | 2008.07.29 |
제로보드XE에서 표 쉽게 만드는 방법.. [23] | 청개구리00 | 2008.07.27 |
초간단! 게시물주소 클릭시 복사하기 ! [4] | gnee | 2008.07.26 |
본문의 서명과 프로필이미지를 끌어올려보자 [11] | CL님 | 2008.07.22 |
로컬 설치 후 몇가지 문제점에 대해서 - 인덱싱. DB선택 등 | 서정일643 | 2008.07.22 |
로그인이 안되는 문제 [1] | 젝망치 | 2008.07.21 |
관리자만 ip 보이게 하기 [10] | 老姜君 | 2008.07.20 |
게시판(블로그)상단에 글쓰기버턴이나 링크넣기 [8] | 팔공산 | 2008.07.20 |
게시글 본문 좌, 우측에 div 내용 넣기(수정) [5] | 라르게덴 | 2008.07.18 |
winxp IE7 rwapm에서 한글이름파일 업로드 [7] | 공수래 | 2008.07.15 |
초보 헤메다가 팁//댓글기능 보이기 감추기 [5] | 리히토 | 2008.07.15 |
자료 첨부 문제 | 단풍534 | 2008.07.15 |
초보 헤메다가 팁//검색기능 보이기 감추기 [3] | 리히토 | 2008.07.15 |
초보 헤메다가 팁//인쇄영역 확장변수 포함 [8] | 리히토 | 2008.07.14 |
에디터입력창 배경색상(이미지) 변경해보기 [5] [1] | 팔공산 | 2008.07.13 |
업그레이드 쉽고,안전하게 하기(예제 포함해서 다시 올림) [2] | wannabewize | 2008.07.13 |
게시판 가로조절(width) 및 가운데로 이동 태그 [4] | 박상욱860 | 2008.07.12 |
3.번 : cron.hourly에 자동 등록 됩니다. 확인만 해보시면 됩니다.
4번 : GeoIPCity.dat -> GeoLiteCity.dat
이대로 설정하니 아주 쉽게 되네요