Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

all .ini files are empty #14

Open
ehough opened this issue May 24, 2013 · 3 comments
Open

all .ini files are empty #14

ehough opened this issue May 24, 2013 · 3 comments

Comments

@ehough
Copy link

ehough commented May 24, 2013

I am having a problem similar to this issue. Here's my config:

php::module { [ 'mysql', 'memcached' ]:
    notify => Service['apache2']
}

But when I look at the actual .ini files...

$ ls /etc/php5/conf.d/
-rw-r--r-- 1 root root    0 May 24 14:10 memcached.ini
-rw-r--r-- 1 root root    0 May 24 14:10 mysql.ini

they're empty :/ Here are some relevant log entries from provisioning:

Notice: /File[/etc/php5/conf.d/xdebug.ini]/ensure: removed
Notice: /File[/etc/php5/conf.d/apc.ini]/ensure: removed
Notice: /Stage[main]/Wix::Php/Php::Module[mysql]/File[mysql.ini]/ensure: created
Notice: /Stage[main]/Wix::Php/Php::Module[memcached]/File[memcached.ini]/ensure: created

What am I doing wrong? Thanks!

@xiaoruoruo
Copy link

I'm having the same problem. The modules defined using php::module are not enabled.

@Tombar
Copy link

Tombar commented Jul 29, 2013

The module removes all unmanaged files and since default source is not looking for the actual ini file, i'm passing the source myself

php::module { 'mysql':
  require => Package['php5-fpm'],
  notify  => Class['php::fpm::service'],
  source  => '/etc/php5/mods-available/mysql.ini'
}

@Cethy
Copy link

Cethy commented Aug 2, 2013

Same problem here.
@Tombar : Is this the way we must follow ? It will be a pain to do this for all our php modules. :/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants