augeas icon indicating copy to clipboard operation
augeas copied to clipboard

php lens: missing loading of /etc/php-fpm.d/www.conf (remi repo)

Open qeepcologne opened this issue 2 years ago • 0 comments

php www.conf from remi repo (tried with php8.2 @ centos9, but pretty sure that location was the same on centos7/8 and php8.0/8.1) is under /etc/php-fpm.d/www.conf. I see that content of this file is not in augeas tree, then i checked imports and see only this:

/augeas/load/PHP/incl[2] = "/usr/local/zend/etc/php.ini"
/augeas/load/PHP/incl[3] = "/etc/php/*/fpm/pool.d/*.conf"
/augeas/load/PHP/incl[4] = "/etc/php*/fpm/pool.d/*.conf"
/augeas/load/PHP/incl[5] = "/etc/php.d/*.ini"
/augeas/load/PHP/incl[6] = "/etc/php.ini"
/augeas/load/PHP/incl[7] = "/etc/php/*/*/*.ini"
/augeas/load/PHP/incl[8] = "/etc/php*/*/*.ini"

This file is not included by default. If i add the incl/lens manually everything is fine

example (puppet):

augeas { "php/www.conf":
    context => "/files/etc/php-fpm.d/www.conf/www",
    incl    => "/etc/php-fpm.d/www.conf",
    lens    => "php.lns",
    changes => [
      "set listen.owner apache",
      "set listen.group apache",
      "set listen.mode 0660"
    ]
  }

please add location of this file, so that i can remove the incl + lens (to reuse the same code on el/remi and ubuntu/ondrej)

qeepcologne avatar Jan 02 '23 15:01 qeepcologne