Below you will find pages that utilize the taxonomy term “配置”
Posts
Mac OS X 10.9 自带 php-fpm 的配置使用和扩展安装
Mac OS X 10.9 自带有 php-fpm,本文把预装的 php-fpm 配置起来。
直接运行,有报错找不到配置文件。
$ php-fpm [11-Jan-2014 16:03:03] ERROR: failed to open configuration file '/private/etc/php-fpm.conf': No such file or directory (2) [11-Jan-2014 16:03:03] ERROR: failed to load configuration file '/private/etc/php-fpm.conf' [11-Jan-2014 16:03:03] ERROR: FPM initialization failed 可以在 /private/etc/ 目录下生成配置文件,需要 root 权限(sudo) 或者在普通用户有权限的目录里放置配置文件,通过 --fpm-config 参数指定配置文件的位置,如下:
$ cp /private/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf $ php-fpm --fpm-config /usr/local/etc/php-fpm.conf [11-Jan-2014 16:10:49] ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2) [11-Jan-2014 16:10:49] ERROR: failed to post process the configuration [11-Jan-2014 16:10:49] ERROR: FPM initialization failed 错误信息显示:不能正确的打开”日志“文件,原因是默认在 /usr/var 目录下工作,可以修改配置文件指定正确的日志文件路径。修改 /usr/local/etc/php-fpm.