Talk to your hosting company. They are the ones that have those limits set, and sometimes they do disable php.ini files in accounts so what you’ve set may not be used by the server. Your hosting company are the only people that will be able to tell you what will (and won’t) work on their servers.
I am the hosting company. I have static IPs and these WordPress servers are running on Ubuntu and are both in my office. I installed all the software, Ubuntu and WordPress and I have access to the physical server.
I am the hosting company and WordPress software is the only thing which limits the file size. I am hoping to find somebody who knows, from experience, where the limit code is and knows how to modify it.
Thanks,
AG
WordPress doesn’t limit upload sizes by itself. It takes the values from the PHP server settings. Upload size is 100% controlled by the server.
OK, I accept that so does anyone know how an Ubuntu server running nothing but a fresh install of LAMP and WordPress limits the upload size of a file?
Anyone … I would very much appreciated!!!
AG
There’s 3 values that you have to look for, not just memory limit.
memory_limit = 64M
post_max_size = 10M
upload_max_filesize = 10M
Those are “suggested” values, but you can change them to whatever you wish.
This is the content of /var/www/wp-admin/php.ini
memory_limit = 64M
post_max_size = 10M
upload_max_filesize = 10M
It’s not working … what have I done wrong and/or what am I missing?
Thanks,
AG
As catacaustic says; “It takes the values from the PHP server settings. Upload size is 100% controlled by the server.”
I did research the problem and I did create /var/ww/wp-admin/php.ini
The system-wide values are first set in the server php.ini file.
/etc/php.ini, or maybe /etc/php5/php.ini it depends on the distro and how you’re running php. Consult the doc’s for your version of Ubuntu.
[edit] ..and you will need to restart Apache after saving any changes.
YOU ARE ABSOLUTELY CORRECT … my compliments!
I found the file here:
/etc/php5/apache2/php.ini (it had the infamous file size restriction of 2M). I changed the following code lines:
memory_limit = 128M (no change needed here, it was already set at 128M)
post_max_size = 60M (it was set at 8M)
upload_max_filesize = 60M (it was set at 2M)
I was trying to upload a 50MB PDF file which now is uploaded. Now, I have to figure out what I need to have it show in a nice window within the page with a nice slider on the right.
Thank you,
AG