{"id":6209,"date":"2024-01-09T10:41:00","date_gmt":"2024-01-09T13:41:00","guid":{"rendered":"https:\/\/terra.droitlab.com\/?p=6209"},"modified":"2024-01-09T18:17:09","modified_gmt":"2024-01-09T21:17:09","slug":"aapanel-apache2","status":"publish","type":"post","link":"https:\/\/letstalkbr.online\/?p=6209","title":{"rendered":"Guia de instala\u00e7\u00e3o do Aapanel (Apache2)"},"content":{"rendered":"<blockquote>\n<p class=\"doc-excerpt alert alert-info\"><strong><span>Resumo:<\/span><\/strong><span>\u00a0Se voc\u00ea estiver usando Aapanel com Apache2, aqui est\u00e1 um guia de instala\u00e7\u00e3o passo a passo.<\/span><\/p>\n<\/blockquote>\n<h2 id=\"mcetoc_18\"><span>Parte 1: Instalar e configurar o servidor AApanel<\/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 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 Ex:<\/span><\/p>\n<blockquote><p>IP: 178.128.84.87<\/p>\n<p>username: root<\/p>\n<p>password: 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.\u00a0<\/span><\/strong><\/p>\n<p><span>EX:<\/span><\/p>\n<blockquote><p>http:\/\/178.128.84.87:7800\/5f587cdf<\/p>\n<p>username: jsilnw8t<\/p>\n<p>password: 48ea536b<\/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><span>\u00a0<\/span><\/div>\n<div><span> Por favor, assista ao v\u00eddeo tutorial<\/span><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><\/h3>\n<h3 id=\"set-up-aapanel-server-using-apache2-web-server\"><span>Configure o servidor AApanel usando o servidor web Apache2<\/span><\/h3>\n<p><span>Fa\u00e7a login no aapanel e configure de acordo com as instru\u00e7\u00f5es<\/span><\/p>\n<p><span>Endere\u00e7o interno do aaPanel: http:\/\/xxx.xxx.xxx.xxx:7800\/f7eec324<\/span><\/p>\n<p><span>nome de usu\u00e1rio: xxxxxxxxx<\/span><\/p>\n<p><span>senha: xxxxxxxxx<\/span><\/p>\n<p><img decoding=\"async\" class=\"wp-image-12853 size-full aligncenter\" src=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-30.png\" sizes=\"(max-width: 687px) 100vw, 687px\" srcset=\"https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-30.png 687w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-30-300x274.png 300w, https:\/\/doc.stackposts.com\/wp-content\/uploads\/2022\/03\/Pasted-30-16x16.png 16w\" width=\"687\" height=\"628\" alt=\"\" title=\"\"><\/p>\n<p><iframe title=\"Aapanel instala servidor web apache\" src=\"https:\/\/www.youtube.com\/embed\/07c-wnAVuhM?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\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\u00a0<\/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<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>Base de dados<\/span><\/strong><\/p>\n<p><span>nome de usu\u00e1rio:<\/span><\/p>\n<p><span>nome do banco de dados:<\/span><\/p>\n<p><span>senha:<\/span><\/p>\n<p><strong><span>Login da conta de administrador<\/span><\/strong><\/p>\n<p><span>nome de usu\u00e1rio:<\/span><\/p>\n<p><span>e-mail:<\/span><\/p>\n<p><span>senha:<\/span><\/p>\n<p><strong><span>Fuso hor\u00e1rio<\/span><\/strong><\/p>\n<p><span>Por favor, assista ao v\u00eddeo tutorial\u00a0<\/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<h2 id=\"mcetoc_14\" class=\"has-large-font-size\"><span>Parte 3: Instale o dom\u00ednio do servidor<\/span><\/h2>\n<p><span>Baixe o arquivo whatsapp_server_module_main.zip e carregue seu servidor<\/span><\/p>\n<h3 id=\"mcetoc_15\"><span>Etapa 1: Crie um dom\u00ednio para a API e\u00a0 <\/span><strong><span>conecte<\/span><\/strong><span><strong>-o ao<\/strong> <\/span><strong><span>endere\u00e7o IP do seu servidor<\/span><\/strong><\/h3>\n<blockquote><p><em><span>Ex: api.seudominio.com<\/span><\/em><\/p><\/blockquote>\n<p><span>Configure o SSL para o dom\u00ednio API. Assista ao tutorial em v\u00eddeo\u00a0<\/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: Verifique se voc\u00ea inseriu o c\u00f3digo em 2 locais conforme as instru\u00e7\u00f5es<\/span><\/p>\n<blockquote>\n<pre>&lt;Location \/&gt;\n       ProxyPass http:\/\/127.0.0.1:8000\/\n       ProxyPassReverse http:\/\/127.0.0.1:8000\/\n&lt;\/Location&gt;<\/pre>\n<\/blockquote>\n<p><span>Por favor, assista ao v\u00eddeo tutorial\u00a0<\/span><\/p>\n<p><iframe title=\"Configura\u00e7\u00e3o de dom\u00ednio da API Aapanel apache\" src=\"https:\/\/www.youtube.com\/embed\/qKW_aoS7-uE?feature=oembed\" width=\"1170\" height=\"658\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<h3 id=\"mcetoc_16\"><span>Passo 3. Dentro da Raiz da Instala\u00e7\u00e3o do WAZIPER tem uma pasta Chamada waziper_server\u201d.<\/span><\/h3>\n<p><span>Ou se preferir, 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\u00a0<\/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'\n<\/pre>\n<\/blockquote>\n<p><em><span>\/root\/wa_server: \u00e9 o caminho para o diret\u00f3rio de instala\u00e7\u00e3o server.zip<\/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\u00a0<\/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 loading=\"lazy\" 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<pre><span>{\"status\":\"sucesso\",\"message\":\"Bem-vindo ao WAZIPER\"}<\/span><\/pre>\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<pre><span>{\"status\":\"error\",\"message\":\"O ID da inst\u00e2ncia deve ser fornecido para que o processo seja conclu\u00eddo\"}<\/span><\/pre>\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)     <\/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>Instalando e Configurando o Waziper com AAPanel e Apache2<\/p>\n","protected":false},"author":1,"featured_media":6218,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[92,86],"tags":[90,94,87],"class_list":["post-6209","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache2","category-instalacao","tag-aapanel","tag-apache2","tag-instalacao"],"acf":[],"_links":{"self":[{"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/posts\/6209","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=6209"}],"version-history":[{"count":6,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/posts\/6209\/revisions"}],"predecessor-version":[{"id":24692,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/posts\/6209\/revisions\/24692"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=\/wp\/v2\/media\/6218"}],"wp:attachment":[{"href":"https:\/\/letstalkbr.online\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/letstalkbr.online\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}