puppet-php icon indicating copy to clipboard operation
puppet-php copied to clipboard

Could not find command 'php5enmod'

Open SoldierCorp opened this issue 9 years ago • 1 comments

Hi!

I'm trying to configure php with nginx but I can't continue because I'm receiving the next errors:

==> myvm: Error: Could not find command 'php5enmod'
==> myvm: Error: /Stage[main]/MyVM::Webphp/Php::Mod[[xml, pdo, mcrypt, mbstring, fpm, tokenizer, pear, pecl-memcache, pecl-oauth, php5enmod mcrypt]]/Exec[php_mod_tool_[xml, pdo, mcrypt, mbstring, fpm, tokenizer, pear, pecl-memcache, pecl-oauth, php5enmod mcrypt]]/returns: change from notrun to 0 failed: Could not find command 'php5enmod'

I was using this puppet https://github.com/thias/puppet-php but since I need php 5.6 at least, I decided to try with this one and this my configuration.

  class myvm::webphp {

    class { 'php':
      service => 'nginx'
    }

    #include php::mod_php5 I was using this previously

    $module = hiera_array('myvm::webphp::modules') # [xml, pdo, mcrypt, ...]
    php::mod { "$module": }

  }

So, I don't know why is trying to set a module for apache when I'm using nginx but if still is necessary the php5mod, can you tell me what's line should I use to set that php5mod please.

Kind regards!

SoldierCorp avatar Apr 24 '16 12:04 SoldierCorp

What operating system and version are you using?

alvagante avatar Apr 29 '16 09:04 alvagante