{"id":6210,"date":"2024-01-09T10:42:45","date_gmt":"2024-01-09T13:42:45","guid":{"rendered":"https:\/\/terra.droitlab.com\/?p=6210"},"modified":"2024-01-09T18:16:57","modified_gmt":"2024-01-09T21:16:57","slug":"aapanel-nginx","status":"publish","type":"post","link":"https:\/\/letstalkbr.online\/?p=6210","title":{"rendered":"Guia de instala\u00e7\u00e3o do Aapanel (Nginx)"},"content":{"rendered":"<blockquote>\n<p class=\"doc-excerpt alert alert-info\"><strong><span>Resumo:<\/span><\/strong><span>\u00a0Se voc\u00ea estiver usando Aapanel com Nginx, aqui est\u00e1 um guia de instala\u00e7\u00e3o passo a passo.<\/span><\/p>\n<\/blockquote>\n<h2 id=\"mcetoc_18\"><span>Parte 1: Instale e configure o servidor AApanel com Nginx.<\/span><\/h2>\n<h3 id=\"download-putty\"><span id=\"Download_PuTTY\" class=\"ez-toc-section\"><\/span><strong><span>Baixar PuTTY<\/span><\/strong><\/h3>\n<p><span>Baixe a vers\u00e3o mais recente do PuTTY SSH no\u00a0\u00a0<\/span><a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span>site oficial<\/span><\/a><span>\u00a0.\u00a0Depois disso, instale-o no seu computador.\u00a0\u00c9 simples assim.<\/span><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-10672 aligncenter\" src=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2023\/03\/image-11.png\" sizes=\"(max-width: 452px) 100vw, 452px\" srcset=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2023\/03\/image-11.png 452w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2023\/03\/image-11-300x189.png 300w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2023\/03\/image-11-20x13.png 20w\" alt=\"\" width=\"684\" height=\"431\" title=\"\"><\/figure>\n<\/div>\n<h3><\/h3>\n<h3 id=\"connect-putty-\u00a0install-aapanel\"><strong><span>Conecte o PuTTY e\u00a0<\/span><\/strong><span>\u00a0instale o aaPanel<\/span><\/h3>\n<p><span>Conta de servidor em nuvem<\/span><\/p>\n<p><span>Ex:<\/span><\/p>\n<blockquote><p>IP: 178.128.84.87<br \/>\nusername: root<br \/>\npassword: XvrJ@pDYux2R5Qd<\/p><\/blockquote>\n<p><strong><span>Instale o Aapanel<\/span><\/strong><\/p>\n<blockquote>\n<pre>wget -O install.sh http:\/\/www.aapanel.com\/script\/install-ubuntu_6.0_en.sh &amp;&amp; bash install.sh forum<\/pre>\n<\/blockquote>\n<p><strong><span>Mantenha um registro dos detalhes de login do AApanel assim que a instala\u00e7\u00e3o for conclu\u00edda.<\/span><\/strong><\/p>\n<p><span>EX:<\/span><\/p>\n<blockquote><p><span>http:\/\/178.128.84.87:7800\/5f587cdf<\/span><br \/>\n<span>nome de usu\u00e1rio: jsilnw8t<\/span><br \/>\n<span>senha: 48ea536b<\/span><\/p><\/blockquote>\n<p><strong><span>Instalar bibliotecas<\/span><\/strong><\/p>\n<blockquote>\n<pre>sudo apt-get install libnss3-dev libatk-bridge2.0-dev libcups2-dev libxkbcommon-dev libgtk-3-dev<\/pre>\n<\/blockquote>\n<div>\n<p><span>Por favor, assista ao v\u00eddeo tutorial<\/span><\/p>\n<p><iframe title=\"Instale Aapanel e bibliotecas\" src=\"https:\/\/www.youtube.com\/embed\/UuXRRmerwxs?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<\/div>\n<h3 id=\"set-up-aapanel-server-using-nginx-web-server\"><span>Configure o servidor AApanel usando o servidor web Nginx<\/span><\/h3>\n<p><strong><span>Configura\u00e7\u00e3o PHP:<\/span><\/strong><\/p>\n<ol>\n<li>Configuring PHP with version 8.0 or 8.1.<\/li>\n<li>Allow_url_fopen: allow_url_fopen=On<\/li>\n<li>Memory_limit = 512M or higher ( Importance)<\/li>\n<li>Upload_max_size = 512M<\/li>\n<li>Post_max_size = 512M<\/li>\n<li>Upload_max_filesize = 512M<\/li>\n<\/ol>\n<p><strong><span>Instalar extens\u00f5es:<\/span><\/strong><\/p>\n<p><span>Instalando extens\u00f5es PHP: exif e intl<\/span><\/p>\n<h2 id=\"h2\"><img decoding=\"async\" class=\"alignnone wp-image-12896 size-full aligncenter\" src=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-33.png\" sizes=\"(max-width: 721px) 100vw, 721px\" srcset=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-33.png 721w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-33-300x241.png 300w\" width=\"721\" height=\"580\" alt=\"\" title=\"\"><\/h2>\n<p><strong><span>Habilitar fun\u00e7\u00f5es:<\/span><\/strong><\/p>\n<p><span>Permitindo a execu\u00e7\u00e3o de fun\u00e7\u00f5es incluindo exec, putenv e shell_exec.<\/span><\/p>\n<p><span>Por favor, assista ao v\u00eddeo tutorial<\/span><\/p>\n<p><iframe title=\"Configurar o servidor aapanel Instalar extens\u00f5es Habilitar fun\u00e7\u00f5es\" src=\"https:\/\/www.youtube.com\/embed\/LcxjlFd8940?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<hr \/>\n<h2 id=\"mcetoc_1\" class=\"has-large-font-size\"><strong><span>Parte 2: Instale o script principal<\/span><\/strong><\/h2>\n<h3 id=\"mcetoc_1\" class=\"has-large-font-size\"><strong><span>Instale o script principal do Waziper<\/span><\/strong><\/h3>\n<p><span>Prepare as informa\u00e7\u00f5es antes de prosseguir com a instala\u00e7\u00e3o!<\/span><\/p>\n<p><strong><span>Nome de usu\u00e1rio do banco de dados<\/span><\/strong><span>:\u00a0<\/span><br \/>\n<span>nome do banco de dados:\u00a0<\/span><br \/>\n<span>senha:\u00a0<\/span><\/p>\n<p><strong><span>Nome de usu\u00e1rio de login da conta de administrador<\/span><\/strong><span>:\u00a0<\/span><br \/>\n<span>email:\u00a0<\/span><br \/>\n<span>senha:\u00a0<\/span><\/p>\n<p><strong><span>Fuso hor\u00e1rio<\/span><\/strong><\/p>\n<p><span>Por favor, assista ao v\u00eddeo tutorial<\/span><\/p>\n<p><iframe title=\"Instala\u00e7\u00e3o do script principal do Waziper\" src=\"https:\/\/www.youtube.com\/embed\/fy6DPFjs7zE?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<h3 id=\"setting-up-nginx-configuration-for-a-domain\"><span>Definindo a configura\u00e7\u00e3o do Nginx para um dom\u00ednio.<\/span><\/h3>\n<p><span>Por favor, assista ao v\u00eddeo tutorial<\/span><\/p>\n<p><iframe title=\"Configura\u00e7\u00e3o Nginx\" src=\"https:\/\/www.youtube.com\/embed\/j0D0Bh56RLc?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<p><span>Adicione o seguinte c\u00f3digo \u00e0 configura\u00e7\u00e3o Nginx do seu dom\u00ednio principal<\/span><\/p>\n<blockquote>\n<pre>location \/ {\ntry_files $uri $uri\/ \/index.php;\n}<\/pre>\n<\/blockquote>\n<p><span>Se voc\u00ea instalar em um subdiret\u00f3rio, defina como segue<\/span><\/p>\n<blockquote>\n<pre>location \/subfoldername {\ntry_files $uri $uri\/ \/subfoldername\/index.php;\n}<\/pre>\n<\/blockquote>\n<hr \/>\n<h2 id=\"mcetoc_14\" class=\"has-large-font-size\"><span>Parte 3: Instale o dom\u00ednio do servidor<\/span><\/h2>\n<h3 id=\"mcetoc_15\"><span>Etapa 1: Crie um dom\u00ednio para a API <strong>e <\/strong><\/span><strong>conecte<\/strong><span><strong>-o ao<\/strong>\u00a0\u00a0<\/span><strong><span>endere\u00e7o IP do seu servidor<\/span><\/strong><\/h3>\n<p><em><span>Ex: api.seudominio.com<\/span><\/em><\/p>\n<p><span>Configure o SSL para o dom\u00ednio API<\/span><\/p>\n<p><span>Por favor, assista ao v\u00eddeo tutorial<\/span><\/p>\n<p><iframe title=\"Criar dom\u00ednio API\" src=\"https:\/\/www.youtube.com\/embed\/UEPduz9T-dI?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<h3 id=\"mcetoc_16\"><span>Etapa 2: configura\u00e7\u00e3o do dom\u00ednio API<\/span><\/h3>\n<p><span>Insira o c\u00f3digo abaixo em seu dom\u00ednio API<\/span><\/p>\n<blockquote>\n<pre>          location \/ {\n              proxy_pass http:\/\/localhost:8000; #whatever port your app runs on\n              proxy_http_version 1.1;\n              proxy_set_header Upgrade $http_upgrade;\n              proxy_set_header Connection 'upgrade';\n              proxy_set_header Host $host;\n              proxy_cache_bypass $http_upgrade;\n          }<\/pre>\n<\/blockquote>\n<p><span>Por favor, assista ao v\u00eddeo tutorial<\/span><\/p>\n<p><iframe title=\"Configura\u00e7\u00e3o de dom\u00ednio API\" src=\"https:\/\/www.youtube.com\/embed\/4RYIz0m04aI?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<h3 id=\"step-3-create-a-directory-in-the-root-folder-to-upload-\u201cwhatsapp\"><span>Passo 3. Dentro da pasta raiz da instala\u00e7\u00e3o do Waziper tem a pasta do Servidor WAZIPER_SERVER.<\/span><\/h3>\n<p><span>(whatsapp_server_module_main.zip = waziper_server.zip no v\u00eddeo)<\/span><\/p>\n<p><span>Para garantir a seguran\u00e7a do sistema, coloque o arquivo no diret\u00f3rio raiz.<\/span><\/p>\n<p><iframe title=\"Crie um diret\u00f3rio na pasta raiz para fazer upload do zip do servidor waziper\" src=\"https:\/\/www.youtube.com\/embed\/PqGJl_73_MU?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<h3 id=\"mcetoc_16\"><span>Etapa 4. Configurar banco de dados para dom\u00ednio API<\/span><\/h3>\n<p><span>Configure um banco de dados comum com Main Script<\/span><\/p>\n<p><iframe title=\"Banco de dados de configura\u00e7\u00e3o para dom\u00ednio API\" src=\"https:\/\/www.youtube.com\/embed\/N-gKep-FkXE?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<h2 id=\"part-4-setup-nodejs\"><span>Parte 4: Configura\u00e7\u00e3o do Nodejs<\/span><\/h2>\n<p><span>A vers\u00e3o atual \u00e9 totalmente compat\u00edvel com nodejs 16 e funciona perfeitamente.<\/span><\/p>\n<h3 id=\"install-nodejs-version-manager-1-6\"><strong><span>Instale o gerenciador de vers\u00e3o Nodejs 1.6<\/span><\/strong><\/h3>\n<p><iframe title=\"Instale o Nodejs 16 para Aapanel\" src=\"https:\/\/www.youtube.com\/embed\/L3IEqF48aZs?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<h3 id=\"install-cronj\"><strong><span>Instale o Cronj<\/span><\/strong><\/h3>\n<p><span>Por favor, crie o Cron de acordo com as instru\u00e7\u00f5es<\/span><\/p>\n<p><em><span>Cron: Uma vez\/minuto:<\/span><\/em><\/p>\n<blockquote>\n<pre>sh -c 'cd \/root\/wa_server &amp;&amp; node app'<\/pre>\n<\/blockquote>\n<p><em><span>\/www\/wwwroot\/suainstala\u00e7\u00e3oWaziper\/waziper_server: \u00e9 o caminho para o diret\u00f3rio de instala\u00e7\u00e3o do seu servidor de whatsapp (API)<\/span><\/em><\/p>\n<p><iframe title=\"Instale o Cronj\" src=\"https:\/\/www.youtube.com\/embed\/1ZH3UO8PCvY?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<h3 id=\"open-port-8000\"><strong><span>Abra a PORTA 8000<\/span><\/strong><\/h3>\n<p><span>Abra a porta 8000 de acordo com as instru\u00e7\u00f5es<\/span><\/p>\n<p><iframe title=\"Abra a PORTA 8000\" src=\"https:\/\/www.youtube.com\/embed\/ro2FEIwnldM?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<p><span>Para mudar a porta para o estado\u00a0<\/span><strong><span>de escuta<\/span><\/strong><span>\u00a0, voc\u00ea precisa concluir as seguintes etapas:<\/span><\/p>\n<ul>\n<li><span>Instalar o dom\u00ednio do servidor<\/span><\/li>\n<li><span>Instale o gerenciador de vers\u00e3o Nodejs 1.6<\/span><\/li>\n<li><span>Instale o Cronj<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-12679 \" src=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-22.png\" sizes=\"(max-width: 1075px) 100vw, 1075px\" srcset=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-22.png 947w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-22-300x155.png 300w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-22-768x397.png 768w\" width=\"1075\" height=\"556\" alt=\"\" title=\"\"><\/p>\n<figure class=\"wp-block-image\"><\/figure>\n<h3 id=\"check-the-working-status-of-the-api-domain\"><strong><span>Verifique o status de funcionamento do dom\u00ednio API<\/span><\/strong><\/h3>\n<p><strong><span>Por favor, verifique o link<\/span><\/strong><\/p>\n<p><span>https:\/\/api.seudominio.com\/<\/span><\/p>\n<blockquote>\n<pre>{\"status\":\"success\",\"message\":\"Welcome to WAZIPER\"}<\/pre>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12710 size-full aligncenter\" src=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-23.png\" sizes=\"(max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-23.png 600w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-23-300x77.png 300w\" width=\"600\" height=\"154\" alt=\"\" title=\"\"><\/p>\n<p><strong><span>Por favor, verifique o link<\/span><\/strong><\/p>\n<p><span>https:\/\/api.seudominio.com\/get_qrcode<\/span><\/p>\n<blockquote>\n<pre>{\"status\":\"error\",\"message\":\"The Instance ID must be provided for the process to be completed\"}<\/pre>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12963 size-full aligncenter\" src=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-40.png\" sizes=\"(max-width: 935px) 100vw, 935px\" srcset=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-40.png 935w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-40-300x59.png 300w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-40-768x150.png 768w\" width=\"935\" height=\"183\" alt=\"\" title=\"\"><\/p>\n<figure class=\"wp-block-image\"><\/figure>\n<h2 id=\"part-5-whatsapp-api-configure-check-qrcode\"><span>Parte 5: Configura\u00e7\u00e3o da API do WhatsApp e verifica\u00e7\u00e3o do Qrcode<\/span><\/h2>\n<p><iframe title=\"Configura\u00e7\u00e3o da API do WhatsApp, verifica\u00e7\u00e3o de Qrcode\" src=\"https:\/\/www.youtube.com\/embed\/XNLJgPWNvOE?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<p><span>Dom\u00ednio API configurado corretamente<\/span><br \/>\n<span>Configura\u00e7\u00e3o correta<\/span><\/p>\n<blockquote><p><strong><span>https:\/\/api.seudominio.com\/<\/span><\/strong><\/p><\/blockquote>\n<p><span>Configura\u00e7\u00e3o errada<\/span><\/p>\n<blockquote><p><span>https:\/\/api.seudominio.com<\/span><br \/>\n<span>http:\/\/api.seudominio.com\/<\/span><br \/>\n<span>api.seudominio.com<\/span><\/p><\/blockquote>\n<p><span>e mais\u2026.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-12714 size-full aligncenter\" src=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-24.png\" sizes=\"(max-width: 684px) 100vw, 684px\" srcset=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-24.png 684w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-24-300x226.png 300w\" width=\"684\" height=\"516\" alt=\"\" title=\"\"><\/p>\n<h2 id=\"set-up-cronj-according-to-the-daily-cycle\"><span>Configure o Cronj de acordo com o ciclo di\u00e1rio<\/span><\/h2>\n<blockquote>\n<pre><span>sudo kill -9 $(sudo lsof -t -i:8000)     \n<\/span><\/pre>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-12941 size-full aligncenter\" src=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-34.png\" sizes=\"(max-width: 919px) 100vw, 919px\" srcset=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-34.png 919w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-34-300x167.png 300w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-34-768x428.png 768w\" width=\"919\" height=\"512\" alt=\"\" title=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>But if you want to have an effective content with the latest trends. When you think of creating content, most people\u2019s minds go straight to blogging. While blogging of the most effective content marketing strategies. departments to give answers to the business<\/p>\n","protected":false},"author":1,"featured_media":6219,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[89,86],"tags":[90,87,91],"class_list":["post-6210","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aapanel-ngnix","category-instalacao","tag-aapanel","tag-instalacao","tag-nginx"],"acf":[],"_links":{"self":[{"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/posts\/6210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6210"}],"version-history":[{"count":6,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/posts\/6210\/revisions"}],"predecessor-version":[{"id":24682,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/posts\/6210\/revisions\/24682"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/media\/6219"}],"wp:attachment":[{"href":"https:\/\/letstalkbr.online\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}