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

前端 未结 12 2069
醉话见心
醉话见心 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:31

    As pointed out, the php --ini command will tell you where PHP is expecting to find the php.ini file.

    For a standard installation, it's likely to be looking for /etc/php.ini

    If you've used macports then PHP may be looking for /opt/local/etc/php5/php.ini

提交回复
热议问题