sexta-feira, 17 de abril de 2020

Instalando RainLoop Webmail Client no Debian 9.12 Stretch


Ambiente Virtual

Hyper-V Server 2019
Baixar ISO: Turnkey-core-15.0-stretch-amd64.iso

Putty: Putty.exe



1. Criar VM 2GB + HD 64GB + 2 Core - VMMAIL
2. Instalar turnkey-core-15.0-stretch-amd64
3. Putty: Acessar via SSH IP Remoto da VM

Rodar os seguintes comandos:

A) Atualize seu sistema:

$ apt update && apt upgrade -y

B) Instale os pacotes necessarios:

$ apt install php-cli php-curl php-mcrypt php-fpm php-mysql php-xml mysql-server mysql-client -y && apt install nginx -y

C) Crie e caminhe para a pasta do Rainloop:

$ mkdir /var/www/rainloop
$ cd $_

D) Instale o Rainloop:

$ curl -sL https://repository.rainloop.net/installer.php | php

E) Permissão para Pasta:

$ find . -type d -exec chmod 755 {} \;
$ find . -type f -exec chmod 644 {} \;

F) edite hosts do rainloop:

$ nano /etc/hosts

127.0.0.1 localhost rainloop
IPLOCAL rainloop

G) Permissao recursiva na pasta do rainloop

chown -R www-data:www-data /*

H)Edite e copie as configuracoes padroes do nginx para rainloop

$ nano /etc/nginx/sites-available/rainloop.conf

#Start------------------------------------------------------------
server {

  server_name rainloop;
  listen 80;
  root /var/www/rainloop;
  access_log /var/log/nginx/rainloop.access.log;
  error_log /var/log/nginx/rainloop.error.log;
  index index.php;

  location / {
    try_files $uri $uri/ /index.php?$query_string;
 }

  location ~ \.php$ {
    fastcgi_index index.php;
    fastcgi_split_path_info ^(.+\.php)(.*)$;
    fastcgi_keep_conn on;
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }

  location ~ /\.ht {
    deny all;
  }

  location ^~ /data {
    deny all;
  }

}

#End------------------------------------------------------------


I) Remova a configura e adicione o arquivo nginx para carregamento:

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

J) Adiçao do arquivo e ativacao para padrao no NGINX:

$ ln -s /etc/nginx/sites-available/rainloop.conf /etc/nginx/sites-enabled

K) Descomente a linha "listen.mode = 0660" em:

nano //etc/php/7.0/fpm/pool.d/www.conf

L) Reinicie o sistema


$ reboot

Acesse: IP/?Admin

Usuario: Admin
Senha Padrão: 12345

Soluções alternativas para: Outlook, Thunderbird

habilitar contatos rainloop

apt-get install mysql-server mysql-client

altere de acordo com suas configuracoes SEUUSUARIO e SUASENHA:

$ mysql -u root -p
$ create database if not exists rainloop;
$ create user SEUUSUARIO@localhost identified by “SUASENHA”;
$ grant all privileges on rainloop.* to SEUUSUARIO@localhost;
$ flush privileges;
$ exit;

habilite os contatos e configure de acordo com suas configuracoes:




Nenhum comentário:

Postar um comentário

Como mostrar a versão do Linux Debian

 Para mostrar a versão do Linux do Debian, rode o seguinte comando: $ cat /etc/*release* | grep CODENAME | cut -d "=" -f 2 Debian ...