Because reading the README is faster than debugging

This commit is contained in:
2025-12-01 23:15:03 +01:00
parent b85483ac9c
commit 91e6f0147a

View File

@@ -5,34 +5,24 @@
[![PHP](https://img.shields.io/badge/php-fpm-777BB4)](#)
[![License](https://img.shields.io/badge/License-MIT-green)](./LICENSE)
Automated Bash installer for **Nginx + PHP-FPM on Ubuntu 24.04 Server**.
Tuned for production, battle-ready, and built for people who like uptime more than debugging.
Install Nginx + PHP-FPM on Ubuntu 24.04 server.
This isnt a “hello world” demo environment.
This script builds a **real web server** — hardened, structured, and ready to host more than one weekend project.
---
This is not a guide and not a toy.
This is a production-grade installer — secure, structured, and ready for multiple applications.
## Why this installer exists
Default Nginx configs become unmanageable quickly. This setup keeps things structured and predictable.
Because the default Nginx package leaves you with:
## What this installer does
✔ Creates snippet directory for modular config
✔ Optional security and bot-blocking modules
✔ Cloudflare Real-IP support
✔ Requests to bare server IP return **444**
✔ Suitable for WordPress, Gitea, Zabbix, Wiki and more
❌ default site you immediately disable
❌ configs scattered like confetti
❌ wrong IPs when behind Cloudflare
❌ no snippet structure
❌ caching off, security minimal
❌ weird defaults nobody asked for
This script fixes that:
✔ Creates `/etc/nginx/nginx-snippets/`
✔ Cloudflare Real-IP awareness
✔ Default virtualhost returns **444** instead of smiling politely
✔ Optional security snippets
✔ PHP-FPM pre-wired and ready
You deploy once — not fight it for half a day.
## What this installer does *NOT* do
It wont stop you from running the script without reading the documentation like theres no tomorrow.
Skip the README, and whatever happens next is your headache, not a bug report.
---