how to increase phpMyAdmin upload limit With apache2 and php5

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

I have made changes in php.ini for upload 40MB sql file. Below I have defined all steps which I have taken for 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 have 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