Apache Log scrolling configuration in windows solves the problem of too many log files. By default, apache logs are written into two log files, namely, error. log and access.
statistics system plays an important role in site user behavior analysis, especially for keyword access statistics from search engines: it is a very effective data source for user behavior analysis. With the development of the Internet over the years, Web Log statistics tools have become more and more mature and feature-rich. Many of them are openSource codeAWStats is an outstanding one. AWStats: advanced web statistics
AWStats is a fast-growing Per
access statistics from search engines: it is a very effective data source for user behavior analysis. With the development of the Internet over the years, WEB Log statistics tools have become more and more mature and feature-rich. Many of them are open source code, and AWStats is an excellent one.AWStats: Advanced Web Statistics
AWStats is a fast-growing Perl-based WEB log analysis tool on Sourceforge. Com
Apche Log Series (1): Access log
Want to know when and what people are browsing the content of the site. See Apache's access log to know. The access log is the standard log for Apache, which explains in detail the contents of the
6.1, you may notice that the ReadLogs dialog box does not appear, and the CPU usage is high. If this happens, use the task manager to read the logs and use NotePad to read the log files.Install and run ReadLogs ReadLogs is automatically installed when you install an unexpected monitor. You can run this tool directly from the unexpected monitor, or use it as an independent application of the unexpected monitor program group:In the Start Menu, point to
The server has recently suffered hacker intrusion. Intruders are skilled, delete IIS log files to erase traces, you can go to the Event Viewer to look at the warning message from W3SVC, often find some clues. Of course, for Web servers with very large access, it is almost impossible to rely on manual analysis-there's too much data! A Third-party log analysis tool can be used to describe only one of the IIS
log is started.An example of setting in Windows is as follows:# Restrict the error log file to 1 MBErrorLog "| bin/rotatelogs.exe-l logs/error-% Y-% m-% d. log 1M"# Generate an error log file every day# ErrorLog "| bin/rotatelogs.exe-l logs/error-% Y-% m-% d.
function, which is its log function. This Apache log series introduces Apache access logs, error logs, how to analyze log data, how to customize Apache logs, and how to generate statistical reports from
An example of setting in Windows is as follows:Step 1: Delete the error. log and access. log files in The apache2/logs/directory.Step 2: Open the httpd. conf configuration file of Apache and find the following two configurations:Errorlog logs/error. LogCustomlog logs/access. Log
Article title: Apache log: error log. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The error log and access log are also
retained for only a few days. If the website traffic volume is large, a log file containing dozens or even hundreds of MB is generated in a day, it occupies both hard disks and affects server performance.
2. Scroll the log file by size:
The Code is as follows:
Copy code
Error Log: ErrorLog "|/data/apa
region with the UTC time difference of-5 hours, this parameter should be "-300 ". FilesizeM specifies to scroll by filesizeM file size, rather than by time or time difference. An example of setting in Windows is as follows:# Restrict the error log file to 1 MBErrorLog "| bin/rotatelogs.exe-l logs/error-% Y-% m-% d. log 1 M"# Generate an error
Analysis of apache access log access. log and how to import it to mysql Apache
BitsCN.com
Analysis of apache access log access. log and how to import it to mysql
Access.
View Apache log Apache log locationDifferent system locations are different.
widnows
If it is windows, XAMPP should be in existence, go directly to the Apache folder/log
11.18 Apache user authenticationChange the contents of a virtual hostVim/usr/local/apache2.4/conf/extra/httpd-vhosts.confAdd user name and password? /usr/local/apache2.4/bin/htpasswd-c-m/data/.htpasswd aming-C is the creation of-m specified typeView the generated password document contentsHe's gone up there already. htpasswd directory, then create in memory does not require-CSpecify the domain name hosts on WIC:\W
LogLevel warn
// The Error Log error_log level is warning, which is the default level
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
// Combined log format)
// % H host name, % L Remote Registration Name % u remote user % t time (English format)
In shell:
[root@Test230 logs]# date +"%d/%b/%Y:%T %z"[root@Test230 logs]# 16/May/2012:15:16:49 +0800
/// "% R/" indicates the
profile to open it:# vim/usr/local/apache2.4/conf/httpd.confLoadModule Rewrite_module modules/mod_rewrite.soGet rid of this line of #.#/usr/local/apache2.4/bin/apachectl-tSyntax OK#/usr/local/apache2.4/bin/apachectl Graceful#/usr/local/apache2.4/bin/apachectl-m |grep RewriteRewrite_module (Shared)The module loads well and starts testing:# curl-x 127.0.0.1:80 2111.com.cn-ihttp/1.1 301 Moved Permanently status code 301Date:fri, APR 2018 12:17:18 GMTserver:apache/2.4.33 (Unix) php/7.1.6location:ht
, hostname (domain name) is not www.123.com meet conditionRewriterule ^/(. *) $ http://www.123.com/$1 [r=301,l]//define rewrite rules that are not executed until the above conditions are met/usr/local/apache2/bin/apachectl-m|grep-i rewrite//Without this module, you need to edit the configuration file httpd.conf, delete the front of the Rewrite_module (shared) #Curl-x127.0.0.1:80-i 123.com//Status Code 30111.21 Configuring access LogsAccess log records
Under Windows Apache build PHP development environment, Apache build
This article describes in detail the use of apache2.2.21/php5.3.5/mysql5.5.19/phpmyadmin3.4.9 to build PHP development environment under WINDOWS2003.
First step: Download the installed files
1. Apache version Httpd-2.2.21-win32-x86-no_ssl.msi
2. MySQ
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.