Passer au contenu
Clodo

PHP Tuning: Increasing memory_limit and upload_max_filesize Safely

Resolve memory limit exhaustion errors and increase maximum file upload quotas in PHP.

Débutant4 minMis à jour :13 septembre 2026
Vérifié : PHP 8.1 – 8.3

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:

php.ini
; Onerilen WordPress & PHP Ayarlari
upload_max_filesize = 128M
post_max_size = 128M
memory_limit = 512M
max_execution_time = 300
max_input_time = 300
Comparaison des méthodes

Comment implémenter cela ?

How to do this on a Clodo service

File manager & SFTP

You 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.

Où dans le panneau ? Panel > Service detail > 'SFTP & Files' tab gives you the file access credentials.
Exécution étape par étape :
  1. 1Connect from the 'SFTP & Files' tab on the service detail page, or open the panel file manager.
  2. 2Create a .user.ini in your site root and add the values from this guide.
  3. 3Restart the service from the panel; PHP-FPM reads the new values on boot.
  4. 4Do not set the memory limit above your plan's RAM -- exceeding it kills the process (exit code 137).

Ce guide vous a-t-il été utile ?

Les retours sont directement transmis à l'équipe qui maintient ce guide.

Vous n’avez pas trouvé de solution ?

Vous pouvez ouvrir une demande auprès de notre équipe d’assistance depuis le panneau.

Ouvrir une demande