Setting Environment Variables in MAMP?

前端 未结 7 1959
孤城傲影
孤城傲影 2020-12-05 00:34

I assume that MAMP environment variables can be set in ~/.bash_profile, but it seems that setting them there does not always take effect right away. For instance, I just set

7条回答
  •  情话喂你
    2020-12-05 01:25

    If you still can't get your environment variables:

    you may need to edit your real httpd.conf in

    ~/Library/Application Support/appsolute/MAMP PRO/

    instead of

    /Applications/MAMP/conf/apache/

    Also you may need to use getenv() instead of $_ENV

提交回复
热议问题