http://www.webalizer.org/ configuration Webalizer We can configure Webalizer from the command line, or through a configuration file. The following highlights the use of configuration files for configuration, which is more intuitive to use, and generally used.The path to the Webalizer configuration file is "/etc/webalizer/webalizer.conf.sample. In general, the configuration file of the default parameter configuration can meet a certain application needs, can be used directly. Next, we'll show you
Error logs and access log files provide useful information for system administrators, such as troubleshooting Web servers, protecting the system from a variety of malicious activities, or simply conducting a variety of analyses to monitor HTTP servers. Depending on your WEB server configuration, the error/access log ma
produce an access record.Extended:Apache Logging Client-requested domain nameUnder normal circumstances, there is no need to record this, after all, we mostly based on the virtual host to set the corresponding access log, but there are individual situations, such as ServerName *.abc.com such a pan-analytic form, it is necessary to record the user requested domai
can run on GNU/Linux or after ActivePerl is installed on Windows. The log analysis directly supports the Apache format (combined) and IIS format (need to be modified ). Although Webalizer has a Windows platform version, it lacks maintenance;AWStats allows you to use a system to collect statistics on different WEB servers on your website: GNU/Linux/Apache and Win
A brief introduction to apache log analysis is provided. For more information, see LogFiles on the apache official website...
Apache Log analysis is briefly introduced, mainly refer to the apache official website
[10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)" Among them, the extra items are:
"http://www.example.com/start.html"(
\"%{Referer}i\")
"Referer" request header. This entry indicates the page from which the request was submitted, and the page should contain
/apache_pb.gif or be connected.
"Mozilla/4.08 [en] (Win98; I ;Nav)"(
\"%{User-agent
/rotatelogs.exe logs/baidu_policy?m=d.txt 86400 480" RobotENV = baidu_robotIn this example, the log of "baidu_ .txt" is generated every day in the logs directory. Each record is similar to the following:61.135.168.14 [22/OCT/2008: 22: 21: 26 + 0800] "Get/HTTP/1.1" 200 8427
Apache Log backup:
Configure according to the Linux system configuration methodAfter ser
Apache Default Site Directory settings
The Apache Default Web site Directory is in/var/www/html, we now want to change the site directory to/home/wwwroot/web1/htdocs, the following actions
To create a directory:Cd/homemkdir wwwrootCD Wwwrootmkdir Web1CD Web1mkdir HtdocsTouch index.php
Operation Steps:
1, vi/etc/httpd/conf/httpd.confFind the DocumentRoot "/var/www/html" section #
First, the Apache log is recorded by date
Found in the Pache configuration fileErrorLog Logs/error_logCustomlog Logs/access_log Common
Linux System configuration methods:
Change it toErrorLog "| /usr/local/apache/bin/rotatelogs/home/logs/www/%y_%m_%d_error_log 86400 480″Customlog "| /usr/local/apache/bin/rotatelogs/h
One, Apache log segmentationWith the increasing access to the Web site, by default, the Apache server generates a single log file will be more and more large, if the log is not split, then the
Apache Log analysis is briefly introduced, mainly refer to the apache official website Log Files, manual reference http://httpd.apache.org/docs/2.2/logs.html
I. Log Analysis
If the default configuration is used during apache inst
Step one: Stop all the processes of the Apache service and delete the Error.log, access.log files in the apache2/logs/directory.
Step Two: Open the Apache httpd.conf configuration file and find the following two configurations.
The code is as follows
Copy Code
ErrorLog Logs/error.log Customlog Logs/access.log Common
Comment It out directly and replace it with the
Why do you want to split the log?
With the increase of website access, the log files generated by the Web server will become larger, if not split management, a single log file will become unusually large, not conducive to the comprehensive analysis of the log, monit
-l logs/access-% Y-% m-% d. log 86400 Prime; common This is simple. Just put it in. The error log is shown below.This section describes windows users. linux uses cronolog to separate apache logs.The cronolog tool can be run in linux or on a windows host. The installation method of linux is very
:06.476703 2017] [: ERROR] [PID 2316:tid 3328] [Client 113.47.63.8:49522] PHP Fatal Error: Referer:http://www.xxxx.com/awap/advertiser/registerOriginally PHP reported the wrong, later chase the project source code, found that PHP returned 500 of the status code.So why would Apache's error_log record PHP errors, as the Apache document says:Any information written to stderr by a CGI script would be copied directly to the error log.PHP as a CGI script,
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.