How to increase upload file size limit PHP in Ubuntu?

By Hardik Savani | April 20, 2016 | | 31281 Viewer | Category : PHP Installation Ubuntu


When i was working on my php project and i need to direct import mysql database in my phpmyadmin in Ubuntu 14.04 system, but my database size was 30MB, so i can't upload my database. that's why I need to change upload max file in php.ini. so try to find something how to change upload_max_filesize in php apache2. So if you also fetch problem like this then you can solve that issue just following example:

Open php.ini file

sudo gedit /etc/php5/apache2/php.ini

After run above command you can open php.ini file and find bellow value and change value:

upload_max_filesize 200M

max_file_uploads = 200

Now just restart your apache server:

sudo service apache2 restart



Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.