title: How to enable PHP5 module using Puppet Apache2 module
body: <p>I am using this Apache2 handling Puppet module </p>
  
  <p><a href="https://forge.puppetlabs.com/puppetlabs/apache" rel="noreferrer">https://forge.puppetlabs.com/puppetlabs/apache</a></p>
  
  <p>When I execute the following code, it successfully installs the virtual host, but it never enables the PHP5 module for Apache2. How do I enable it?</p>
  
  <pre><code>class { 'apache': 
      mpm_module =&gt; 'prefork',
  }
  
  apache::vhost { 'mysite':
      ...
      xyz
      ...
  }
  
  apache::mod { 'php5': }
  </code></pre>
  
  <p>I also tried to replace the line with:</p>
  
  <pre><code>apache::mod { 'php': }
  </code></pre>
  
  <p>but that didn't help. The php5 module doesn't get enabled. I have to enable it manually by running <code>a2enmod php5</code>. The documentation doesn't say much about this. Thanks!</p>