Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'm going CRAZY: ERROR: failed to load configuration file '/private/etc/php-fpm.conf' homebrew

Tags:

php

macos

nginx

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.

like image 476
brian Scroggins Avatar asked Dec 31 '14 22:12

brian Scroggins


1 Answers

The php-fpm binary expects php-fpm.conf file to read the configuration when it starts up. On Mac 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

like image 50
dev0z Avatar answered Nov 11 '22 03:11

dev0z