Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a CentOS 5.8 server with Apache2.4 and I want to install mod x-sendfile.

I've uploaded the c file to the server and according to the instructions I should run:

apxs2 -cia mod_xsendfile.c

I tried that but it seems that I don't have apxs2. I do have apxs under /usr/sbin/apxs.

What should I do? should I use apxs or should I get somehow apxs2?

share|improve this question
up vote 4 down vote accepted

CMIIW How do you install apache 2.4 ?, as default Centos 5 using apache 2.2, if you install httpd-devel via YUM/RPM you would see /usr/bin/apxs binary (

if you're compile from source, the apxs should be installed on $PREFIX/bin/apxs. some distribution (like ubuntu/debian), you're able to install httpd v1 and httpd v2, maybe it's use to differentiate between apache (apxs) and apache2 (apxs2).

if you're sure the apxs comes from httpd version that you use, just use apxs instead.

share|improve this answer
Just a note to say that to install httpd-devel via yum it would be: yum install httpd-devel – DaveG Oct 5 '12 at 13:24
Been at this for so long, totally saved me with the $PREFIX/bin/apxs.... thanks! And @DaveG, yum install httpd-devel for Centos 6 only installed stuff for httpd 2.2 not 2.4. – jth_92 Jan 28 '15 at 18:30

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.