File Upload Limit in php.ini
Greetings Friends !
Today, I would like to quote a one stop updates for settings changes for increasing the File Upload Limits in Ubuntu.
With apache2 and php5 installed you need to make three changes in the file php.ini
sudo vi /etc/php5/apache2/php.ini
Once file is opened, search for entry post_max_size = 2M where you need to enter a larger number than the size of your database (25M for instance) i.e. 25M, next edit memory_limit and give a larger number than the one given to post_max_size. Finally, edit the entry upload_max_filesize with a value smaller than post_max_size.
Starting from bigger values the order should go like this
memory_limit = 128M
post_max_size = 25M
upload_max_filesize = 25M
Restart apache (command: sudo /etc/init.d/apache2 restart) and you are all set.
Please Don't forget to Restart Apache Services for changes to get applied
Add new comment