wordpress The uploaded file exceeds the upload_max_filesize directive in php.ini.

Posted on August 28th, 2007 by KhoKing.
Categories: Computer / IT.

While trying to share two big Nikon D3 files that each contains over 6MB size just now, I have encountered a problem in Wordpress. Not really a wordpress problem but this is the message I received:

wordpress The uploaded file exceeds the upload_max_filesize directive in php.ini.

I tried several times, but still couldn’t get the files uploaded. Did a search via Google and linked to Wordpress site, with suggestion of adding the following commands to php.ini file.

upload_max_filesize = 10M
post_max_size = 10M

I tried locating my php.ini file but not avail. Manually created a php.ini file and save it to my public_html folder but still can’t do, same error at Wordpress.

So, I tried my WebHostManager (I owned a dedicated server with full access to it). Viola! I found the dummy windows style of editing the php.ini file via WHM! Here’s the screenshot of it:

max-upload-file-size.jpg

Default was 2MB maximum file size upload allow, and now I have changed it to 50MB. :)

Problem solved.

9 comments.

Liam Dempsey

Comment on September 19th, 2007.

Thanks for posting the screen shot of how to find the php.ini! I had spent about an hour looking for it when I came across your website. Much appreciated.

KhoKing

Comment on September 20th, 2007.

Hi Liam Dempsey,

You are most welcome. Glad that my blog can be of useful to someone. :)

stupid

Comment on June 14th, 2008.

I OWE YOU A VERY LARGE AMOUNT OF BEER!!!

THANK YOU - THANK YOU - THANK YOU - THANK YOU - THANK YOU - THANK YOU - THANK YOU - THANK YOU

stupid

Comment on June 14th, 2008.

By the way, my problem was that I set the server to 256 (missing off the “MB” at the end.

My max upload was therefore 256 bytes - LOL!!!

Thanks again!

KhoKing

Comment on June 14th, 2008.

Hi, Glad that this article is useful to you. :)

Andrea

Comment on June 23rd, 2008.

This helped me a lot too. Thanks!

nate

Comment on July 18th, 2008.

Outstanding! That is All!

KhoKing

Comment on July 18th, 2008.

Glad that this post / blog has been useful to some. :)

Stanislava

Comment on November 6th, 2008.

Thank you for constantly updated, always a pleasure to read.

Leave a comment

Comments can contain some xhtml. Names and emails are required (emails aren't displayed), url's are optional.