我要疯了:错误:没有加载配置文件'/private/etc/php-fpm。相依的家酿

时间:2021-10-30 07:33:07

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...

我成功地将php54安装到fpm,并将mysql安装到我的系统上。然而,当我试图通过在终端运行php-fpm启动服务器时,我得到了一个错误提示…

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.

但是,我的php-fpm。conf文件位于这个目录中:/usr/local/etc/php/5.4/php- fpm.comf。我不知道在这一点上该怎么做。我要疯了,可以在那里帮忙。谁能告诉我正确的方向。我正在运行最新版本的Mountain Lion,并安装了最新的命令行工具。

1 个解决方案

#1


3  

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"

php-fpm二进制文件期望php-fpm。当它启动时,conf文件读取配置。默认情况下,在Max OSX上,这个文件被命名为“/private/etc/php-fpm.conf.default”更改/复制到“php-fpm”。从“php-fpm.conf.default”之“

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

And then restart the service

然后重新启动服务。

#1


3  

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"

php-fpm二进制文件期望php-fpm。当它启动时,conf文件读取配置。默认情况下,在Max OSX上,这个文件被命名为“/private/etc/php-fpm.conf.default”更改/复制到“php-fpm”。从“php-fpm.conf.default”之“

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

And then restart the service

然后重新启动服务。