Apache fail to start with the message 'starting httpd: /usr/sbin/httpd.worker: error while loading shared libraries'

Solution Verified - Updated -

Issue

  • Apache fail to start with the following messages:
Starting httpd: /usr/sbin/httpd.worker: error while loading shared libraries libpcre.so.0: cannot open shared object file: No such file or directory

OR

Starting httpd: /usr/sbin/httpd.worker: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: Permission denied
  • Many of the shared libraries has wrong selinux context

Environment

  • Red Hat Enterprise Linux
    • 5.x, 6.x, 7.x
  • RedHat JBoss Web Server
    • 2.x, 3.x

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