file upload size | WordPress.org

[ad_1]

Hallelujah, found the answer in one of the many threads on this subject. Hint, it’s not “ask your hosting provider”.

Search for this thread, read down a couple of comments. The php version mentioned needs to be updated.

How to increase Maximum upload file size from 2MB

And .. then, restart apache 🙁

  • This reply was modified 2 hours, 30 minutes ago by intonalist.

Moderator
James Huff

(@macmanx)

Volunteer Moderator

The maximum upload size is controlled at the server level, not by WordPress. Here are three ways you can increase the upload limit:

  1. If you can edit or override the system php.ini file, increase the maximum file and post sizes. For example, upload_max_filesize = 250M ; and post_max_size = 250M ;
  2. If you cannot edit or override the system php.ini file, add php_value upload_max_filesize 250M and php_value post_max_size 250M to your .htaccess file.
  3. If neither of these works, it’s time to ask your hosting provider to increase the maximum file and post sizes on your account. Keep in mind that most decent hosting providers allow this, and If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

(in the above examples, the limit is set to 250MB)

Yes, for a self-managed LAMP stack with wordpress: /etc/php/(version)/apache2/php.ini

two values to set upload_max_filesize and post_max_size

then restart apache2

All the other frequently suggested ‘fixes’ do not seem to work: htaccess, php.ini within the www home directory, etc etc.

Moderator
James Huff

(@macmanx)

Volunteer Moderator

Yeah, which fix works varies greatly on your server configuration.

Glad that worked out for you!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer