Fix “503 Service Unavailable” When Uploading in Stackposts (aaPanel + Nginx + PHP 8.x)
Use this troubleshooting guide to isolate the issue, apply one controlled fix, and verify the same workflow again.
Use this guide
- Confirm the symptom and copy the exact message shown.
- Check the prerequisites named in the detailed steps below.
- Apply one change at a time, retry the same test, and record the result.
Detailed steps
💡 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.
Quick check
- The save or publish action completes without an error.
- The visible status, preview, or connected account matches the change.
- If the result differs, capture the exact message and review the troubleshooting guidance before retrying.