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 am trying to install on my VPS runninr Centors 5.21. I installed python 2.6 and compiled mod_wsgi. It all worked with ought an error. When i include the in Apache i get the error: undefined symbol: ap_close_listeners ---

I searched google with no luck. Any ideas? Tnx.

share|improve this question
up vote 1 down vote accepted

The was compiled against a more recent version of Apache develelopment package than the version of Apache you are deploying to. Ensure that the core Apache package and development package version that you are compiling against are for the same version of Apache and you should be fine. Also ensure you are using most recent mod_wsgi version.

share|improve this answer
it was compiled on the same machine as the apache. i tried the latest mod_wsgi – Gabriel Solomon Jun 8 '11 at 19:18
But are the apache core and dev packages you have installed the same version? Linux distributions split the two. The core package contains the Apache binary and the dev package the header files. The versions of each package need to be the same. Ensure you do an update of the core package to pick up latest in case it is an older version that doesn't have the ap_close_listeners() function as part of it. – Graham Dumpleton Jun 9 '11 at 7:24
Specifically, the ap_close_listeners() function only became part of Apache back in 2005-11-15. So a very long time ago. The Apache header files you are compiling against though are for a version of Apache newer than that date. – Graham Dumpleton Jun 9 '11 at 7:26
how can i check the apache core and dev? I know the apache running on this machine is 2.0.63 – Gabriel Solomon Jun 9 '11 at 14:59
upgraded to apache2.2 and it seem to work – Gabriel Solomon Jun 9 '11 at 20:20

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.