how to increase phpMyAdmin upload limit With apache2 and PHP


I have installed a LAMP server  I need to upload 40MB database through phpMyAdmin.

I have made changes in php.ini to upload 40MB SQL file. Below I have defined all steps which I have taken to change upload configuration

Open php.ini file using

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

In the file /etc/php5/apache2/php.ini I have changed

 post_max_size = 8M to   
 post_max_size = 64M and   
 upload_max_filesize = 2M to   
 upload_max_filesize = 64M  

After that, I restarted the apache2 server using

  sudo /etc/init.d/apache2 restart  

Create a PHP file with
 <?php phpinfo(); ?>  
open it with your browser

No comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + ''; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();