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.
-
Get and install XAMPP
-
Place your wxjs folder (modules and bin) in the root XAMPP folder
-
Open the xampp/apache/conf/httpd.conf file
-
Scroll down to the very last LoadModule statement
-
Insert the following:
LoadModule wxjs_module “C:/xampp/wxjs/bin/mod_wxjs.dll”
AddHandler wxjs .wxjs
wxJS_Modules “C:/xampp/wxjs/bin/modules.xml” -
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” -
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.
Filed under: Uncategorized | Leave a Comment
Tags: apache, apreq2, apreq_module, javascript, mod_wxjs, ssjs, wxJavaScript, wxjs, xampp
No Responses Yet to “Running mod_wxjs on Apache using XAMPP”