​​​​✅ Multisessão com WPPConnect-Server

📁​ Arquivos prontos para download nessa aula.


​👉 ​INSTRUÇÕES VÍDEO 1:

MULTISESSOES WPP

1- INSTALAR GIT, NODE E XAMPP

2- INSTALAR A API (NODE)

a. cd Desktop

b. mkdir wpp

c. cd wpp

d. git clone https://github.com/wppconnect-team/wppconnect-serv...

e. cd wppconnect-server

f. npm install

f. npm run build

g. npm start

2- INSTALAR O FRONTEND (XAMPP LOCAL OU LAMP NA VPS)

a. criar arquivos php


​​👉 ​INSTRUÇÕES VÍDEO 2:

WPP CONNECT SERVER NA VPS

SUB PARA O SERVER: wppserver.comunidadezdg.com.br

​👉 ​INSTRUÇÕES BÁSICAS:

sudo apt update

sudo apt upgrade

sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates && curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

sudo apt -y install nodejs

sudo apt-get install -y libgbm-dev wget unzip fontconfig locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils libxss-dev


Instalando o Chrome na VPS (não mostrei no vídeo)

​wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

sudo apt-get update

sudo apt-get install libappindicator1

sudo dpkg -i google-chrome-stable_current_amd64.deb


​cd ~

git clone https://github.com/wppconnect-team/wppconnect-server.git

cd wppconnect-server

npm install

npm run build

sudo npm install -g pm2

pm2 start npm --name wpp -- start

sudo apt install nginx

sudo rm /etc/nginx/sites-enabled/default

sudo nano /etc/nginx/sites-available/wpp

server {

  server_name wppserver.comunidadezdg.com.br;

  location / {

    proxy_pass http://127.0.0.1:21465;

    proxy_http_version 1.1;

    proxy_set_header Upgrade $http_upgrade;

    proxy_set_header Connection 'upgrade';

    proxy_set_header Host $host;

    proxy_set_header X-Real-IP $remote_addr;

    proxy_set_header X-Forwarded-Proto $scheme;

    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    proxy_cache_bypass $http_upgrade;

  }

  }

sudo ln -s /etc/nginx/sites-available/wpp /etc/nginx/sites-enabled 

sudo nginx -t

sudo service nginx restart

sudo apt-get install snapd

sudo snap install notes

sudo snap install --classic certbot

sudo certbot --nginx​


​​👉 ​INSTRUÇÕES VÍDEO 3:

APACHE NA VPS

sudo su root

sudo apt update

sudo apt upgrade

sudo apt install -y apache2 apache2-utils

> alterar porta apache (/etc/apache2/port.conf)

sudo systemctl restart apache2

systemctl status apache2

sudo systemctl enable apache2

apache2 -v

sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline

sudo apt-get install php-curl

sudo a2enmod php7.4

sudo systemctl restart apache2

php --version

sudo nano /var/www/html/info.php

<?php phpinfo(); ?>

sudo a2dismod php7.4

sudo apt install php7.4-fpm

sudo a2enmod proxy_fcgi setenvif

sudo a2enconf php7.4-fpm

sudo systemctl restart apache2

sudo rm /var/www/html/info.php

sudo apt install nginx

sudo rm /etc/nginx/sites-enabled/default

sudo nano /etc/nginx/sites-available/phpcomunidade

server {

  server_name comunidadephp.comunidadezdg.com.br;

  location / {

    proxy_pass http://127.0.0.1:81;

    proxy_http_version 1.1;

    proxy_set_header Upgrade $http_upgrade;

    proxy_set_header Connection 'upgrade';

    proxy_set_header Host $host;

    proxy_set_header X-Real-IP $remote_addr;

    proxy_set_header X-Forwarded-Proto $scheme;

    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    proxy_cache_bypass $http_upgrade;

  }

  }

sudo ln -s /etc/nginx/sites-available/phpcomunidade /etc/nginx/sites-enabled

sudo nginx -t

sudo service nginx restart

sudo nano /etc/nginx/nginx.conf

client_max_body_size 50M;

# HANDLE BIGGER UPLOADS

sudo nginx -t

sudo service nginx restart

sudo apt-get install snapd

sudo snap install notes

sudo snap install --classic certbot

sudo certbot --nginx​