6.0.0-git
2024-04-16

Diff for CentOS5InstallationNotes between 3 and 4

[[toc]]

+ ** Installing Horde Groupware Webmail Edition on CentOS 5 **



**##red|** ------- NOT READY YET **YET!! DO NOT TRY TO USE ** WAIT UNTIL IT'S COMPLETEDCOMPLETED!! ------- **##



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.**



||http://www.horde.org/webmail/||





++ Versions



* CentOS 5.0 i386 (OS)

* Horde Groupware Webmail Edition 1.0.3 (October 2 2007)

* Apache (http server)

* MySQL 5.0.22 (db server)

* Postfix (mail server)

* Dovecot (IMAP)


++ Installing prerequisites



<code>

yum install -y gettext httpd



yum install -y php php-xml php-imap php-mbstring php-mcrypt php-pecl-Fileinfo php-pecl-memcache php-pear-DB php-pear-File php-pear-Log php-pear-Mail-Mime php-pear-Auth-SASL php-pear-Date php-pear-HTTP-Request php-pear-Mail php-pear-Net-Sieve php-pear-Net-Socket php-pear-Net-SMTP perl

</code>
++ Installing prerequisites



<code>

yum install -y gettext httpd mysql mysql-server dovecot postfix system-switch-mail perl 



yum install -y php php-mysql php-xml php-imap php-mbstring php-mcrypt php-pecl-Fileinfo php-pecl-memcache php-pear-DB php-pear-File php-pear-Log php-pear-Mail-Mime php-pear-Auth-SASL php-pear-Date php-pear-HTTP-Request php-pear-Mail php-pear-Net-Sieve php-pear-Net-Socket php-pear-Net-SMTP

</code>



++ Set up your host name and address



* Edit /etc/hosts to something like this, according to your system settings:



<code>

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1         localhost.localdomain        localhost

192.168.0.100     yourhostname.yourdomain.com  yourhostname

::1               localhost6.localdomain6      localhost6

</code>





++ Configuring Postfix and Dovecot



* Turn off sendmail

<code>

service sendmail stop

chkconfig sendmail off



system-switch-mail

(select postfix)

</code>



* Configure postfix and dovecot to allow the creation of mail subfolders



<code>

postconf -e 'home_mailbox = Maildir/'

</code>



* Edit /etc/dovecot.conf and add the following to the end of the file:



<code>

mail_location = maildir:~/Maildir



namespace private {

separator = /

prefix = ""

inbox = yes

}

</code>



* Add the following to /etc/dovecot.conf to enable the IMAP protocol:



<code>

protocols = imap

</code>



* To configure the rest of postfix, take a look at this nice tutorial:



||http://fedorasolved.org/server-solutions/postfix-mail-server||



++ Start services:



<code>

service httpd start

chkconfig httpd on



service postfix start

chkconfig postfix on



service dovecot start

chkconfig dovecot on

</code>



* Configure mysqld root password:



<code>

/usr/bin/mysqladmin -u root password 'new-password'

/usr/bin/mysqladmin -u root -h yourhostname.yordomain.com password 'new-password'

</code>





++ Download Horde G. W. Edition and extract



* Get the latest stable version of Horde Groupware Webmail Edition:



||http://www.horde.org/download/app/?app=webmail||



* Extract and rename files



<code>

tar zxf horde-webmail-1.0.3.tar.gz -C /var/www/html/

mv /var/www/html/horde-*/ /var/www/html/horde/

chmod go-rwx /var/www/html/horde/test.php

cd /var/www/html/horde/config

rm -rf hooks.php.dist

for d in *.dist; do d0=`basename $d .dist`; if [ ! -f "$d0" ]; then cp -p $d $d0; fi; done

</code>



++ Security configuration



* For horde framework

<code>



chown root:apache -Rv /var/www/html/horde/

chmod 0770 -Rv /var/www/html/horde

chmod 0640 -v /var/www/html/horde/config/*.dist

chmod 0640 -v /var/www/html/horde/config/.htaccess







chmod go-rwx /var/www/html/horde/test.php





chown -R root:apache /var/www/html/horde/config

chmod -R 750 /var/www/html/horde/config

chown -R root:apache /var/www/html/horde/config/.htaccess

chmod -R 640 /var/www/html/horde/config/.htaccess

chown -R root:apache /var/www/html/horde/config/*.dist

chmod -R 640 /var/www/html/horde/config/*.dist

</code>





++ Creating database



yum install -y mysql mysql-server php-mysql

service mysqld start

(don't forget to set root password for mysql)

chkconfig mysqld on

cd /var/www/html/horde/scripts/

./setup.php

Press 1; choose mysql; Persistent connection 0; Username horde; Choose a password for mysql user horde; Unix sockets; Locatio null; DB name horde; 

Press 2; yes; root; root mysql password; 

Press 3; specify an existing IMAP user to have horde administration permissions



... (Later I'll continue this howto)