apache-lamp-config
SKILL.md
Apache & LAMP Config
When to use this skill
- Configuring local development environments (MAMP, XAMPP, Docker + Apache).
- Managing
.htaccessfiles. - Troubleshooting rewrite rules.
1. Virtual Hosts
- Structure: One file per site in
sites-available, symlinked tosites-enabled. - DocumentRoot: Point to the
public/directory, not the project root (security). - Directory: Allow overrides:
<Directory "/var/www/site/public"> AllowOverride All Require all granted </Directory>
2. .htaccess Best Practices
- Rewrites: Standard pattern for front controllers (Laravel/Symfony):
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] - HTTPS: Force HTTPS if not handled by a reverse proxy.
3. PHP-FPM
- Timeouts: Increase
max_execution_timeandmemory_limitonly for specific heavy jobs, not globally. - Opcache: Enable Opcache in production for performance.
Weekly Installs
5
Repository
sraloff/gravitybootsGitHub Stars
2
First Seen
Feb 21, 2026
Security Audits
Installed on
gemini-cli5
github-copilot5
codex5
kimi-cli5
amp5
cursor5