PHP Tuning: Increasing memory_limit and upload_max_filesize Safely
Resolve memory limit exhaustion errors and increase maximum file upload quotas in PHP.
Проверено на
- PHP
- 8.1 – 8.3
- Последняя проверка
- 2026-09-13
На этой странице
Все руководства
When uploading themes, media libraries, or backups, you may encounter upload limit warnings or memory exhausted fatal errors caused by conservative default PHP ini limits.
1. Recommended PHP Configuration Values#
The recommended baseline values for WooCommerce, Elementor, and dynamic web apps:
; Onerilen WordPress & PHP Ayarlari
upload_max_filesize = 128M
post_max_size = 128M
memory_limit = 512M
max_execution_time = 300
max_input_time = 300Как это сделать?
How to do this on a Clodo service
File manager & SFTPYou set PHP limits by placing a .user.ini file in your site root rather than with a slider in the panel. You reach that file through the panel file manager or over SFTP.
Пошагово:
- 1Connect from the 'SFTP & Files' tab on the service detail page, or open the panel file manager.
- 2Create a .user.ini in your site root and add the values from this guide.
- 3Restart the service from the panel; PHP-FPM reads the new values on boot.
- 4Do not set the memory limit above your plan's RAM -- exceeding it kills the process (exit code 137).
Было ли руководство полезным?
Отзыв сразу попадает команде, которая ведёт это руководство.
Похожие руководства
WordPress Speed Optimization: Redis Object Cache Integration
Eliminate repeated database queries with LiteSpeed page cache and Redis object cache, then measure the gain on your own site.
Paper & Purpur Server Optimization: Fixing TPS Drops and Lag
Comprehensive guide to configuring chunk, entity, and mob tick limits to maintain a solid 20 TPS.

