apache
Installation
SKILL.md
Apache HTTP Server (httpd)
Apache is a robust, modular web server. While Nginx leads in raw performance, Apache leads in flexibility via .htaccess. v2.4 remains the stable standard in 2025.
When to Use
- Shared Hosting:
.htaccessallows per-directory config without restarting the server. - Dynamic Modules: Loading modules without recompiling.
- Legacy Apps: Many PHP/Perl apps are pre-tuned for Apache.
Core Concepts
MPM (Multi-Processing Modules)
prefork: Compatible with non-thread-safe libraries (old PHP).event: Modern, async I/O. Best for high concurrency.