Where is PHP.ini in Mac OS X Lion? Thought it was in /usr/local/php5/lib

前端 未结 12 2284
醉话见心
醉话见心 2020-11-29 15:13

I wanted to run some PHP right on my Mac, uncommented httpd.conf, activated web sharing, installed MySQL etc. I can\'t seem to find my PHP files, most importantly, PHP.ini.<

12条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 15:46

    To locate the ini file on your machine, open Terminal.app and run the following command:

    php --ini
    

    If you need a template for Lion, try this.

提交回复
热议问题