Hi comport3,

would you be interested to contribute this change to the main apache module
<https://github.com/puppetlabs/puppetlabs-apache> for the benefit of
everyone? If you never have contributed to a public module before check out
David Swan's talk from Puppetize Live:
https://www.youtube.com/watch?v=jIVFq4ZS3_M as a starter.

Cheers, David



On Fri, Oct 19, 2018 at 4:36 AM comport3 <compo...@gmail.com> wrote:

> OK I have managed to debug this one.
>
> It only seems to apply when using mpm_module: prefork with cgid and/or php
>
> There is a fix to the Apache module as follows:
>  Bump the $php_version in params.pp from 7.0 to 7.2 on line 268
>
> Add this section beneath the preceding logic around line 85/86 in mpm.pp:
>       if $mpm == 'prefork' and $::operatingsystem == 'Ubuntu' and
> $::operatingsystemrelease == '18.04' {
>         # workaround
> https://bugs.launchpad.net/ubuntu/+source/mpm-itk/+bug/1286882
>         # https://bugs.launchpad.net/ubuntu/+source/php7.2/+bug/1771934
>         # https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1782806
>         exec {
>           '/usr/sbin/a2dismod mpm_event':
>             onlyif  => '/usr/bin/test -e
> /etc/apache2/mods-enabled/mpm_event.load',
>             require => Package['httpd'],
>             before  => Package['libapache2-mod-php7.2'],
>         }
>
> Hopefully this helps someone in the future.
>
> On Thursday, October 18, 2018 at 7:43:55 PM UTC+11, comport3 wrote:
>>
>> Hi All,
>>
>> When testing the latest version of ' puppetlabs-apache', in default mode
>> and settings on Ubuntu 18.04 it works fine.
>>
>> When changing the mpm + php + cgi it all ends in tears when the PHP
>> version mysteriously tries to go from 7.2 (available and default on OS) to
>> 7.0.
>>
>> Ala -
>> ```
>> class { 'apache':
>>   mpm_module => 'prefork'
>> }
>> include ::apache::mod::cgi
>> include ::apache::mod::php
>> ```
>>
>> Any ideas how to override the 7.0 value and get 7.2?
>>
>> If not, how to submit a bug request for the module?
>>
>> Neither of these entries in Hiera did anything useful -
>> apache::params::phpXXX: libapache2-mod-php7.2
>> apache::params::php_version: 7.2
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/f3cffaf4-dd68-4c4b-ae87-9398ce0d3d19%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/f3cffaf4-dd68-4c4b-ae87-9398ce0d3d19%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Cheers, David

https://twitter.com/dev_el_ops

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CALF7fHav6UEVcT1pLiuYws%3DN8J4grPB5-EkB6szdVZ8F6tJA5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to