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 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.