How do you change php.ini values in MAMP Pro?
NickName:Andrew Ask DateTime:2016-06-15T10:07:58

How do you change php.ini values in MAMP Pro?

MAMP Pro has separate php.ini files for each PHP version but when I edit the file and restart the server nothing has actually changed.

Specifically I'm trying to change PHP upload values:

post_max_size = 256M
upload_max_filesize = 256M
max_execution_time = 300
max_input_time = 300
memory_limit = 512M

But I have tried changing other php.ini values as a test but those changes aren't respected by PHP either.

Copyright Notice:Content Author:「Andrew」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37824946/how-do-you-change-php-ini-values-in-mamp-pro

Answers
Andrew 2016-06-15T02:07:58

It turns out that browsing to the files and editing them directly is not the best way, you should use MAMP's built-in Template Editor.\n\nYou can turn this on by going to:\n\nFile > Edit Template > PHP > The PHP version you're running\n\nIf you can't see the File menu at all, it could be that you have the Hide Dock Icon preference set. In this case you'll need to uncheck that preference, restart MAMP, then use the template editor to tweak my php.ini file, save, restart Apache, done!",


More about “How do you change php.ini values in MAMP Pro?” related questions

How do you change php.ini values in MAMP Pro?

MAMP Pro has separate php.ini files for each PHP version but when I edit the file and restart the server nothing has actually changed. Specifically I'm trying to change PHP upload values: post_ma...

Show Detail

Change the php.ini file MAMP Pro uses?

Can I change the php.ini file MAMP Pro uses? By default, MAMP Pro uses this php.ini: Configuration File (php.ini) Path /Applications/MAMP/bin/php/php7.4.2/conf Is there a way to use: Configuration

Show Detail

MAMP Pro on Windows, edit php.ini

I just installed MAMP Pro on a Windows 10 machine but I can't seem to update my php.ini file correctly. I set the php version to 5.6.0 and then found the php.ini file (C://MAMP/conf/php5.6.0/php.i...

Show Detail

Change MAMP PRO Path to Configuration File

I am running MAMP PRO 2.1.1 on a MAC using OS 10.7.4 (Lion). How do I change the path to the configuration (php.ini) file so that it is the same as the path to the installed Configuration file?

Show Detail

Set PHP path correctly for MAMP Pro

MAMP Pro makes you edit a php.ini template through the application and it creates the file in /Library/Application Support/appsolute/MAMP PRO/conf/php.ini each time MAMP Pro is started. How do I ge...

Show Detail

Use MAMP Pro php.ini instead of OSX php

I'm having a problem running a command in php using APC in my mac. In the MAMP Pro i have it on but looks like my mac is not using MAMP's php but using osx'. Any idea about how to tell my mac to ...

Show Detail

php.ini resetting on MAMP server restart

I am trying to change display_errors = Off to display_errors = On in my php.ini. I ran phpinfo() and verified the Loaded Configuration File (it is located here: /Library/Application Support/appsolute/

Show Detail

php.ini resetting on MAMP server restart

I am trying to change display_errors = Off to display_errors = On in my php.ini. I ran phpinfo() and verified the Loaded Configuration File (it is located here: /Library/Application Support/appsolute/

Show Detail

How I change the max_input_vars in MAMP?

When I send a form by POST, shows me this error: "Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini." I followed the instructions in this link: http://

Show Detail

MAMP 3 not restarting after php.ini change

Every time I make a change to php.ini through FILE > EDIT TEMPLATE > PHP > appropriate ini file, MAMP won't restart. I try using terminal to quit apache and mysql but it makes no difference and tel...

Show Detail