PHPMyAdmin max download size will not change, invalid php.ini file

I recently reinstalled my server using WAMP, previously I used XAMPP.

In phpmyadmin, the maximum download size for database files is 2.048 KB.

I changed three variables in php.ini according to several forums and articles on the problem, restarted my server and it has no effect what ever.

Is there some kind of environment path variable, etc. that needs to be configured elsewhere?

What am I missing.

+7
source share
4 answers

Maybe php.ini is not the one you expect. Be sure to check phpinfo to see which configuration is in use and which options are active.

+2
source

Put them in php.ini

upload_max_filesize = 10M post_max_size = 10M 

Or you can put them in .htaccess:

 php_value upload_max_filesize 10M php_value post_max_size 10M 

Replace 10M with anything.

Optional:. To find out what php.ini is currently using, create a file in the root folder, say info.php , which contains <?php phpinfo(); . Then go to this file from your browser and search for php.ini . This needs to be done through the browser, from the command line you will most likely see another php.ini

When finished, restart Apache for the change to take effect.

+15
source

First you need to change the values โ€‹โ€‹in the php.ini file to suit your requirements.

 post_max_size = 1024M upload_max_filesize = 1024M max_execution_time = 3600 max_input_time = 3600 memory_limit = 1024M 

Note. Change these values โ€‹โ€‹carefully. These values โ€‹โ€‹will affect all your projects on this server.

Now, if all of the above solutions do not work, kindly check the phpmyadmin.conf file. If you use WAMP, you can find the file in "C: \ wamp64 \ alias" .

You must change the values โ€‹โ€‹below.

The values โ€‹โ€‹are already in the file -

  php_admin_value upload_max_filesize 128M php_admin_value post_max_size 128M php_admin_value max_execution_time 360 php_admin_value max_input_time 360 

Change code above -

 # php_admin_value upload_max_filesize 128M # php_admin_value post_max_size 128M # php_admin_value max_execution_time 360 # php_admin_value max_input_time 360 

Now just restart the server to work with the changed values. :)

+4
source

We need to increase the maximum file size in the php.ini file . By default, the upload_max_filesize parameter is set to 2 MB in XAMPP

To solve this problem:

  • We need to find where the php.ini file is located. in Xampp, it is located in C: \ xampp \ php .

  • Open the php.ini file , find "upload_max_filesize" and replace 2M (2 megabyte value) with a higher value, say 50M.

edit : upload_max_filesize =2M

to : upload_max_filesize =50M

  • Restart Apache for the changes to take effect.
+3
source

All Articles