no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | gentoo_apache [2012/07/31 18:07] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Gentoo Linux: Apache ====== | ||
+ | |||
+ | * [[Apache]] | ||
+ | * [[Apache Worker MPM PHP CGI Suexec Setup]] | ||
+ | * [[Gentoo]] | ||
+ | |||
+ | Running Apache on Gentoo gives you a lot of flexibility. | ||
+ | ==== Modules ==== | ||
+ | |||
+ | The modules that Apache is built with can be set by '' | ||
+ | |||
+ | Here is a trimmed down version that removes many unused modules. | ||
+ | |||
+ | < | ||
+ | APACHE2_MODULES=" | ||
+ | authz_host authz_user autoindex cache cgi cgid deflate dir disk_cache env expires file_cache | ||
+ | filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite | ||
+ | setenvif status unique_id userdir vhost_alias" | ||
+ | </ | ||
+ | |||
+ | ==== MPMS ==== | ||
+ | |||
+ | Gentoo lets you configure the MPM in use. The most common ones are '' | ||
+ | |||
+ | < | ||
+ | |||
+ | ==== Optimization ==== | ||
+ | |||
+ | You can build Apache, or any program, with different settings than used by '' | ||
+ | |||
+ | An optimized version using gcc with highest optimizations: | ||
+ | |||
+ | < | ||
+ | |||
+ | Edit '' | ||
+ | |||
+ | < | ||
+ | CXXFLAGS=" | ||