Archive for the tag 'Horde'

SBDavid

How To Reinstall Horde

How To Reinstall Horde

To reinstall Horde, preserving the existing database, you can use the following:

/usr/local/cpanel/bin/update-horde –force

Login to Horde Webmail fails in Plesk Panel Server

To solve this issue we need to verity the following.
Verify that authenticate via IMAP is possible.

# /usr/local/psa/admin/sbin/mail_auth_view

Try authorization:

# telnet localhost 143

If IMAP authorization failed verify that configuration of IMAP server is correct in the file.

/etc/psa-horde/imp/servers.php

Also

Verify that package courier-imap is installed and up-to-date.

# rpm -qa | grep courier-imap
SBDavid

Horde login error

Horde login error

If you are getting Horde login error in Cpanel like :

Warning: Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of
session.save_path is correct (/var/cpanel/userhomes/cpanelhorde/sessions) in Unknown on line 0

Then try this Cpanel script :

/scripts/autorepair phpapps_owner_fix

The above script will reset all the quotas for the Cpanel* users.

SBDavid

Installing Horde in Direct Admin

Installing Horde in Direct Admin

You can use the following steps to install Horde in a Direct Admin server.

1. First check whether IMAP module is enabled in PHP, if not recompile PHP with IMAP support.

$ vi /usr/local/directadmin/custombuild/configure/ap2/configure.php5

Add the following entries.
–with-imap=/usr/local –with-imap-ssl

$ /usr/local/directadmin/custombuild/build php n

If you are doing the installation in a VPS, sometimes you might get the following error:

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

To fix this error install the libc-client-devel package

$ yum -y install libc-client-devel.i386 rpm

Now download the horde install script for DirectAdmin and install it.

$ wget http://www.fusion-ict.nl/da_plugin/horde_install.tar.gz
$ tar -zxvf horde_install.tar.gz
$ sh horde_install/horde_install.sh

This will install Horde in the server. Now you can access the Horde webmail using the URL http://domain.com/horde

If you get the following error when accessing Horde through browser,

A fatal error has occured DB Error: connection failed PASSWORD:

then do the following:

$ mysql
mysql > grant all privileges on da_horde.* to da_horde@localhost identified by “PASSWORD”;
mysql > flush privileges;
mysql >\q

3. If you would like to access the Horde using the URL http://webmail.domain.com/ do the following :

First add an A record for webmail.domain.com. Then add the following VirtualHost entry in the /etc/httpd/conf/extra/httpd-vhosts.conf file and restart httpd service.

$ vi /etc/httpd/conf/extra/httpd-vhosts.conf

<VirtualHost IP1:80 \
IP2:80>
ServerName webmail
ServerAlias webmail.*
DocumentRoot /var/www/html/horde

$ service httpd restart

How to enable viewing HTML content in Horde.

By default it is not possible for us to view the emails in HTML format using Horde webmail interface. All the html content will be displayed at the top of the page and will be requested to download.

To fix this issue, you have to enable “Inline HTML message viewing” for Horde in the server.

To enable “Inline html message viewing” you can perform the following steps:

1. Goto the horde imp configuration folder at /usr/local/cpanel/base/horde/imp/config

2. Edit the file mime_drivers.php using your favorite editor.

3. Change the following line
————————————————————
$mime_drivers['imp']['plain']['inline'] = false;
————————————————————

To

————————————————————
$mime_drivers['imp']['plain']['inline'] = true;
————————————————————

4. Restart the cpanel service in the server.

Now you will be able to view the html content using Horde webmail interface.