This article will guide you to set up ChatPlus on your server by yourself. In this article, we assume that you are already familiar with  Linux server management and docker, know how to use terminal, access SSH with root/super users privileges and set up necessary software such as Git, Docker, NginX/Apache as Reverse proxy, etc.

If you aren't familiar with setting up ChatPlus server, please feel free to open ticket to request our support. You aren't charged any fee for the 1st setup.

Firstly, you will need to install and run following software on your Linux server:

Then, let's start setting up ChatPlus server

Configure subdomain for ChatPlus server

Set up folders and environments for Chat

wget -O - https://s3.amazonaws.com/phpfox-chatplus/shared/install-chatplus.sh | bash
# ChatPlus enviroment file.
# This file is used for package @foxsystem/chatplus

#Default chat port is 3000. If using another custom port, please update PORT and ROOT_URL variables
PORT=3000
ROOT_URL=http://localhost:3000

#Database info for Chat. You can keep it as default
MONGO_URL=mongodb://mongo:27017/rocketchat
MONGO_OPLOG_URL=mongodb://mongo:27017/local

#MAIL_URL is for SMTP service to send notification emails when having new messages. Its value should be in following format: smtp://[smtp_email]:[smtp_password]@[smtp_host]:[smtp_port]
MAIL_URL=smtp://smtp.email

#Admin user to access ChatPlus Dashboard. Can configure to use same username and email address of the Admin user of phpFox site
ADMIN_USERNAME=chatplusadmin
ADMIN_PASSWORD=ChatPlus@123
ADMIN_EMAIL=admin@youdomain.com

#Info of phpFox license
PHPFOX_LICENSE_ID=""
PHPFOX_LICENSE_KEY=""

#SECRET_CODE is the arbitrary string to verify connection between phpFox site and ChatPlus server. This string needs to be configured on both phpFox site and ChatPlus
SECRET_CODE="C13#@#DSd"

Start Chat server

docker-compose up -d

Connecting phpFox site

Set up folders and environments for built-in Call feature (Optional)