Informatique

Accroitre taille Download WordPress.

  • Comment accroître la taille des download sous PHP ( donc WordPress)
  • Tutos :
  • 2 voies :
    • PHP :
      • /etc/PHP5/Apache2/php.ini
      • ; Maximum allowed size for uploaded files.
        ; http://php.net/upload-max-filesize
        #upload_max_filesize = 2M
        upload_max_filesize = 300M
      • [05/05/2017] => Ne fonctionne pas => cf post_max_size : qui fonctionne.
      • ; Maximum size of POST data that PHP will accept.
        ; Its value may be 0 to disable the limit. It is ignored if POST data reading
        ; is disabled through enable_post_data_reading.
        ; http://php.net/post-max-size
        ;post_max_size = 8M
        post_max_size = 15M
      • Ne pas oublier d’appliquer les changements sur le serveur Apache (Restart)
      • NE PAS OUBLIER DE VIDER LE CACHE du Browser (Firefox, Explore) avant de tenter un nouveau chargement d’image.
    • WordPress: fichier HTACCESS qui overide PHP.ini (08/03/2018)
      • …../WordPress/.htaccess
        • php_value upload_max_filesize 350M
        • php_value post_filesize 350M (celui qui est pris en compte pour le download média)