Skip to content

PHP module not working on Ubuntu 22.04 / Jammy #2259

@src386

Description

@src386

Describe the Bug

The module tries to install libapache2-mod-php7.2 which is not available on Ubuntu 22.04 / Jammy.

Expected Behavior

Use libapache2-mod-php8.1 instead.

Steps to Reproduce

Steps to reproduce the behavior:

  • Code example:
class { 'apache':
    mpm_module => 'prefork',
  }

class { 'apache::mod::php': }
  • Results:
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libapache2-mod-php7.2' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libapache2-mod-php7.2
E: Couldn't find any package by glob 'libapache2-mod-php7.2'
E: Couldn't find any package by regex 'libapache2-mod-php7.2'
Error: /Stage[main]/Apache::Mod::Php/Apache::Mod[php7.2]/Package[libapache2-mod-php7.2]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libapache2-mod-php7.2' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libapache2-mod-php7.2
E: Couldn't find any package by glob 'libapache2-mod-php7.2'
E: Couldn't find any package by regex 'libapache2-mod-php7.2'
Notice: /Stage[main]/Apache/File[/etc/apache2/conf.d]: Dependency Package[libapache2-mod-php7.2] has failures: true

Environment

  • Module version: 7.0.0
  • Puppet version 6.27.1
  • Platform: Ubuntu 22.04

Additional Context

The proper package for Ubuntu 22.04 should be libapache2-mod-php8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions