Прошу прощения за этот вопрос, но я действительно новичок, и поиск не помог
В чем разница между модами .so и .c?
Затем, еще раз приношу свои извинения за такой обширный, общий, вероятно, трудноразрешимый вопрос, и я буду очень признателен за все советы.
У меня небольшой VPS (4 четырехъядерных ядра, 3 ГБ ОЗУ, Xen, CentOS 6 64-бит, Apache, cPanel, PHP, mySQL. Скрипты: WordPress, OpenCart, bbPress, phpBB, Menalto Gallery). Я пытаюсь избавиться от всех модов, которые мне не нужны / которые я не использую. Не могли бы вы помочь мне определить, какие из них мне следует удалить?
Мой хост говорит: загруженные модули 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.
Хорошо, я подозреваю, что мне это нужно, потому что сценарии имеют дело с загрузкой, загрузкой и управлением файлами, включая изображения / мультимедиа и другие типы.
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.
Не совсем уверен, что это значит и для чего это используется. Если я отключу это, мои скрипты не смогут обрабатывать функции входа / выхода? К какой конкретной аутентификации это относится?
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 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 (e.g. 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 все равно не будет информация о конфигурации сервера?
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 также в качестве дополнительных доменов. Нужны ли мне эти прокси-моды? Они НИЧЕГО связаны с доменами? Для чего они нужны?
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? Я думаю, вы могли бы переключить веб-серверы на nginx и сэкономить большое количество ресурсов.
Что касается модулей: оставьте auth в покое. Я знаю, что auth basic - это модуль, который используется при защите паролем каталогов в cPanel / WHM. Остальные в основном выглядят важными. Я бы сам оставил остальных, чтобы не нарушить функциональность.
Я просто предполагаю, что то, что скомпилировано cPanel, вероятно, где-то нужно; будь то на вашем сайте или для пользовательского интерфейса cPanel / WHM.