To increase upload_file_size in phpmyadmin

The default import file size of phpmyadmin is 2MB. We can increase that by changing the value in the upload_file_limit in the PHP configuration file. To do so, We need to find the exact configuration file in php. Create a php file as below.

It will display the php information as shown below, form there you can file location of the configuration file.php_info

Now open the configuration file using the command sudo -H gedit /etc/php5/apache2/php.ini

  • Change the default value of upload_max_filesize 2M to 200M
  • Change the default value of post_max_size 8M to 200M
  • Restart apache by using sudo /etc/init.d/apache2 restart

By this way, we can increase the file upload limit. You can see the value got updated in the phpinfo file.upated-phpinfo

Leave a Comment

Your email address will not be published. Required fields are marked *