我对这个问题感到非常抱歉,但我真的是一个小菜鸟,search没有帮助
.so和.c mods有什么区别?
接下来,我再次对这样一个宽泛的,通用的,可能很难回答的问题表示歉意,我将非常感谢所有的build议
我有一个小的VPS(4 x四核,3GB内存,Xen,CentOS 6 64位,Apache,cPanel,PHP,mySQL,脚本:WordPress,OpenCart,bbPress,phpBB,Menalto Gallery)。 我想摆脱所有我不需要/不使用的MODS。 请你能帮我确定哪些我应该删除?
我的主机说:加载的Apache模块是:
以模块编译:
core.c
Core Apache HTTP Server features that are always available
似乎很清楚,这是核心和必要的。
http_core.c
不知道这是什么。 但我怀疑这与核心有关,所以计划离开这一点。
prefork.c
This Multi-Processing Module (MPM) implements a non-threaded, pre-forking web server that handles requests in a manner similar to Apache 1.3. It is appropriate for sites that need to avoid threading for compatibility with non-thread-safe libraries.
再一次,不知道这个巨无霸是什么意思。 什么是线程? 什么是线程安全的库? 哪些库是非线程安全的?
我以前的理解是,prefork做的是预加载一些代码,以便它不需要加载请求,所以请求可以很快服务。
但现在我很困惑。
保持还是沟渠?
mod_actions.c
This module has two directives. The Action directive lets you run CGI scripts whenever a file of a certain MIME content type is requested. The Script directive lets you run CGI scripts whenever a particular method is used in a request.
好吧,我怀疑我需要这个,因为脚本处理上传,下载和pipe理文件,包括图像/媒体和其他types
mod_alias.c
The directives contained in this module allow for manipulation and control of URLs as requests arrive at the server.
好的,我很确定我需要这个。
mod_asis.c
This module provides the handler send-as-is which causes Apache to send the document without adding most of the usual HTTP headers.
This can be used to send any kind of data from the server, including redirects and other special HTTP responses, without requiring a cgi-script or an nph script.
嗯…不知道…什么是一些情况下,这是有用的/使用的例子?
mod_auth_basic.c
mod_authn_default.c
mod_authn_file.c
This module allows the use of HTTP Basic Authentication to restrict access by looking up users in the given providers.
不太确定这是什么意思,这是用什么。 如果我禁用这个,我的脚本将无法处理login/注销function? 这是指哪个具体的authentication?
mod_authz_default.c
mod_authz_groupfile.c
mod_authz_host.c
mod_authz_user.c
The directives provided by mod_authz_host are used in <Directory>, <Files>, and <Location> sections as well as .htaccess files to control access to particular parts of the server.
好的,我知道我需要mod_authz_host。 但是我的VPS上只有一个用户。 我需要authz_default,authz_user和authz_groupfile吗?
mod_autoindex.c
Generates directory indexes, automatically, similar to the Unix ls command or the Win32 dir shell command
好的,所以必需。
mod_cache.c
Content cache keyed to URIs
我怀疑这是由mod_pagespeed启用,所以我会离开这一个单独的。
mod_cgi.c
Any file that has the handler cgi-script will be treated as a CGI script, and run by the server, with its output being returned to the client.
我怀疑这是非常需要的。
mod_deflate.c
Compress content before it is delivered to the clientmod_deflate.c ,需要它。
Compress content before it is delivered to the client
mod_dir.c
Provides for "trailing slash" redirects and serving directory index files
我想这也是需要的。
mod_expires.c
Generation of Expires and Cache-Control HTTP headers according to user-specified criteria
是的,我需要这个。
mod_filter.c
This module enables smart, context-sensitive configuration of output content filters. For example, apache can be configured to process different content-types through different filters, even when the content-type is not known in advance (eg in a proxy).
说什么?
mod_imagemap.c
This module processes .map files, thereby replacing the functionality of the imagemap CGI program.
仍然不明白。 在哪些情况下这将是需要的?
mod_include.c
This module provides a filter which will process files before they are sent to the client. The processing is controlled by specially formatted SGML comments, referred to as elements. These elements allow conditional text, the inclusion of other files or programs, as well as the setting and printing of environment variables.
听起来像是可能需要的东西。
mod_info.c
Provides a comprehensive overview of the server configuration
不知道我是否需要这个。 无论如何,我的cPanel服务器configuration信息是否可用?
mod_log_config.c
This module provides for flexible logging of client requests. Logs are written in a customizable format, and may be written directly to a file, or to an external program.
听起来很重要。 思考离开它。
mod_logio.c
This module provides the logging of input and output number of bytes received/sent per request.
听起来像是会占用大量存储空间的东西。 我需要它吗?
mod_mem_cache.c
Content cache keyed to URIs
再次怀疑mod_pagespeed的工作。 离开它独自一人。
mod_mime.c
mod_mime_magic.c
Associates the requested filename's extensions with the file's behavior (handlers and filters) and content (mime-type, language, character set and encoding)
听起来很重要。 离开它独自一人。
mod_negotiation.c
Content negotiation, or more accurately content selection, is the selection of the document that best matches the clients capabilities, from one of several available documents.
听起来很重要。 离开它独自一人。
mod_proxy.c
mod_proxy_ajp.c
mod_proxy_balancer.c
mod_proxy_connect.c
mod_proxy_ftp.c
mod_proxy_http.c
mod_proxy_scgi.c
HTTP/1.1 proxy/gateway server
我有一个网站domain1.com我也有另一个domain2.com映射到它。 然后有子域,例如de.domain3.com和fr.domain3.com也作为附加域。 我需要这些代理mods? 他们有任何与域有关的事吗? 他们用于什么?
mod_rewrite.c
Provides a rule-based rewriting engine to rewrite requested URLs on the fly
WordPress,OpenCart和Menalto都使用“漂亮的url”,所以这是必须的。
mod_setenvif.c
The mod_setenvif module allows you to set internal environment variables according to whether different aspects of the request match regular expressions you specify.
听起来像是需要的东西。
mod_so.c
Loading of executable code and modules into the server at start-up or restart time
这可能是整个模块系统工作所必需的。
mod_ssl.c
Strong cryptography using the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols
我需要这个吗? 我甚至使用SSL?
mod_status.c
The Status module allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form.
这是多么可有可无? 还有其他方法可以获得相同的信息吗?
mod_suexec.c
Allows CGI scripts to run as a specified user and Group
我想我需要这个,因为我的PHP处理程序是suPHP
mod_unique_id.c
Provides an environment variable with a unique identifier for each request
有什么条件,这将是重要的/有用的?
mod_userdir.c
his module allows user-specific directories to be accessed using the http://example.com/~user/ syntax.
我想我不需要这个。
我将不胜感激任何指导。 谢谢。
我不确定我会打电话给一个小的VPS,但无论如何)。
你对Linux有多大的经验? 我想你可能会把networking服务器切换到nginx,并节省大量的资源。
至于模块:把auth单独留下。 我知道auth basic是在cPanel / WHM中使用密码保护目录时使用的模块。 其他人大多看起来很重要。 我自己会离开其他人,以避免打破任何function。
我只是假设cPanel编译的内容可能需要某个地方; 无论是在您的网站或cPanel / WHM用户界面。