Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import file in MAMP(file size exceeded the maximum size permitted)

Tags:

php

mysql

mamp

I want to import a file(85 MB) at my local server.

I changed in the php.ini the following values of the three variables (upload_max_filesize, memory_limit and post_max_size) exactly as I saw at same problems, with the right order, I restarted my MAMP server and my laptop but it didn't change anything and I can't import files more than 2 MB.

Can you give any advise to fix it ?

like image 927
George Kiritsis Avatar asked May 18 '17 14:05

George Kiritsis


People also ask

How do I increase max upload size in Mamp?

Fortunately, configuring MAMP to increase its upload size is simple. All you have to do is update three directives within your local php. ini file: memory_limit , post_max_size , and upload_max_filesize .


2 Answers

Once you find out which version of PHP your MAMP is running, find the php.ini file at C:\MAMP\conf\php7.2.10\php.ini.

You'll need to change BOTH upload_max_filesize and post_max_size. If you only update the first, it'll default to the post_max_size.

Restart the MAMP and you should be good to go.

like image 189
Luke Avatar answered Nov 08 '22 20:11

Luke


You need to edit the php.ini file for the php version you are using. i.e. v7.2.1. First check which version you're using by going to

MAMP-> Preferences -> PHP -> Select/Specify PHP Version

Then go to /Applications/MAMP/bin/php/php7.2.10/conf/php.ini and input the new settings there.

Stop your server and restart MAMP. Import should now run as expected.

Cheers.

like image 23
Double Xx Design Avatar answered Nov 08 '22 21:11

Double Xx Design