WP Multisite Dashboard how can I change Media Space allowed? - php

In a WP Multisite installation the first site shows, Media Space allowed of 35MB.
Storage Space
35 MB Space Allowed (Manage Uploads)
12.39 MB (35%) Space Used
Where is the setting to change this?
I have already tried already changing setting Max upload file size from 35000KB to 100000KB but obsviously is a different setting.
I do not have settings for file size in .user.ini o .htaccess or wp-config.php
I already have checked in CPanel taht php upload_max_filesize (MB) is set to 35MB and post_max_size (MB) also to 35MB
Can anybody help?

I find out myself. Sorry I did not see the setting
'Site upload space'. (I suppose is for each site of the WP Multisite)

Related

Can't increase media file size limit in Wordpress, tried everything

I need to increase my upload file size limit in my Wordpress site - it's currently set at just 2MB. I have tried everything, from editing functions.php, creating a php.ini file, updating the .htaccess file, calling my hosting provider who told me "you're on the right track!" and offered no other help. When I look at the info for the site (here!) it says my upload limit is 64M, which is what I set it to following all the tutorials I read, but when I actually look in my media uploader in Wordpress, it still has a limit of 2MB. Am I missing something? Any help much appreciated!
After tearing my hair out, I figured out the solution: the php.ini file needs to go in the wp-admin folder. All the tutorials I read specified other folders to put this file in (everything from the theme folder to the cgi-bin folder, etc). In the end, it worked fine in the wp-admin folder, I can now see my limit in the uploader is at 64m. If anyone else is struggling, try that!
I see you found the solution already though a good practice is to increase 2 variables in the php.ini file, located to the folder of your site:
post_max_size 200M
upload_max_filesize 200M
That will set-up the limit to 200Mb and after clearing cache you should see it in the Media tab in the WordPress Dahsboard.
Unless if there is another limit involved from the hosting, that should work like a charm.

Can't upload wordpress plugin. File size too large

When I tried to upload a plugin to my wordpress site (memberpress) I get "The uploaded file exceeds the upload_max_filesize directive in php.ini." error. When I look under add new media it says my maximum file size upload is 25MB. The plugin I'm trying to install is 2.2MB. I have tried editing the php.ini and php5.ini files but it hasn't let me upload the plugin and the max file size hasn't changed under the upload new media section.
As it doesn't seem that you are able to edit your php.ini file to increase the max allowed upload size, you need to work around this by uploading your plugin to the plugins folder under your WordPress root via ftp.
Also check the post_max_size in php.ini, set it higher.
Otherwise, check the permission on parent folder, in this case the plugin folder.

Wordpress theme and plugin upload disabled, theme editor disabled as well

I'm developing an old wordpress website. There I can not upload any theme/plugin. I mean there's no add new option for plugins and themes. I updated it to the latest 4.7.1 version but still no luck. In config.php file there's no DISALLOW_FILE_MODS or DISALLOW_FILE_EDIT such option defined. I can't figure out where this disable option came from?
Also it's uploaded on a sftp server. I can manually upload any plugin to wp-content/plugins folder through sftp but after activating the plugin it makes the website frontend white screen death.
Overall, how could I allow theme,plugin uploading or how could I allow add new options to them?
Reading around the web about this, it seems like this might be caused by not having enough resources to operate, so I assume WordPress checks for this and disables in advance the ability to add new content.
I suggest checking the following values in the php.ini config file (you can run a script containing <?php phpinfo() ?> from the server to see the values faster; just don't make it publicly accessible):
display_memory - should be at least 128M
max_post_size - by default is 8M, try setting it to 128
upload_max_filesize - by default is 2M, try setting it to 128

Update Post Max Size in Windows Server

I have installed a plug in that the minimum requirement is 32M for post max size.
So I searched this in the web but I can't find the suggested files to be modified.
Increasing the maximum post size
I can't find php.ini and .htaccess in the whole Wordpress folder.
Only Max upload size is configurable in wp-admin/network/settings.php
using get_option( 'blog_upload_space' );
How can I do this ?
I have looked at inetpub folder and can't find it there too.
inetpub:
AdminScripts
custerr
ftproot
history
logs
mailroot
temp
wwwroot
php.ini is not located in wordpress folder, its located in root directory of your server.
in XAMPP.
for, .htaccess its most of the times hidden, so search for hidden files, and if its not present you can create one. but beware, usually updating .htaccess files is not a good idea.

HTTP Error on large file upload in Wordpress

I have looked for this problem's solution everywhere but nothing seems to be working.
I get HTTP Error while uploading a file (PDF) with size around 10 MB. I also tried uploading another PDF with size 4 MB and it got uploaded at once. No issues.
Note: I have increased the default upload file size limit to 32 MB by using the custom plugin here
Please suggest me what to do. I do not have any php.ini and .htaccess. And I have no support from my hosting provider. Please help.
once check your php configuration
post_max_size & upload_max_filesize
Check upload settings
/wp-admin/settings.php
In my case the cause was plugin All In One WP Security an its "Basic Firewall Settings". The above firewall features are applied via your .htaccess file and one if these features is "Limit file upload size (10MB)."
So to make upload of files larger then 10 MB working again you can do following:
1) Go to WP Security / Firewall / Basic firewall rules tab and uncheck "Enable Basic Firewall Protection". Then Save settings. This will disable all Basic firewall settings and this 10 MB upload limitation as well.
or
2) If you want to keep the basic firewall rules but remove only that limitation, you need to use “Custom Rules”. Go to WP Security / Firewall / Custom rules tab and check "Enable Custom .htaccess Rules:". Then put in the custom rules text area:
LimitRequestBody 64000000
That will allow approx. 64 MB uploads. Also make sure that “Place custom rules at the top” checkbox is NOT checked, so it overwrites the 10M limit from above.

Categories