How can we increase upload file size limit PHP in Ubuntu?

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Today now in this post we will know how we can increase upload file size limit php in ubuntu. When i was start working on my new php project and i need to direct import our mysql database in my phpmyadmin in Ubuntu OS. But my database size was only 30MB, so on that time i can’t upload my database. So then i was try to find out what is the solutions. i was find this so that’s why I need to change my upload max file in php.ini. So try to find something how to change the upload_max_file_size in php apache2.

So if you can also fetch the problem like this then you can solve that issue just using following example:

Open php.ini file

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

So after the run above command we can open php.ini file and find bellow value and need change value:

upload_max_filesize 200Mmax_file_uploads = 200

Now just need restart our apache server:

sudo service apache2 restart

Read Also : How to convert Object into Array in PHP?

Thanks for read. I hope it help you. For more you can follow us on facebook.

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →