Awstats Log Analysis Management in Apache for non-manual compilation

Source: Internet
Author: User

非手工编译apache中awstats日志分析管理 实验环境:一台linux6.5 宿主机或者虚拟win7使用的包为awstats-7.6.tar事先设置好域名以及DNS地址解析博主的域名为www.abc.com1、挂载移动

2、进行脚本的配置,有y的y,该回车的回车,需要填写的内容如下



3、进入自动生成的文件中修改



4、创建目录

5、登陆apache网页以及日志管理网页,刷新awstats管理日志

6、刷新awstats管理日志后也刷新网页

末:代码脚本记录

Configure Apache Web site
Setting up DNS Address resolution

Mkdir/opt/abc

Mount.cifs//192.168.10.55/LINUXBAGE/OPT/ABC/Mount

Cd/opt/abc

Tar zxf awstats-7.6.tar.gz-c/opt/Unzip

Cd/opt

MV awstats-7.6//usr/local/awstats Mobile easy to manage

Cd/usr/local/awstats/tools/tools Tools

./awstats_configure.pl/Enter Execution configuration mode

---------------------------------1------------------------------------
Enter full config file path of your WEB server.
Example:/etc/httpd/httpd.conf//linux case
Example:/usr/local/apache2/conf/httpd.conf
Example:c:\program Files\apache group\apache\conf\httpd.conf//Microsoft case
Config file path (' None ' to skip Web server Setup): Lets you create a profile path

Apache Path created under/etc/httpd/conf/httpd.conf//linux

---------------------------------2------------------------------------

Do you want me to build a new AWStats Config/profile
File (required if first install) [y/n]? Y whether to create a new awstats configuration file

----------------------------------3-----------------------------------

Your Web site, virtual server or profile name:

www.benet.com//Enter domain name

--------------4--------------The default path should not enter .... Enter

Http://www.abc.com/awstats/awstats.pl?config=www.abc.com tells you that you can access it through this website.

=========================================================
The Cd/etc/awstats configuration file path is

[[email protected] awstats]# ls
awstats.www.benet.com.conf//log file path

[Email protected] awstats]# ls/var/log/httpd/
Access_log error_log Copy Access_log

Logfile= "/var/log/httpd/access_log"//Find LogFile paste Access_log

Dirdata= "/var/lib/awstats"//follow this path there is no Awstats file created

cd/var/lib/

mkdir awstats Creating a log file

cd/usr/local/awstats/tools/

./awstats_updateall.pl now/update detection data

Crontab-e do a recurring task The update script is executed every five minutes

/5 */etc/awstats/tools/awstats_updateall.pl now

Service Crond start to initiate recurring tasks

====================================================
Vim/etc/httpd/conf/httpd.conf
G to last line add directly
Modify this configuration to deny 10 network segment login log monitoring
<directory "/usr/local/awstats/wwwroot" >
Options None
AllowOverride None
Order Deny,allow first refuse to allow again
Deny from 192.168.10.0/24 rejects a network segment

End .....

Awstats Log Analysis Management in Apache for non-manual compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.