Solutions

Vision livechat installation on linux server

Sneha Joshi Jun-22nd, 2021 12:33 2 0

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

  1. Install nodejs [version 12.x]

  2. Install npm [vesion 6.x]

  3. Install pm2 [version 3.5.x]

    curl -sL https://rpm.nodesource.com/setup_12.x | bash -
    yum -y install nodejs
    yum install gcc-c++ make
    npm install pm2@latest -g
  4. Copy server.js, router.js and package.json on root or /

  5. Go to the path where package.json is copied

  6. Execute the command 

    npm install

  7. Set the reverse proxy as below

        <Location /chat >
             ProxyPass http://127.0.0.1:3000
             ProxyPassReverse http://127.0.0.1:3000
        </Location>
  8. Set the SSL
  9. Start the server using command

Note: If port 3000 is already in use then need to create .env file at the same location where server.js is stored and put the port as below in that file:

PORT=3001
virtualDirPath=''

Also, make the changes in reverse proxy accordingly.



Vote

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