Since the official wxJavaScript docs advocate using XAMPP for development, that’s what I got and that’s where I installed wxjs. Following the directions was pretty easy, but getting any meaningful output apart from Apache crashing was pretty hard. The error.log gave it away, albeit indirectly, and a quick glance at the wxjs newsgroups proved the point. So here’s my quick tutorial on how to get mod_wxjs running on XAMPP.

  1. Get and install XAMPP
  2. Place your wxjs folder (modules and bin) in the root XAMPP folder
  3. Open the xampp/apache/conf/httpd.conf file
  4. Scroll down to the very last LoadModule statement
  5. Insert the following:

    LoadModule wxjs_module “C:/xampp/wxjs/bin/mod_wxjs.dll”
    AddHandler wxjs .wxjs
    wxJS_Modules “C:/xampp/wxjs/bin/modules.xml”

  6. So far, so good! This is where the official docs are wrong with filenames. So, insert the following:

    LoadFile “C:/xampp/wxjs/bin/libapreq2.dll”
    LoadModule apreq_module “C:/xampp/wxjs/bin/mod_apreq2.so”
    LoadFile “C:/xampp/wxjs/bin/wxmsw28u_core_vc_custom.dll”
    LoadFile “C:/xampp/wxjs/bin/wxbase28u_net_vc_custom.dll”
    LoadFile “C:/xampp/wxjs/bin/wxmsw28u_adv_vc_custom.dll”
    LoadFile “C:/xampp/wxjs/bin/js.dll”
    LoadFile “C:/xampp/wxjs/bin/libnspr4.dll”
    LoadFile “C:/xampp/wxjs/bin/wxJS_ext.dll”

  7. You’re done! Test it with

    response.write(”Hello World!”);

Note: I’ve experienced Apache 2.2.8 crashes when refreshing a .wxjs page or opening a new instance of it. My hunch is that it has something to with Apache threads and the like, stay posted.



No Responses Yet to “Running mod_wxjs on Apache using XAMPP”  

  1. No Comments Yet

Leave a Reply