My Changes to the Configuration Files Are Gone When I Restart the Servers

When you restart the servers in MAMP PRO, all configuration files (such as httpd.confnginx.confphp.inimy.cnf, etc.) are recreated from templates. Any changes made directly to these configuration files will be lost upon restarting the servers.

To preserve your changes, you must modify the templates instead. You can access these templates through the MAMP PRO menu: "File > Open Template".

Be careful when editing the templates, as errors in the template files may prevent the servers from starting properly.