Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Appendix

Setting Web server up as a Windows Service

Often it is desirable to install the ProvideX Web Server as a service on a Windows system. This involves making a
number of registry changes.

PxPlus provides a simple utility "*plus/web/service" that can be run to install / deinstall the Web server easily or if you
can install the service by running the following code.

0010 LET COMMAND$=QUO+ARG(0)+QUO


0020 LET COMMAND$+=" -i"
0030 LET COMMAND$+=" PvxWeb"
0040 LET COMMAND$+=" 'Pvx Web Server'"
0050 LET COMMAND$+=" 2" ! Manual start (1 = Autostart)
0060 OPEN (1)"*web"
0070 LET COMMAND$+=" '"+PTH(1)+"'" ! Web directory
0080 CLOSE (1)
0090 LET COMMAND$+=" 'webhide.ini webserv'"
0100 LET COMMAND$+=" 'The ProvideX web server'"
0110 !
0120 INVOKE CONTROL COMMAND$

Copy and paste the above lines into a PxPlus session and enter "RUN" to execute them

By default the above will setup the service as a Manual start. You can change this for the Control Panel if desired to be
an Automatic start.

To remove the service from the system, execute the following program:

0010 LET COMMAND$=QUO+ARG(0)+QUO


0020 LET COMMAND$+=" -u"
0030 LET COMMAND$+=" PvxWeb"
0040 !
0050 INVOKE CONTROL COMMAND$

Copy and paste the above lines into a PxPlus session and enter "RUN" to execute them

You might also like