What Are LAMP and LEMP?
LAMP and LEMP are popular web server stacks available as one-click deployments in the Marketplace. Both serve PHP applications, but they differ in the web server component:
- LAMP: Linux, Apache, MySQL, PHP
- LEMP: Linux, Nginx (Engine-X), MySQL, PHP
Apache vs Nginx
Apache (LAMP)
- Process-based architecture with
.htaccesssupport - Flexible per-directory configuration without server restarts
- Extensive module ecosystem (mod_rewrite, mod_security)
- Higher memory usage under heavy concurrent connections
Nginx (LEMP)
- Event-driven, asynchronous architecture
- Lower memory footprint and better static file performance
- Configuration changes require a reload (no
.htaccessequivalent) - Excellent reverse proxy and load balancing capabilities
When to Choose LAMP
- Applications that rely on
.htaccessrules (many PHP CMS platforms) - Teams familiar with Apache configuration
- Shared hosting migration where Apache-specific features are needed
When to Choose LEMP
- High-traffic sites needing efficient concurrency handling
- Applications that serve large amounts of static content
- Microservice architectures using Nginx as a reverse proxy
- Breezes with limited RAM where memory efficiency matters
Performance Comparison
On a typical Breeze with 2 GB RAM:
# Apache memory per worker process
# Roughly 10-20 MB per process, ~100 concurrent connections
# Nginx memory usage
# Roughly 2-5 MB total for thousands of concurrent connectionsSwitching Between Stacks
If you start with LAMP and want to switch to LEMP, you can install Nginx and migrate your virtual host configuration. However, starting with the right stack is easier than switching later.
Recommendation
For most new projects on a Breeze, LEMP provides better performance with lower resource usage. Choose LAMP only if your application specifically requires Apache features.