Today, there is a netizen consultation need to resolve the WDCP panel site environment needs to delete the site and system log files, because the site has been running for more than a year has caused a huge amount of hard disk space occupied by the hard disk, almost full, so you must delete the log. Whether it is a system log or a
and other types. ? ? ? 5) using the awstats_updateall.pl script provided by the Awstats system, you can update the log statistics for all sites, and when the script is executed, the new log content is automatically parsed and the analysis results updated to the statistics database. ? You can also set cron scheduled tasks so that the system periodically updates the l
The newly opened vps is centos6. Configure the web server as usual, as shown below:
httpd/2.2.15php/5.3.3 with eAccelerator with Zend Guard Loader v3.3After modifying the apache configuration file, it is customary to check the configuration file first.
/etc/init.d/httpd configtestEverything works, and then reload the configuration file.
/etc/init.d/httpd reloadEverything was supposed to be correct. I couldn
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
, or look through the configuration file to see where the log files are configured.As its name shows, the access log Access_log records all Access activities to the Web server. The following is a typical record in the access log:
216.35.116.91--[19/aug/2000:14:47:37-0400] "get/http/1.0″200 654
This line consists of 7 i
server| Query Analysis
These days in the web development, often need to connect SQL Server, but SQL Server is the server on the Internet, the service provider gave a sqlconnectionstring, However, in the connection string found that the SQL Server does not use the default 1433 port, so I would like to Query Analyzer should not log on, the results verified that my
preceding log file.Access. after running log on the WEB server for a long time, it may reach dozens or hundreds of megabytes. If an error occurs during Apache running, the error occurs. the log size will also increase to dozens of megabytes. It is very memory-consuming for
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
occasionally occur in the error log, as well as the server startup and shutdown information mentioned above.
II. document error
Document errors correspond to the 400 series of code in the server response. The most common error is the 404 error -- Document Not Found (this Document is Not Found ). Besides the 404 error, user authentication error is also a common error.
404 error occurs when the resource requested by the user (that is, the U
; retry 1W ; expire 3H ) ; minimum NS @ A 127.0.0.1www IN A 192.168.100.107 //设置解析地址
Service named start//Turn on DNS services
2. Configuration Log Segmentation
RPM-IVH/MNT/PACKAGES/HTTPD-2.2.15-29.EL6_4.X86_64.RPM//Installation Apache2.2vim/etc/httpd/conf/httpd.conf//Edit Master Profile
Listen 192.1
You can also customize the log format, for example:
LogFormat "% h % l % u % t \" % r \ "%> s % B \" % {Referer} I \ "\" % {User-Agent} I \ "" combine
The combine format is defined. \ "% {Referer} I \" \ "% {User-Agent} I \" is the request header sent to the server and the Referer link.
------------------------------------- I am a split line -------------------------------------
How to enable Apache Rewrit
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 log file every day#
Overview:Rotatelogs Log Segmentation: Apache uses its own log split module Rotatelogs split log, Rotatelogs is the Apache in the pipeline log program.Awstats Log Analysis: is an open-so
most common Web servers currently available are Apache, Netscape Enterprise Server, MS IIS, and so on. The most commonly used Web servers on the Internet are Apache, so our discussion here is all about linux+apache environment, and other applications are similar. For
1. Apache Access LogEnter command cat/usr/local/apache2.4/conf/extra/httpd-vhosts.conf, enter, see,The access log for this virtual machine is inside the/logs/111.com-access_log, enter the command ls/usr/local/apache2.4/logs/, you can see the access log file, see,You can use the command Cat/usr/local/apache2.4/logs/111.com-access_log to view the contents, enter, s
Log analysis software upgrade, we in the last 10 kinds of alarm (non-Office hours access, non-work location access, password guessing, account guessing, account guessing success, sensitive file operation alarm and high-risk command operation, host scan, port scan, illegal external) on the basis of increased SQL injection, XSS attack, path traversal, Webshell, website sensitive file access, and CC attack alarms.SQL injectionThe following alarms are gen
Managing Web sites is not just about monitoring the speed of the web and the delivery of Web content. It not only pays attention to the daily throughput of the server, but also understands the external access of these Web sites and the access to each page of the site. Improve the content and quality of pages based on t
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.