HOW TO INSTALL WEB_JSX TO YOUR SYSTEM
web_jsx *.wjsx & *.wjsxh (Server-side Javascript) FastCgi/Cgi (Runs with IIS, Apache, Nginx)
==> Download web_jsx
current version from here.
==> Extract zip file to C drive.
==> Add to path environment variables (e.g. C:\web_jsx\
).
==> Bind web_jsx.exe
with IIS/Apache/Nginx According to FastCgiModule
.
==> You may follow this documentation and bind web_jsx with IIS.
==> See module.cfg
to active/in-active C++ Native module. e.g. wj_npgsql_wrapper.dll
, wj_mysql_wrapper.dll
, wj_uws.dll
, wj_image.dll
etc.
==> wj_core.dll
(represent the web_jsx
native context) is required for both of CLI
and fcgi
Instructions to run web_jsx
in Nginx(windows)
Install & Configure
==> Download Nginx for Windows.
==> Download attached nginx.config
, fastcgi_params
, run_fcgi.js
files.
==> Replace original nginx.config
& fastcgi_params
files located in config folder of Ngnix Root folder with downloaded nginx.config
& fastcgi_params
files.
==> Copy run_fcgi.js
file anywhere.
==> Create your web server root folder in any drive example : D:\web_jsx_root
==> Change your web server root folder directory in nginx.config
file , look for the root D:/web_jsx_root
line in nginx.config
file & change the directory to your created directory address.
==> Change your Nginx root folder address in run_fcgi.js
file look for the process_path: "C:\\nginx\\nginx.exe"
line in run_fcgi.js
file & change the address with your Nginx root folder address.
Run web_jsx with Nginx
==> Create a index.jsxh
or index.jsx
file in your web server root folder, write something to test like context.response.write("Hello Nginx..");
==> Open cmd run_fcgi.js
folder .
==> Write this command to start web_jsx with Nginx : web_jsx run_fcgi.js
==> You will see logs with opened port no & process ID.
==> Go to the browser & open localhost
with port 8080
ex: http://localhost:8080/index.jsxh
Enjoy Server-side Javascript with web_jsx