Invalid command php_value error in Apache HTTPD

Solution Verified - Updated -

Issue

  • Apache httpd not starting after leapp upgrade:

    ● httpd.service - The Apache HTTP Server
       Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Mon 2024-01-01 00:00:00 GMT; 3s ago
         Docs: man:httpd.service(8)
      Process: 3882 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
     Main PID: 3882 (code=exited, status=1/FAILURE)
       Status: "Reading configuration..."
    
    Jan 01 00:00:00 hostname systemd[1]: Starting The Apache HTTP Server...
    Jan 01 00:00:00 hostname httpd[3882]: AH00526: Syntax error on line 32 of /etc/httpd/conf.d/php.conf:
    Jan 01 00:00:00 hostname httpd[3882]: Invalid command 'php_value', perhaps misspelled or defined by a module
    Jan 01 00:00:00 hostname systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
    Jan 01 00:00:00 hostname systemd[1]: httpd.service: Failed with result 'exit-code'.
    Jan 01 00:00:00 hostname systemd[1]: Failed to start The Apache HTTP Server.
    

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Red Hat Software Collections (RHSCL)
  • Apache Web Server (HTTPD)
    • php-fpm
    • mod_php

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content