Solutions

Vision Live chat installation on Windows Server

Sneha Joshi Jun-22nd, 2021 11:51 1 0

Following are the steps to install Visionhelpdesk’s Livechat on windows server:

  1. Install node.js from https://nodejs.org/en/download/. Version node.js v7.x x64 or above.

  2. Install iisnode from https://github.com/tjanczuk/iisnode/releases/download/v0.2.21/iisnode-full-v0.2.21-x64.msi

  3. Install URL rewrite extension from https://www.iis.net/downloads/microsoft/url-rewrite

  4. Install Application request routing https://www.iis.net/downloads/microsoft/application-request-routing

  5. Add following rules in web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <appSettings>
    <add key="PORT" value="3000" />
    <add key="virtualDirPath" value="" />
  </appSettings>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="chat" stopProcessing="true">
                    <match url="chat//?(.*)" ignoreCase="false" />
                    <action type="Rewrite" url="http://support.example.com:3000/{R:1}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
 
</system.webServer>

NOTE: Port 3000 can be changed as per available ports.

6. Open the Node.js command prompt. Go to the path where server.js,router.js and package.json is stored. And run the following command

npm install

7. Install pm2 using npm as below:

npm install pm2 -g

8. Then start the node server using pm2 :

pm2 start server.js

    Vote

    Was this article helpful?
    1 out of 1 found this helpful