Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Could not find command 'php5enmod' #112

Open
SoldierCorp opened this issue Apr 24, 2016 · 1 comment
Open

Could not find command 'php5enmod' #112

SoldierCorp opened this issue Apr 24, 2016 · 1 comment

Comments

@SoldierCorp
Copy link

SoldierCorp commented Apr 24, 2016

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!

@alvagante
Copy link
Member

What operating system and version are you using?

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

2 participants