Xebra Apache Module Windows

About | Installation | Documentation | Tutorials | Frequently Asked Questions

How to compile mod_xebra on windows (under construction)

  • Get apache source 2.2.11 for windows and extract
  • Load the apache project into VS (for VS2008 you need to do a conversion of the project files, ask google about 'cvtdsp.pl')
  • Add project mod_xebra to apache solution
  • Select dependencies for mod_xebra: libapr, libaprutil, libhttpd
  • Depending on where you extracted apache source, you have to adapt the additional includes property of the xebra_mod project
  • Build mod_xebra

If you compiled with Visual Studio 2008, mod_xebra will depend on msvcr90d.dll. If you want to avoid that you can either compile with a previous version of VC or:

  • Install Microsoft Windows SDK 6.0
  • Set APACHE_SRC env var (you need to have compiled the apache libs)
  • Open the SDK 6.0 Cmd Shell, browse to the mod_xebra folder and type
cl.exe /Od /I "%APACHE_SRC%\srclib\apr-util\include" /I "%APACHE_SRC%\srclib\apr\include" /I "%APACHE_SRC%\include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_WINDLL" /FD /EHsc /MT /W3 /c mod_xebra.c
link.exe /OUT:"mod_xebra.so" /DLL /DYNAMICBASE /NXCOMPAT /MANIFEST /MANIFESTFILE:"mod_xebra.so.intermediate.manifest"  /SUBSYSTEM:WINDOWS ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "%APACHE_SRC%\debug\libhttpd.lib" "%APACHE_SRC%\srclib\apr\debug\libapr-1.lib" "%APACHE_SRC%\srclib\apr-util\debug\libaprutil-1.lib" "mod_xebra.obj"