Install Rainloop on PHP 5.6 on Debian 8 LAMP

Step-1: Install LAMP on Debian

I’ve used a bash script to install LAMP. You may find it useful.

#!/bin/bash

########################################################
### This script is created by Hasn T. Emdad Rumi <h.t.emdad@gmail.com>.
### Released under GPL 2.0 licensing
### Date: 12-Aug-2016
########################################################

echo "Updating Debian Repository..."
apt-get install debian-keyring debian-archive-keyring -y
apt-get update
echo "Installing mysql serve & client..."
apt-get install mysql-server mysql-client -y

echo "Installing Apache2 and PHP5..."
apt-get install apache2 php5 libapache2-mod-php5 libapache2-mod-auth-mysql libmysqlclient15-dev php5-mysql  php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php-xml pcre php-common curl phpmyadmin -y

echo "Now rebooting services..."
/etc/init.d/apache2 restart

clear

ip_add=`ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'`

l1=" _____ _ _ _ _ _ "
l2=" |_ _| | | | | | | | |"
l3=" | | _ __ ___| |_ __ _| | | ___ __| | |"
l4=" | | | '_ \/ __| __/ _ | | |/ _ \/ _ | |"
l5=" _| |_| | | \__ \ || (_| | | | __/ (_| |_|"
l6=" |_____|_| |_|___/\__\__,_|_|_|\___|\__,_(_)"
echo "$l1"
echo "$l2"
echo "$l3"
echo "$l4"
echo "$l5"
echo "$l6"
echo "=============================================="
echo "Phpmyadmin is available at http://$ip_add/phpmyadmin/"
echo "=============================================="
echo "username: root"
echo "password: (mysql root password)"
echo "Update: innodb_file_per_table=1"

Step-2: Download and Install Rainloop

# mkdir /var/www/rainloop 
# cd /var/www/webmail
# wget http://repository.rainloop.net/v1/rainloop-1.6.3.715-f96ed936916b7f3d9039819323c591b9.zip
# unzip rainloop-1.6.3.715-f96ed936916b7f3d9039819323c591b9.zip
# rm rainloop-*.zip

or alternate installation:

You can also download the latest version of RainLoop application without a need to deal with zip archive, just use the following command in your terminal.

# curl -s http://repository.rainloop.net/installer.php | php

Step-3: securing and permission:

Please switch to application directory i.e. ‘/var/www/rainloop‘ or ‘/var/www/html/rainloop‘ and execute following commands thereon.

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

Now, set owner for the application recursively.

chown -R www-data:www-data .

Step-4: Configure RainLoop via Admin Interface

There are two ways to configure the RainLoop application – using admin panel, or by modifying ‘application.ini‘ file manually from the terminal. But, most of the basic options are configured via web interface, and that should suffix in most cases. To access admin panel, use the following default login credentials.

URL : http://Your-IP-Address/rainloop/?admin
User : admin
Pass : 12345
Share

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.