Problems uploading large files in WordPress – the *second* php.ini setting
Tuesday, February 24th, 2009Recently I spent some time working on our site and making it so that I could upload large media files directly through the WordPress web interface. In doing so, I ran smack into the default limit of 2 MB on file uploads. I spent time in the WordPress support forums and found the general consensus that you needed to change the upload_max_filesize setting in your /etc/php.ini file to be larger. So I changed that setting to “100M”, restarted Apache and thought I would be all set.
However, this still didn’t let me upload larger files. In fact, the result was somewhat comical in that the WordPress error message said “You cannot upload files larger than 100M” – but yet my files were far smaller than that. It turned out in further investigation that there is a second setting in php.ini that needed to be changed: post_max_size, as in “the maximum size of a given blog post”. That was also set to “2M” and was therefore gating my upload. A quick change to make both look like:
upload_max_filesize = 100M; post_max_size = 100M;
followed by a restart of Apache… and I was uploading away. I’m writing this here mostly so that I remember for other WordPress installs – and in the hopes that it helps someone else out there…
If you found this post interesting or helpful, please consider either subscribing via RSS or following on Twitter.
Technorati Tags: wordpress
Want to learn how Voxeo can help unlock your communications and deliver
a better customer experience?
Please contact us!
If you found this post interesting or helpful, please consider either
subscribing via RSS, becoming
a fan on Facebook, or
following us on Twitter.
RSS Feed




