Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAMPP how to increase upload_max_filesize

I have installed XAMPP on Win 10. Actually I am trying to import sql file which has 11MB via PhpMyAdmin which throws me an error - Propably too big file... Before XAMPP I had my own instlation of Apache/PHP with .htaccess in the document root which solved this problem like a charm. Its content is

php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200

I have it there also for xampp, but I m not able to upload this file. Smaller files works fine. Also I change php.ini from phpinfo(). It makes me crazy... What a dark magic is behind the xampp?

like image 927
Čamo Avatar asked Oct 17 '25 08:10

Čamo


1 Answers

The issue is you have to find right path of your php.ini. First checkout path of php.ini by simple create php file with:

phpinfo();

Then find line with php.ini file and look on path, then edit this php.ini file with values:

max_uploaded_filesize

When you will update it don't forget to restart xamp web server.

like image 183
Kamil Avatar answered Oct 19 '25 20:10

Kamil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!