Increase PHP Upload Size Limitation

Last Updated: August 19, 2014 | Reading Time: < 1 minute

Every server running has limitations including file upload, If you need to upload bigger file, you need to adjust PHP settings. If you are running web server on Linux, mostly you can search the settings file on /etc/php5/apache2/php.ini if your web server running on Windows(xampp/wampp) mostly you’ll find it on \wamp\bin\php\php5.4.12\php.ini Just open that file with plain text editor. Do a search for upload_max_filesize and post_max_size

Here’s the end result for my setting’s file:
[shell]
; Maximum size of POST data that PHP will accept.
; php.net/post-max-size
post_max_size = 50M
[/shell]

and

[shell]
; Maximum allowed size for uploaded files.
; php.net/upload-max-filesize
upload_max_filesize = 50M
[/shell]

You need to reload / restart the Apache’s service after that.
[shell]
[email protected]:/etc/init.d/apache2 reload
[/shell]

Test the upload now.

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

    Any idea? Fill the comment below

    This site uses Akismet to reduce spam. Learn how your comment data is processed.