Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import file size limit in PHPMyAdmin

I have changed all the php.ini parameters I know: upload_max_filesize, post_max_size.

Why am I still seeing 2MB?

Im using Zend Server CE, on a Ubuntu VirtualBox over a Windows 7 host.

like image 989
ronaldosantana Avatar asked Oct 18 '10 11:10

ronaldosantana


People also ask

How do I change the upload file size in phpMyAdmin xampp?

Once you open the file in your preferred text editor, you need to locate upload_max_filesize and change its value with any arbitrary size you need. For example, in the below snapshot, you can see the value of the upload_max_filesize. It is by default 2M when you install the XAMPP server.


2 Answers

Find the file called: php.ini on your server and follow below steps

With apache2 and php5 installed you need to make three changes in the php.ini file. First open the file for editing, e.g.:

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

OR

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

Next, search for the post_max_size entry, and enter a larger number than the size of your database (15M in this case), for example:

post_max_size = 25M 

Next edit the entry for memory_limit and give it a larger value than the one given to post_max_size.

Then ensure the value of upload_max_filesize is smaller than post_max_size.

The order from biggest to smallest should be:

    memory_limit     post_max_size     upload_max_filesize 

After saving the file, restart apache (e.g. sudo /etc/init.d/apache2 restart) and you are set.

Don't forget to Restart Apache Services for changes to be applied.

like image 84
Aditya P Bhatt Avatar answered Oct 12 '22 14:10

Aditya P Bhatt


You probably didn't restart your server ;)

Or you modified the wrong php.ini.

Or you actually managed to do both ^^

like image 25
NikiC Avatar answered Oct 12 '22 15:10

NikiC