php.ini resetting on MAMP server restart
NickName:themarkappleby Ask DateTime:2012-11-04T04:21:08

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/MAMP PRO/conf/php.ini).

Everytime I edit the display_errors value of this php.ini file and restart my MAMP server, the php.ini file seems to reset. If I open the php.ini file again after restarting MAMP it shows display_errors = Off.

Why might MAMP be resetting the php.ini file?

note - I'm using MAMP Pro if that makes a difference.

Copyright Notice:Content Author:「themarkappleby」,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/13213141/php-ini-resetting-on-mamp-server-restart

Answers
Dan Jackson 2013-03-17T16:06:08

The way I have done it was to change the template that MAMP Pro replaces your php.ini file with. In my case the ini file that PHP was loading was found at \n\n/Library/Application Support/appsolute/MAMP PRO/conf/php.ini\n\n\nbut everytime I changed it, MAMP Pro wrote over it with its own version. To change what I wanted to change in the php.ini file, I simply found the template:\n\n/Applications/MAMP PRO/MAMP PRO.app/Contents/Resources/php5.4.4.ini \n\n\n(PHP 5.4.4 is the version i'm using) and then I changed what I needed to change :D Hope this helps",


Peter Drinnan 2017-07-28T14:44:07

You can set php.ini values with the template editor in Mamp Pro. \n\nFile -> Edit Template -> PHP (php.ini)\n\nSelect the same version your instance is running. \n\nWhen you save the template Mamp will overwrite the php.ini file used for your instance and restart Apache.\n\n",


More about “php.ini resetting on MAMP server restart” related questions

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

Where does MAMP keep its php.ini?

I have recently got a mac an am not used to developing on a mac at all. I have MAMP Pro 1.9.6.1. I did a locate on php.ini and got this: $ locate php.ini /Applications/MAMP/conf/php5.2/php.ini /

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

MAMP Apache document root keeps resetting

I have MAMP setup on Windows for localhost development. And I'm pointing the Apache document root to a folder inside DropBox (for automatic backup of media files etc). It works great, but each ti...

Show Detail

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

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

MAMP config settings reset every time I restart

I'm running MAMP Pro v2.1.1 on OSX 10.8.5 I like to modify a couple settings for phpMyAdmin by modifying the settings in /Library/Application Support/absolute/MAMP PRO/phpMyAdmin/config.inc.php T...

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 ext mongo.so not loading. How to fix it?

I know there's multiple post about this, but I tried almost everything i found out .. My problem is that I'm trying to add mongo.so to my MAMP server. It compiles perfectly with the phpize of MAMP...

Show Detail