dpl22899 2014-12-31 22:44
浏览 308

我要疯狂:错误:无法加载配置文件'/private/etc/php-fpm.conf'homebrew

I was able to successfully install php54 with fpm and with mysql onto my system. However, when I try to start the server by running php-fpm in terminal I get an error saying...

1.ERROR: failed to open configuration file '/private/etc/php-fpm.conf': No such file or directory (2)

2.ERROR: failed to load configuration file '/private/etc/php-fpm.conf'

3.ERROR: FPM initialization failed

However, my php-fpm.conf file is located in this directory: /usr/local/etc/php/5.4/php-fpm.conf. I'm not really sure what to do at this point. I'm going crazy and could use help out there. Can anyone point me in the right direction. I am running the latest version of Mountain Lion and have installed the latest command line tools.

  • 写回答

1条回答

  • douxian6086 2015-01-02 23:34
    关注

    The php-fpm binary expects php-fpm.conf file to read the configuration when it starts up. On Max OSX by default this file is named as "/private/etc/php-fpm.conf.default" Change/copy it to "php-fpm.conf" from "php-fpm.conf.default"

    cp /private/etc/php-fpm.conf.default /private/etc/php-fpm.conf
    

    And then restart the service

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器