Where does MAMP keep its php.ini?

前端 未结 15 2297
一个人的身影
一个人的身影 2020-11-27 12:23

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:



        
相关标签:
15条回答
  • 2020-11-27 13:18

    After running the MAMP server, you have php info link in toolbar Once click, You will get all information about php

    0 讨论(0)
  • 2020-11-27 13:19

    Note: If this doesn't help, check below for Ricardo Martins' answer.


    Create a PHP script with <?php phpinfo() ?> in it, run that from your browser, and look for the value Loaded Configuration File. This tells you which php.ini file PHP is using in the context of the web server.

    0 讨论(0)
  • 2020-11-27 13:19

    Probably the fastest way to access the PHP.ini for the currently loaded version of PHP in MAMP PRO (v.4.2.1):

    1. Open MAMP Pro
    2. Click on "PHP" under the "Languages" section on the sidebar
    3. Tap on the arrow button right next to the drop-down that lets you select the "Default Version" of PHP.
    0 讨论(0)
提交回复
热议问题