如何在厨师食谱中为php-fpm编辑`www.conf`?

By using Berkshelf I'm installing php-fpm.

And I want to comment out following lines in /etc/php-fpm.d/www.conf:

;listen.owner = www-data
;listen.group = www-data

But I couldn't find where should I edit in cookbooks/php-fpm directory. And I don't know if it is ok to edit files directly that is created by Berkshelf automatically.

Where and how can I reflect that change?

Edit

The problem is there is no www.conf in php-fpm template. I think this file is somehow generated dynamically. Does anyone know how the file www.conf generated?

This is the result of find.

find . -name '*.conf.*'
./templates/default/pool.conf.erb
./templates/default/php-fpm.conf.erb
查看全部
donglin6109
donglin6109
2014/08/20 09:41
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复