Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPMyAdmin max upload size will not change, wrong php.ini file

I have recently reinstalled my server this time with WAMP, previously I was using XAMPP.

In phpmyadmin the max upload size for database files is at 2,048kb.

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

Is there some kind of environmental path variable etc that needs setting elsewhere?

What am I missing.

like image 453
imperium2335 Avatar asked Jan 17 '13 13:01

imperium2335


1 Answers

Put these in php.ini

upload_max_filesize = 10M
post_max_size = 10M

Or you can put these in .htaccess:

php_value upload_max_filesize 10M
php_value post_max_size 10M

Replace 10M with anything you want.

Extra: To find what php.ini is currently used, create a file in the web root, let's say info.php that contains <?php phpinfo();. Then access that file from your browser, and search for php.ini. This has to be done through the browser, from the command line you will see the php.ini used in cli.

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

like image 160
Vlad Preda Avatar answered Sep 17 '22 13:09

Vlad Preda