Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-10899

puppetlabs-apache : php_module renamed in PHP 8, breaking ::mod::php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: apache
    • Labels:
    • Environment:

       

       

    • Template:
      MODULES Bug Template
    • Method Found:
      Needs Assessment
    • Zendesk Ticket IDs:
      43062
    • Zendesk Ticket Count:
      1
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: puppetlabs-apache
      Puppet Version: 5.5.22; reproducible with Puppet 6+
      OS Name/Version: Debian 10; reproducible in CentOS/RHEL 7.x

      When enabling php8.0, an apache restart fails with the following error: 

      apachectl[22524]: apache2: Syntax error on line 40 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php8.0.load: Can't locate API module structure `php8_module' in file /usr/lib/apache2/modules/libphp8.0.so: /usr/lib/apache2/modules/libphp8.0.so: undefined symbol: php8_module

      Desired content of: /etc/apache2/mods-available/php8.0.load
      LoadModule php_module /usr/lib/apache2/modules/libphp8.0.so

      Actual content of: /etc/apache2/mods-available/php8.0.load
      LoadModule php8_module /usr/lib/apache2/modules/libphp8.0.so

      LOG output:

      Notice: /Stage[main]/Apache::Mod::Php/Apache::Mod[php8.0]/File[php8.0.load]/content: 

       

      Notice: /Stage[main]/Apache::Mod::Php/Apache::Mod[php8.0]/File[php8.0.load]/content: content changed '{md5}e757f25f1307bedb6970b1f265baf6f8' to '{md5}31e01b1ec027e4e9978aa58bf16ca47c' (corrective)

      Info: /Stage[main]/Apache::Mod::Php/Apache::Mod[php8.0]/File[php8.0.load]: Scheduling refresh of Class[Apache::Service]

      Notice: /Stage[main]/Apache::Mod::Php/Apache::Mod[php8.0]/File[php8.0.load symlink]/target: target changed '../mods-available/php8.0.load' to '/etc/apache2/mods-available/php8.0.load' (corrective)

      Info: /Stage[main]/Apache::Mod::Php/Apache::Mod[php8.0]/File[php8.0.load symlink]: Scheduling refresh of Class[Apache::Service]

      Notice: /Stage[main]/Apache::Mod::Php/Apache::Mod[php8.0]/File[php8.0.conf symlink]/target: target changed '../mods-available/php8.0.conf' to '/etc/apache2/mods-available/php8.0.conf' (corrective)

      Info: /Stage[main]/Apache::Mod::Php/Apache::Mod[php8.0]/File[php8.0.conf symlink]: Scheduling refresh of Class[Apache::Service]

      Notice: /Stage[main]/Profile::Webservers::Staging/Package[php8.0-pdo]/ensure: created (corrective)

      Notice: /Stage[main]/Profile::Webservers::Staging/Package[php8.0-tokenizer]/ensure: created (corrective)

      Info: Class[Apache::Service]: Scheduling refresh of Service[httpd]

      Error: /Stage[main]/Apache::Service/Service[httpd]: Failed to call refresh: Systemd restart for apache2 failed!

      journalctl log for apache2:

          • Logs begin at Wed 2020-12-16 19:46:01 CET, end at Sat 2020-12-19 14:46:13 CET. --*

      Dec 19 14:45:43 web-staging systemd[1]: Starting The Apache HTTP Server...

      Dec 19 14:45:44 web-staging systemd[1]: Started The Apache HTTP Server.

      Dec 19 14:46:13 web-staging systemd[1]: Stopping The Apache HTTP Server...

      Dec 19 14:46:13 web-staging apachectl[22524]: apache2: Syntax error on line 40 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php8.0.load: Can't locate API module structure `php8_module' in file /usr/lib/apache2/modules/libphp8.0.so: /usr/lib/apache2/modules/libphp8.0.so: undefined symbol: php8_module

      Dec 19 14:46:13 web-staging apachectl[22524]: Action 'stop' failed.

      Dec 19 14:46:13 web-staging apachectl[22524]: The Apache error log may have more information.

      Dec 19 14:46:13 web-staging systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE

      Dec 19 14:46:13 web-staging systemd[1]: apache2.service: Failed with result 'exit-code'.

      Dec 19 14:46:13 web-staging systemd[1]: Stopped The Apache HTTP Server.

      Dec 19 14:46:13 web-staging systemd[1]: Starting The Apache HTTP Server...

      Dec 19 14:46:13 web-staging apachectl[22529]: apache2: Syntax error on line 40 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php8.0.load: Can't locate API module structure `php8_module' in file /usr/lib/apache2/modules/libphp8.0.so: /usr/lib/apache2/modules/libphp8.0.so: undefined symbol: php8_module

      Dec 19 14:46:13 web-staging apachectl[22529]: Action 'start' failed.

      Dec 19 14:46:13 web-staging apachectl[22529]: The Apache error log may have more information.

      Dec 19 14:46:13 web-staging systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE

      Dec 19 14:46:13 web-staging systemd[1]: apache2.service: Failed with result 'exit-code'.

      Dec 19 14:46:13 web-staging systemd[1]: Failed to start The Apache HTTP Server.

       

      Error: /Stage[main]/Apache::Service/Service[httpd]: Systemd restart for apache2 failed!

      journalctl log for apache2:

          • Logs begin at Wed 2020-12-16 19:46:01 CET, end at Sat 2020-12-19 14:46:13 CET. --*

      Dec 19 14:45:43 web-staging systemd[1]: Starting The Apache HTTP Server...

      Dec 19 14:45:44 web-staging systemd[1]: Started The Apache HTTP Server.

      Dec 19 14:46:13 web-staging systemd[1]: Stopping The Apache HTTP Server...

      Dec 19 14:46:13 web-staging apachectl[22524]: apache2: Syntax error on line 40 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php8.0.load: Can't locate API module structure `php8_module' in file /usr/lib/apache2/modules/libphp8.0.so: /usr/lib/apache2/modules/libphp8.0.so: undefined symbol: php8_module

      Dec 19 14:46:13 web-staging apachectl[22524]: Action 'stop' failed.

      Dec 19 14:46:13 web-staging apachectl[22524]: The Apache error log may have more information.

      Dec 19 14:46:13 web-staging systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE

      Dec 19 14:46:13 web-staging systemd[1]: apache2.service: Failed with result 'exit-code'.

      Dec 19 14:46:13 web-staging systemd[1]: Stopped The Apache HTTP Server.

      Dec 19 14:46:13 web-staging systemd[1]: Starting The Apache HTTP Server...

      Dec 19 14:46:13 web-staging apachectl[22529]: apache2: Syntax error on line 40 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php8.0.load: Can't locate API module structure `php8_module' in file /usr/lib/apache2/modules/libphp8.0.so: /usr/lib/apache2/modules/libphp8.0.so: undefined symbol: php8_module

      Dec 19 14:46:13 web-staging apachectl[22529]: Action 'start' failed.

      Dec 19 14:46:13 web-staging apachectl[22529]: The Apache error log may have more information.

      Dec 19 14:46:13 web-staging systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE

      Dec 19 14:46:13 web-staging systemd[1]: apache2.service: Failed with result 'exit-code'.

      Dec 19 14:46:13 web-staging systemd[1]: Failed to start The Apache HTTP Server.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sheena Sheena Tharakanparampil
              Reporter:
              wouterbakker Wouter Bakker
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support