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 = 100M ;
and post_max_size = 100M ;
2. If you cannot edit or override the system php.ini
file, add php_value upload_max_filesize 100M
and php_value post_max_size = 100M
to your .htaccess
file.
3. If neither of these work, 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 100MB)
Thank you James for taking the time
I will (cautiously) try 1. and 2. as, with my lack of knowledge, I don’t want to create an ever bigger pb.
Can I just check that I do this via cpanel not via my WP site?
My webhost should be fine as my other 2 sites are wit them also and the file size ‘normal’
Carine
Moderator
James Huff
(@macmanx)
Volunteer Moderator
Some hosts do offer that control via cPanel, but others don’t. You’ll have to check with your hosting provider on that.
Really, the truth is that the “right” way depends entirely on your hosting provider.
You should ask them what the correct way is for you to set the upload_max_filesize and post_max_size variables for your hosting account.
Sometimes it’s .htaccess rules. Sometimes it’s creating your own PHP.INI file in your web’s root directory. It varies depending on their configuration, but they should have a way to do it, and preferably documentation for you to find out what that way is.
I have been on cpanel and really don’t understand what I’m doing. webhostinghub support has been good so far so hopefully they will be able to sort me out.
That’s tomorrow’s job!
Thank you very much for your help and promptness.
Carine