How to Fix Cloudflare Error 524 A Timeout Occurred in cPanel
Posted about 2 months ago 4.3kWhat Cloudflare 524 Means
Long process timeout: Origin server took longer than 100 seconds to respond.
Common Causes
- Slow PHP script or backup
- Large or unoptimized database query
- Long-running cron job
- Server resource exhaustion
Troubleshooting Steps
Check Running Processes
cPanel → Advanced → CPU and Concurrent Connection Usage → Identify long-running PHP/MySQL processes.
Increase PHP Execution Time
MultiPHP INI Editor → Set max_execution_time to 300 or higher for the affected domain.
Solutions Table
| Cause | Solution |
|---|---|
| Slow script | Optimize code or add caching |
| Database query | Add indexes or cache results |
| Cron job | Schedule off-peak or split tasks |
| Resource limit | Enable Redis/Memcached |