0

I am trying to install mod_wsgi.so 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 mod_wsgi.so in Apache i get the error:

mod_wsgi.so: undefined symbol: ap_close_listeners ---

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

Gabriel Solomon
  • 126
  • 3
  • 13

1 Answers1

1

The mod_wsgi.so 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.

Graham Dumpleton
  • 6,090
  • 2
  • 21
  • 19
  • it was compiled on the same machine as the apache. i tried the latest mod_wsgi – Gabriel Solomon Jun 08 '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 09 '11 at 07: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 09 '11 at 07: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 09 '11 at 14:59
  • upgraded to apache2.2 and it seem to work – Gabriel Solomon Jun 09 '11 at 20:20