installing the Rainloop on Debian with Nginx

INSTALLING PHP

$ sudo apt update && sudo apt upgrade
$ sudo apt install php-cli php-curl php-mcrypt php-fpm php-mysql php-xml

If your have along issue with modules for the php, use:

$ php -m

For to show all modules.

INSTALLING NGINX

update and install nginx in your system

$ sudo apt install nginx

INSTALLING AND CONFIGURING RAINLOOP

Create a root directory for use by the application:

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

You can also deploy the last version, just run one the following commands:

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

or

# wget -qO- https://repository.rainloop.net/installer.php | php
# exit

Grant read/write permissions required by the application:

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

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

Set owner for the application recursively:

$ sudo chown -R www-data:www-data

CREATE VIRTUAL HOSTS

your have create a rudimentary DNS entry on /etc/hosts file that include your rainloop virtual domain:

127.0.0.1       localhost       rainloop192.168.1.62    rainloop

check your DNS rainloop virtual domain:

$ ping rainloop

your now have that create a nginx virtual hosts:

$ sudo vim /etc/nginx/sites-available/rainloop.conf

with the following content:

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;
  }

}

ENABLE VIRTUAL HOSTS

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

CONFIGURATION RAINLOOP

Now we can access the administrator panel at http://rainloop/?admin

Default login is “admin”, password is “12345”.

Web interface only allows configure basic options. More about of the configuration in https://www.rainloop.net/docs/configuration/

 

ISSUES: 

If issue error connect to fpm.sock: uncomment listen.mode = 0660 in the file /etc/php/7.0/fpm/pool.d/www.conf and restart php7.0-fpm and nginx.

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s