How to Fix Large File Upload Issues (Up to 4GB)
If you’re experiencing issues when uploading large files (e.g. 500MB, 1GB, 4GB), the problem is most likely due to server configuration limits. Below you’ll find a complete guide for all major server environments: PHP, LiteSpeed, Apache, Nginx, cPanel, and WHM.
✅ 1. PHP Configuration
Update your php.ini or .htaccess as follows:
upload_max_filesize = 4096M
post_max_size = 4096M
max_execution_time = 3600
max_input_time = 3600
memory_limit = 4096M
If using .htaccess:
php_value upload_max_filesize 4096M
php_value post_max_size 4096M
php_value max_execution_time 3600
php_value max_input_time 3600
php_value memory_limit 4096M
Use phpinfo() to confirm the settings are active.
✅ 2. LiteSpeed Servers
- Go to
Server Configuration > Tuning > Connection - Update:
- Connection Timeout → 3600
- Keep-Alive Timeout → 60
- Send Buffer Size → 65535
- Receive Buffer Size → 65535
- Then go to
Request/Responsesection and set:- Max Request Body Size → 4294967296
- Max Dynamic Response Body Size → 4294967296
- Save and Graceful Restart the server
✅ 3. Apache Servers
LimitRequestBody 4294967296
If using mod_reqtimeout:
RequestReadTimeout body=60,minrate=500
sudo service apache2 restart
✅ 4. Nginx Servers
client_max_body_size 4096M;
client_body_timeout 3600s;
send_timeout 3600s;
sudo systemctl restart nginx
✅ 5. cPanel Users
- Login to cPanel
- Go to
Select PHP Version > Options - Set:
upload_max_filesize→ 4096Mpost_max_size→ 4096Mmax_execution_time→ 3600max_input_time→ 3600memory_limit→ 4096M
If those values aren’t editable, your provider must change them from WHM.
✅ 6. WHM / Root Access
- Login to WHM
- Go to
Software > MultiPHP INI Editor - Set the same PHP values listed above
- Then go to
Apache Configuration > Global Configuration - Restart Apache via
Restart Services > HTTP Server
If using LiteSpeed, restart it via Plugins > LiteSpeed Web Server > Restart
✅ Final Recap (Simplified)
- PHP: 4GB upload support with correct php.ini
- LiteSpeed: Tuning + Restart required
- Apache: LimitRequestBody + Restart
- Nginx: client_max_body_size + Restart
- cPanel: Use PHP Selector (no restart needed)
- WHM: MultiPHP INI Editor + Restart
If you’d like us to check this directly for you, feel free to send access details via a support ticket. We’ll be happy to help! 