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
Here’s the end result for my setting’s file:
; Maximum size of POST data that PHP will accept.
post_max_size = 50M
; Maximum allowed size for uploaded files.
upload_max_filesize = 50M
You need to reload / restart the Apache’s service after that.
[email protected]:/etc/init.d/apache2 reload
Test the upload now.