Enabling apache worker MPM causes start failure with message about PHP

Solution Verified - Updated -

Issue

  • Modified the file /etc/sysconfig/httpd and removed the comment before "HTTPD=/usr/sbin/httpd.worker"
  • When the httpd service is started you will see the following:

    # service httpd start
    Starting httpd: [crit] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
    

Environment

  • Red Hat Enterprise Linux
    • Apache

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.