When selinux is in enforcing mode httpd fails to start

Solution Verified - Updated -

Issue

  • I see the following when starting Apache (httpd)
    # service httpd start
    Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libm.so.6: 
      cannot open shared object file: No such file or directory
  • I also see the following when I look for this library in /lib or /lib64
    ls -Z /lib|grep -i libm.so.6
    lrwxrwxrwx  root root system_u:object_r:file_t:s0      libm.so.6

Environment

  • Red Hat Enterprise Linux 5.x
  • selinux-policy-2.4.6-327.el5

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