Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 am trying to install mod_wsgi on my VPS, but it won't work. This is what I am doing:

tar xzvf mod_wsgi-2.5.tar.gz
cd mod_wsgi-2.5

./configure --with-python=/opt/python2.5/bin/python

After I run the above command, I get this error:

checking for apxs2... no
checking for apxs... no
checking Apache version... ./configure: line 1298: apxs: command not found
./configure: line 1298: apxs: command not found
./configure: line 1299: /: is a directory

./configure: line 1461: apxs: command not found
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file:

Through some research I've discovered that I need to modify my command:

./configure --with-apxs=/usr/local/apache/bin/apxs \

But, /usr/local/apache/ doesn't exist, or so that's what it is telling me. If it doesn't exist, how do I create it with all the files needed, or if apache is located elsewhere on my VPS where would it be located?

I'd also like to mention that I ran a command to install apache before this entire deal:

yum install httpd

so I assumed that was all I needed but apparently not (I am very new at all this server administration stuff so please be gentle)

EDIT: This is the tutorial that I have been using to get this all set up:

I got stuck at the heading "Installing mod_wsgi"

Thanks for any help!

share|improve this question

mod_wsgi is in EPEL. Once configured, you will be able to install it via yum as well.

Edit: Direct link to instructions on adding the EPEL repo.

share|improve this answer
The reason I am doing this entire tutorial is because when I tried 'yum install mod_wsgi' it said that there was no package called mod_wsgi...I looked in the EPEL file list and there is 49 files that have mod_wsgi in their title... – jasonaburton Feb 15 '11 at 23:40
I have no idea how to install it..any suggestions? – jasonaburton Feb 15 '11 at 23:41
... Follow the link that says "How to use EPEL" on the page? – Ignacio Vazquez-Abrams Feb 16 '11 at 2:46

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.