How to delete error. log, access. log files and methods to limit the size of Apache log files. log and error. the log file has never been moved. Today, a MYSQL database connection error occurs in wordpress, and error 2003 is returned. log, access.
I. Log Analysis
If Apache is installed by default, two log files are generated when the server runs. The two files are access_log and error_log.
When the default installation method is used, these files can be found
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.
Apache Operating mechanism Analysis:1. b/S Interactive processInteractive procedures for browsers (BROWSER) and servers (WEB server):1. The browser makes an HTTP request to the server (request).2, the server receives the browser request data, after
Copyright Disclaimer: You can reprint the document at will. During reprinting, you must mark the original source and author information of the article as hyperlinks and this statement.
Http://www.chedong.com/tech/apache_install.html
Keywords:
Apache configuration file httpd.conf Chinese detailed## The configuration file based on the NCSA server is written by Rob McCool, Longzi translation## Apache Server master configuration file. Includes directory settings for server directives.# More
The configuration file of the Apache server is located in the usrlocalapacheconf directory. Traditionally, three configuration files httpd. conf, access. conf, and srm. conf are used to configure the behavior of the Apache server. Httpd. conf
Keywords: Apache install PHP resin mod_gzip mod_expire Webalizer cronolog
Summary:
From the perspective of simplified installation ==> Performance Tuning ==> convenient maintenance, we will discuss web service planning ==> httpd
ServerRoot "/usr/local"
ServerRoot is used to specify the running directory of the daemon httpd, httpd will automatically change the current directory of the process to this directory after it is started, so if the file or directory specified in the
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.