centos4 httpd fails to start

April 26, 2005

As far as I remember, I did a basic install of CentOS on a test machine. I couldn’t start the web server though.
# service httpd start
Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Permission denied

In /var/log/messages I caught this message:
kernel: audit(1114555474.049:0): avc: denied { execute } for pid=2643 path=/usr/lib/libz.so. dev=dm-0 ino=379590 scontext=root:system_r:httpd_t tcontext=root:object_r:lib_t tclass=file

Apparently, SELinux was blocking access to the file. Since I am not terribly concerned with having SELinux on the box, I disabled it by changing SELINUX=enforced to SELINUX=disabled in /etc/selinux/config

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: