Si të instaloni platformën e mesazheve Chatwoot në Debian 11


Chatwoot është një platformë mesazhesh falas, me burim të hapur dhe në kohë reale. Ai siguron një bisedë të thjeshtë dhe të drejtpërdrejtë për faqen tuaj të internetit dhe e integron atë me aplikacione të tjera. Ndihmon bizneset tuaja që të ofrojnë mbështetje të mirë për klientët për klientët e tyre përmes kanaleve të mediave sociale. Mund të integrohet lehtësisht me aplikacionet e mediave sociale duke përfshirë Facebook, WhatsApp dhe Twitter. Është një zgjidhje shumë e mirë alternative për programet e tjera komerciale si Intercom, Zendesk, etj.

Në këtë tutorial, unë do t'ju tregoj se si të instaloni Chatwoot në Debian 11.

Parakushtet

  • Një server që ekzekuton Debian 11.
  • Një emër i vlefshëm domeni i treguar me IP-në e serverit tuaj.
  • Një fjalëkalim rrënjësor është konfiguruar në server.

Instaloni Chatwoot në Debian 11

Përpara se të filloni, do t'ju duhet të shkarkoni skriptin e instalimit Chatwoot nga depoja e Git.

Së pari, instaloni komandën git me komandën e mëposhtme:

apt-get install git -y

Tjetra, shkarkoni Chatwoot me komandën e mëposhtme:

git clone https://github.com/chatwoot/chatwoot.git

Tjetra, ndryshoni drejtorinë në drejtorinë e shkarkuar dhe instaloni Chatwoot me komandën e mëposhtme:

cd chatwoot/deployment/
bash setup_20.04.sh -O setup.sh

Do t'ju kërkohet të përcaktoni domenin tuaj dhe ta konfiguroni atë me SSL siç tregohet më poshtë:

Would you like to configure a domain and SSL for Chatwoot?(yes or no): yes
Enter your sub-domain to be used for Chatwoot (chatwoot.domain.com for example) : chatwoot.linuxbuz.com

This script will try to generate SSL certificates via LetsEncrypt and serve chatwoot at
https://chatwoot.linuxbuz.com. Proceed further once you have pointed your DNS to the IP of the instance.

Do you wish to proceed? (yes or no): yes
Would you like to install postgres and redis?(Answer no if you plan to use external services): yes


Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Enter email address (used for urgent renewal and security notices)
 (Enter 'c' to cancel): 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Account registered.
Requesting a certificate for chatwoot.linuxbuz.com
Performing the following challenges:
http-01 challenge for chatwoot.linuxbuz.com
Waiting for verification...
Cleaning up challenges
Subscribe to the EFF mailing list (email: ).

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/chatwoot.linuxbuz.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/chatwoot.linuxbuz.com/privkey.pem
   Your certificate will expire on 2022-06-04. To obtain a new or
   tweaked version of this certificate in the future, simply run
   certbot again. To non-interactively renew *all* of your
   certificates, run "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.


***************************************************************************
Woot! Woot!! Chatwoot server installation is complete
The server will be accessible at https://chatwoot.linuxbuz.com
***************************************************************************

Pasi të instalohet Chatwoot, mund të kontrolloni statusin e Chatwoot me komandën e mëposhtme:

systemctl status chatwoot.target

Do të merrni daljen e mëposhtme:

? chatwoot.target
     Loaded: loaded (/etc/systemd/system/chatwoot.target; enabled; vendor preset: enabled)
     Active: active since Sun 2022-03-06 06:07:21 UTC; 1min 36s ago

Mar 06 06:07:21 debian11 systemd[1]: Reached target chatwoot.target.

Si parazgjedhje, Chatwoot dëgjon në portën 3000. Mund ta kontrolloni me komandën e mëposhtme:

ss -antpl | grep 3000

Do të merrni daljen e mëposhtme:

LISTEN 0      1024         0.0.0.0:3000      0.0.0.0:*    users:(("ruby",pid=38128,fd=8))  

Chatwoot instalon dhe konfiguron Nginx me Lets Encrypt SSL gjatë instalimit. Ju mund të kontrolloni statusin e Nginx me komandën e mëposhtme:

systemctl status nginx

Do të merrni daljen e mëposhtme:

? nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-03-06 06:09:48 UTC; 10s ago
       Docs: man:nginx(8)
    Process: 38376 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 38377 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 38378 (nginx)
      Tasks: 3 (limit: 4679)
     Memory: 3.5M
        CPU: 61ms
     CGroup: /system.slice/nginx.service
             ??38378 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
             ??38379 nginx: worker process
             ??38380 nginx: worker process

Mar 06 06:09:48 debian11 systemd[1]: Starting A high performance web server and a reverse proxy server...
Mar 06 06:09:48 debian11 systemd[1]: Started A high performance web server and a reverse proxy server.

Hyni në ndërfaqen e internetit Chatwoot

Tani, hapni shfletuesin tuaj të internetit dhe hyni në ndërfaqen e internetit Chatwoot duke përdorur URL-në http://chatwoot.linuxbuz.com. Do të ridrejtoheni në faqen e mëposhtme:

Jepni emrin, emailin, emrin e kompanisë, fjalëkalimin dhe klikoni në butonin Përfundo Konfigurimi. Ju duhet të shihni faqen e hyrjes në Chatwoot:

Jepni emailin tuaj, fjalëkalimin dhe klikoni në butonin Identifikohu. Ju duhet të shihni pultin e Chatwoot në faqen e mëposhtme:

Klikoni në Kutitë hyrëse. Ju duhet të shihni faqen e mëposhtme:

Nga këtu, mund të zgjidhni kanalin që dëshironi të integroni me Chatwoot.

konkluzioni

urime! ju keni instaluar me sukses Chatwoot në Debian 11. Tani mund të organizoni Chatwoot në organizatën tuaj dhe ta përdorni për të ofruar mbështetje për klientët. Mos ngurroni të më pyesni nëse keni ndonjë pyetje.