-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'20-apc.ini' formatted ini files #32
Comments
Patch on master branch (patch-php_module_ini-filename-param.diff):
|
Are most/many files using a single prefix number? Because it could be simpler if params.pp specified that default prefix for Debian, with the ability to override it when a different value is needed, and disabled the feature for RedHat. |
Hi thias, it is not a fixed prefix. The number indicates the priority so has a meaning. See http://superuser.com/questions/564995/what-is-the-php-config-ini-files-prefix-good-for for some more info. |
Hi @basvanmeurs, which version of Debian are you using? According to the file list for php-apc package, on squeeze the file path is See https://packages.debian.org/squeeze/amd64/php-apc/filelist and https://packages.debian.org/wheezy/amd64/php-apc/filelist |
On debian, the ini files are named as '20-apc.ini' (they have a priority number).
When using your module, files are always created as 'apc.ini' and there is no way to change this.
Example:
php::module::ini { 'apc':
settings => {
'apc.enabled' => '1',
'apc.shm_segments' => '1',
'apc.shm_size' => '128M',
}
}
Produces '/etc/php5/conf.d/apc.ini'. Installing packaging php-apc already produced the file '/etc/php5/conf.d/20-apc.ini' with just the following line: extension=apc.so
Netto effect: 2 files in the config directory and messages such as "PHP Warning: Module 'apc' already loaded in Unknown on line 0" when running the php command.
Proposed solution: allow to specify the output ini filename.
The text was updated successfully, but these errors were encountered: