Steps to Install Horde Webmail Server on Ubuntu
Total Page:16
File Type:pdf, Size:1020Kb
Steps to Install Horde Webmail Server on Ubuntu Version: 1.3 Date: 21 Jan 2012 Presented By: Document conventions: Pink box represents commands to use. command to use Pale Green box shows the configuration files. #This is our configuration, replace this value with your environment Gray box represents the standard output on terminal. Standard Output on terminal Page | 3 Prepared by: SwapnInfoways IT Solution Table of Content 1. Introduction to Ubuntu Linux& Horde Webmail 2. Prerequisites / Checklist 3. Installation Steps. 4. Configure and run horde webmail. 5. Testing Horde webmail. Page | 4 Prepared by: SwapnInfoways IT Solution 1. Introduction to Ubuntu Linux & Horde Webmail 1.1 Ubuntu Linux :Ubuntu is a computer operating system based on the Debian Linux distribution and distributed as free and open source software. It is named after the Southern African philosophy of Ubuntu ("humanity towards others"). Ubuntu is designed primarily for use on personal computers, although a server edition also exists. Ubuntu is sponsored by the UK-based company Canonical Ltd., owned by South African entrepreneur Mark Shuttleworth. Canonical generates revenue by selling technical support and services related to Ubuntu, while the operating system itself is entirely free of charge. The Ubuntu project is entirely committed to the principles of free software development; people are encouraged to use free software, improve it, and pass it on. Ubuntu is composed of many software packages, the vast majority of which are distributed under a free software license. The only exceptions are some proprietary hardware drivers. The main license used is the GNU General Public License (GNU GPL) which, along with the GNU Lesser General Public License (GNU LGPL), explicitly declares that users are free to run, copy, distribute, study, change, develop and improve the software. On the other hand, there is also proprietary software available that can run on Ubuntu. Ubuntu focuses on usability, security and stability. Ubuntu comes installed with a wide range of software that includes LibreOffice (OpenOffice in versions prior to 11.04), Firefox, Mozilla Thunderbird (Evolution in versions prior to 11.10), Empathy (Pidgin in versions before 9.10), Transmission, GIMP (in versions prior to 10.04), and several lightweight games (such as Sudoku and chess). Ubuntu, unlike Debian, compiles their packages using gcc features such as PIE and Buffer overflow protection to harden their software. These extra features greatly increase security at the performance expense of 1% in 32 bit and 0.01% in 64 bit. Page | 5 Prepared by: SwapnInfoways IT Solution 1.2 Horde Webmail:Horde Groupware Webmail Edition is a free, enterprise ready, browser based communication suite. Users can read, send and organize email messages and manage and share calendars, contacts, tasks and notes with the standards compliant components from the Horde Project. Horde Groupware Webmail Edition bundles the separately available applications IMP, Ingo, Kronolith, Turba, Nag and Mnemo.It can be extended with any of the released Horde applications. Webmail AJAX, mobile and traditional browser interfaces IMAP and POP3 support Message filtering Message searching HTML message composition with WYSIWIG editor Spell checking Built in attachment viewers Encrypting and signing of messages (S/MIME and PGP) Quota support AJAX Webmail Application•like user interface Classical 3•pane layout Message drag and drop Context menus Frameless interface Calendar Day, week, work week, month and year views Recurring and all•day events Alarms with email notifications Simple and advanced search forms Meeting planning, also with other calendar applications Email notification about changed events Remote calendar subscriptions External client integration (Outlook, Apple iCal, Mozilla Sunbird) iCalendar and iTip support Page | 6 Prepared by: SwapnInfoways IT Solution 2. Prerequisites / Checklist 1 Ubuntu 11.10 installed with base packages 2 Internet Connectivity to the machine Page | 7 Prepared by: SwapnInfoways IT Solution 3. Installation Steps This Horde webmail installation is requires few changes in Ubuntu for hassle free installation. We also found few bugs which required us to do some manual changes described within. Complete Installation can be broken down into following steps. i. Preparing Ubuntu ii. Installing Apache web Server iii. Installing & configuring Mysql iv. Installing PHP and other support v. Installation of Horde Webmail 3.1 Preparing Ubuntu:This section describes step to configure Ubuntu for our usage. Firstly we have to get the latest update for the ubuntu repository list used by “apt-get”. We will then stop the iptables and so that they don’t interfere while installation. 3.1.1 Updating Ubuntu REPO : This command we run to update the latest package list of Ubuntu oneiric source repositories . root@ubuntu-VirtualBox:~# apt-get update Ign http://security.ubuntu.com oneiric-security InRelease Ign http://extras.ubuntu.com oneiric InRelease Get:1 http://extras.ubuntu.com oneiric Release.gpg [72 B] Get:2 http://security.ubuntu.com oneiric-security Release.gpg [198 B] ……………….. <Output cut> ……………….. Hit http://it.archive.ubuntu.com oneiric-backports/universe Translation- en Fetched 864 B in 54s (15 B/s) Reading package lists... Done 3.1.2 Stoping IP Tables. Page | 8 Prepared by: SwapnInfoways IT Solution root@ubuntu-VirtualBox:~# iptables --flush 3.1.3 Check apparmor status root@ubuntu-VirtualBox:~# apparmor_status Output would be like apparmor module is loaded. 12 profiles are loaded. 12 profiles are in enforce mode. …………… …………… 0 processes are in complain mode. 0 processes are unconfined but have a profile defined. If profiles are loaded then run following command 3.1.4 Clear apparmor profiles root@ubuntu-VirtualBox:~# /etc/init.d/apparmor teardown * Unloading AppArmor profiles 3.1.5 Check the Status root@ubuntu-VirtualBox:~# apparmor_status apparmor module is loaded. 0 profiles are loaded. 0 profiles are in enforce mode. 0 profiles are in complain mode. 0 processes have profiles defined. 0 processes are in enforce mode. 0 processes are in complain mode. 0 processes are unconfined but have a profile defined. Page | 9 Prepared by: SwapnInfoways IT Solution 3.2 Apache Web Server. 3.2.1 installing apache web server root@ubuntu-VirtualBox:~# apt-get install apache2 Reading package lists... Done Building dependency tree …………………. …………………. This might prompt for approving the packages to be installed SAY y/n: Pr ess “y” f o r th e an swer . – when asked Now check if the Apache is successfully installed with the latest version. 3.2.2 Checking apache version root@ubuntu-VirtualBox:~# apache2 -v Server version: Apache/2.2.20 (Ubuntu) Server built: Nov 7 2011 22:49:55 3.2.3 installing apache php5 module root@ubuntu-VirtualBox:~# apt-get install libapache2-mod-php5 3.3 Installation & configure Mysql Server : root@ubuntu-VirtualBox:~# apt-get install mysql-server This will take some time to run and then ask for a database password, you will have to enter a password and remember Page | 10 Prepared by: SwapnInfoways IT Solution After successful installation login to mysql and create horde database. root@ubuntu-VirtualBox:~# mysql -u root -p Enter password: “enter the password as entered above” Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 39 Server version: 5.1.58-1ubuntu1 (Ubuntu) Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help.Type '\c' to clear the current input statement. mysql> Create a database named ‘horde’ from mysql prompt. mysql> create database horde; Query OK, 1 row affected (0.00 sec) Exit from mysql mysql> quit 3.4 Installation for php and other support utility 3.4.1 Installing PHP with support modules root@ubuntu-VirtualBox:~# apt-get install php5 php5-cgi php5-cli php5-gd php5- mysql php5-xmlrpc php5-tidy php5-imagick 3.4.2 Installing sendmail root@ubuntu-VirtualBox:~# apt-get install sendmail 3.4.3 Installting Spell check root@ubuntu-VirtualBox:~# apt-get install aspell Page | 11 Prepared by: SwapnInfoways IT Solution 3.4.4 Installing IMAP root@ubuntu-VirtualBox:~# apt-get install cyrus-imapd cyrus-imapd-2.4 ask for yes or no (spool option) ---- say Yes. 3.4.5 Installing pear for PHP root@ubuntu-VirtualBox:~# apt-get install php-pear 3.4.6 Restart the Apache server root@ubuntu-VirtualBox:~# service apache2 restart root@ubuntu-VirtualBox:~# service apache2 restart * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [ OK ] 3.5 Installation of Horde webmail root@ubuntu-VirtualBox:~# pear channel-discover pear.horde.org Adding Channel "pear.horde.org" succeeded Discovery of channel "pear.horde.org" succeeded root@ubuntu-VirtualBox:~# pear install horde/horde_role downloading Horde_Role-1.0.0.tgz ... Starting to download Horde_Role-1.0.0.tgz (2,304 bytes) ....done: 2,304 bytes install ok: channel://pear.horde.org/Horde_Role-1.0.0 horde/Horde_Role has post-install scripts: /usr/share/php/PEAR/Installer/Role/Horde/Role.php Page | 12 Prepared by: SwapnInfoways IT Solution Horde_Role: Use "pear run-scripts horde/Horde_Role" to finish setup. DO NOT RUN SCRIPTS FROM UNTRUSTED