Max_upload_filesize wordpress

Ou puis-je trouver le bon fichier qui permet la modif du parametre php max_upload_filesize?

J’ai testé:
/etc/php5/cli/php.ini
/etc/php5/fpm/php.ini
ajouter un fichier php.ini et php5.ini et .htaccess du coté de wordpress
modifier le fichier wp-config.php
/etc/yunohost/apps/wordpress/conf

Donc apres chaque test j’ai fait un

service nginx restart

puis vidé le cache du navigateur

Tu trouveras ce paramètre dans le fichier /etc/php5/fpm/conf.d/20-wordpress.ini

1 Like

Hello,

Je ranime juste ce sujet pour savoir si cette manipulation est celle qui permet aussi d’augmenter la taille limite des fichiers dans le cas d’import de données (j’essaie d’utiliser le plugin All-in-one WP Migration) :

(L’éditeur du plugin indiquant ces manipulations)

As explained in other topics, I have found that I need to modify at the very end of

sudo nano /etc/php/7.3/fpm/pool.d/wordpress.conf

these three value

php_admin_value[upload_max_filesize] = 50M
php_admin_value[memory_limit] = 64M
php_admin_value[post_max_size] = 50M

Additional note: in Multisite mode, you will need to change the default (?) 10MB (10000KB, as shown by wordpress) setting in your Network settings.

This value can be set to an higher value than the server (= php) setting, but in that case Wordpress will tell you that the limit is [php limit].

I’m referencing this here, as it made me crazy one day to see that whatever limit I was using in PHP, it was still limiting me to 10MB, while showing the good php settings in Site Health menu…