# Setting Up Web Server as a Windows Service

> Source: https://manual.pvxplus.com/appendix/webserver-service

The PxPlus Web Server can be installed as a Windows Service using one of the following three methods:

|  |  |
| --- | --- |
| ***Method 1:*** | From the **[PxPlus IDE Main Launcher](https://manual.pvxplus.com/pxplus-ide/ide-main-launcher)**:<br>Expand the *Installation and Setup* category and select *Install Windows Services* to launch the **[Install Windows Services](https://manual.pvxplus.com/install-windows-services)** window.<br>From the *Type of Service* drop box, select *PxPlus Web Server*.<br>After entering the service settings in the grid, select the *Install* button. |
| ***Method 2:*** | From the Command line:<br>Enter **"\*plus/web/service"** to install (or uninstall) the Web Server. |
| ***Method 3:*** | Run the following code:<br>```<br>0010 LET COMMAND$=QUO+ARG(0)+QUO<br>0020 LET COMMAND$+=" -i"<br>0030 LET COMMAND$+=" PvxWeb"<br>0040 LET COMMAND$+=" 'Pvx Web Server'"<br>0050 LET COMMAND$+=" 2" ! Manual start (1 = Autostart)<br>0060 OPEN (1)"*web"<br>0070 LET COMMAND$+=" '"+PTH(1)+"'" ! Web directory<br>0080 CLOSE (1)<br>0090 LET COMMAND$+=" 'webhide.ini webserv'"<br>0100 LET COMMAND$+=" 'The PxPlus web server'"<br>0110 ! <br>0120 INVOKE CONTROL COMMAND$<br>```<br>*Copy and paste the above lines into a PxPlus session and enter "RUN" to execute them.*<br>To remove the service from the system, execute the following program:<br>```<br>0010 LET COMMAND$=QUO+ARG(0)+QUO<br>0020 LET COMMAND$+=" -u"<br>0030 LET COMMAND$+=" PvxWeb"<br>0040 !<br>0050 INVOKE CONTROL COMMAND$<br>```<br>*Copy and paste the above lines into a PxPlus session and enter "RUN" to execute them.* |

When installed, the service will default to *Manual* start. To have the service start automatically when the system is booted, you will need to go to your Windows *Control Panel* and change the start_up setting to *Automatic*.
