fix: pass PHP upload limits via -d flags in justfile serve recipe

php -S (built-in dev server) ignores .htaccess and .user.ini entirely.
The POST Content-Length limit was still 8M from /etc/php/php.ini.
Pass upload_max_filesize=512M, post_max_size=520M, memory_limit=256M,
max_execution_time=300, max_input_time=300 directly on the CLI.
This commit is contained in:
Pontoporeia
2026-04-30 13:26:08 +02:00
parent 6a37d21f3f
commit 19784090a3
3 changed files with 18 additions and 3 deletions

View File

@@ -115,7 +115,15 @@ Landscape format recommended (4:1 ratio). Max size: **20 MB**.
| Cover image | 20 MB |
| Banner image | 20 MB |
The PHP limits are set in `app/public/.htaccess` (Apache) and `app/public/.user.ini` (PHP-FPM / nginx). For environments that require higher limits, edit those two files.
The PHP limits are set in:
| File | Applies to |
|------|------------|
| `app/public/.htaccess` | Apache (`mod_php`) |
| `app/public/.user.ini` | PHP-FPM / nginx |
| `justfile``serve` recipe | PHP built-in dev server (`php -S` ignores both files above, so limits are passed via `-d` flags) |
For environments that require different limits, edit all three.
---