Home >php教程 >PHP开发 >Apache performance optimization (2)

Apache performance optimization (2)

黄舟
黄舟Original
2016-12-21 11:24:011723browse

Specific module customization:

Compilation and inclusion are two different concepts. Compiled means that this module has been compiled. If you want to use it, just simply modify httpd.conf and add LoadModule xxx_module libexec/mod_xxx.so to make it clear.

Use the previous command to view the modules that have been compiled and included by default. No explicit --enable-MODULE[=shared] and LoadModule operations are required. It is already available for use.

[yangbin1@vHost-RH9 conf]$ ../bin/httpd -l

Compiled in modules:

core.c //Core functions provided by Apache HTTP server. Must have.

mod_access.c //1. Security authentication greatly reduces access speed, it is recommended to disable it.

mod_auth.c //1. Security authentication greatly reduces access speed, it is recommended to disable it.

mod_include.c //4 .server side include is obsolete, it is recommended to disable it.

mod_log_config.c //6. Used to customize the log format. It is best to keep.

mod_env.c //5. Modify the system transmitted to CGI scripts and SSI pages environment(variable). Generally speaking, it is not necessary.

mod_setenvif.c //1. Security authentication greatly reduces access speed, it is recommended to disable it.

prefork.c //Implements a non-threaded, pre-forking web server. Refer to the mpm introduction below.

http_core.c //The core functions provided by the Apache HTTP server. Must have.

mod_mime.c //6. Used to increase the association of file applications. Best reserved.

mod_status.c //5.Provides information on server activity and performance. Generally speaking, it is not necessary.

mod_autoindex.c //3. There is no need to list all the files in the directory without a default index file. It is recommended to disable it.

mod_asis.c //2. Try not to use CGI: it has always been the most security problem for Apache Where, it is recommended to disable it.

mod_cgi.c //2. Try not to use CGI: It has always been the place with the most security problems in Apache. It is recommended to disable it.

mod_negotiation.c //5. Content negotiation to provide according to the browser settings to select the best performance for different media types, languages, character sets and encodings, as well as the ability to intelligently handle incomplete content negotiation information from the browser. Generally speaking, it is not necessary.

mod_dir.c //Used for default index file: index.php, etc. Our current application does not require this. It depends.

mod_imap.c //2. Try not to use CGI: It has always been the place with the most security problems in Apache. It is recommended to disable it.

mod_actions.c It is recommended to disable it .

mod_userdir.c //7. For example: you need to debug php under ~/username/. It is available or not. It is recommended to disable it .

mod_alias.c //7. For example: you need to change the previous URL Switch to or need to use CGI script-alias. It is recommended to disable it.

mod_so.c //8. If any dynamic modules are included in the compilation, the mod_so module will be automatically included in the core. If you want the core to be able to load DSO without actually compiling any dynamic modules, you need to specify --enable-so explicitly. Our application uses static compilation and doesn't need it. It is recommended to disable it.

The above is the content of Apache performance optimization (2). For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn