开发者

How should I create a new php.ini for MAC OSx?

I'm new to PHP development so I'm not sure how I should go about creating a PHP.ini file from scratch. It seems that although PHP 5 is preinstalled on this operating system the php.ini does not exist by default. I am installing the APC extensions and I need to load them via the php.ini configuration file.

Is there a template or somethi开发者_开发问答ng that I should use? Or can I just create a new php.ini and add the section that I am interested in?

Thanks!


The php.ini does exist as it's a defalt php config file, however it needs to be renamed to be useable, it should appear as php.ini.default and you need to be logged in as root user to rename it or just open the file, copy the contents within and paste it in a new file, name it php.ini and save in the same directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜