Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to install several Apache modules, which for some strange reason are not present in /etc/httpd/modules/ (including mod_deflate, mod_headers and mod_expires).

The strange part is that according to various sources, my CentOS server should have had these modules beforehand.

I'm under the impression that to install these modules, I need to rebuild Apache? I think I have EasyApache installed, so I should be able to use it.

Problem is, this is a production server, and I really, really have to limit downtime as well as have some guarantee of a first time success.

Any suggestions? Do I really have to go the EasyApache way?

Specs: Apache/2.2.17 (Cpanel::Easy::Apache v3.2.0 rev5291) | CentOS 5.7 (Final)

share|improve this question

1 Answer 1

On a nearby RHEL5 box, I got all these in the httpd rpm (httpd-2.2.3-11.el5)

A quick gooqle suggests you should be using httpd-2.2.3-53.el5. The contents (provides) includes these modules

So if the files are not on your machine, then someone has removed them. But reinstalling the rpm should fix the problem. Back up your current apache config, files and website then download the rpm and....

rpm -i --nodeps -notriggers --noscripts --replacepkgs httpd-sameversionasinstalled.rpm
share|improve this answer
httpd -l lists them, and I can even see their directives in httpd -G, I just don't know why using the directives in .htaccess files doesn't work. –  Christian Sep 22 '11 at 14:10
If they are listed by httpd -l, then this is not the Centos supplied httpd. Which means you have a whole heap of problems if you don't know how to manage the installation. –  symcbean Sep 22 '11 at 23:28
Yes they are listed there. As I get it, they are "built in" Apache... sigh –  Christian Sep 23 '11 at 0:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.