💡 Summary
Fix 3 parts:
① PHP → increase upload & execution limits
② Nginx → raise timeouts & file size limits
③ PHP-FPM → increase workers and request timeout
✅ Step 1 – Configure PHP
In aaPanel → App Store → PHP 8.x → Setting → Configuration, set:
→ Click Save → Restart PHP 8.x
✅ Step 2 – Configure Nginx
Open your domain config file:
and add (or update) the following inside the server { ... } block:
(replace 8x with your PHP version, e.g. 80, 81, 82, 83)
→ Save → Restart Nginx
✅ Step 3 – Configure PHP-FPM
Open:
Find the [www] section and ensure:
→ Save → Restart PHP 8.x
✅ Step 4 – Test
-
Open
info.php→ confirmphp-fpm: active. -
Upload an image or video in Stackposts → ✅ No more 503 Service Unavailable.