|
|
TOTKat: (hand coded) online journal of
a girl geek since April 1999. |
|
|
Installing and configuring horde (and IMP)This is specifically for a Solaris 8 install. !!-- The following explains how to install and configure Horde on a prepared system which already has all of the pre-requisites. If you need to tackle pre-requisites first, then see the Horde Preparation guide first. --!! Installing hordeThis is the engine on top of which IMP will sit. If you already have this part
installed yadda yadda, skip, blah, foo, get on with it to the next part, you know
what you're doing. cd $DOCROOT tar xvf $STAGE/horde-2.1.tar.gz mv horde-2.1 horde cd horde/config for foo in *.dist; do cp $foo `basename $foo .dist`; done Installing IMPUntar IMP and sort out the config files:- cd $DOCROOT/horde tar xvf $STAGE/imp-3.1.tar mv imp-3.1 imp cd imp/config for foo in *.dist; do cp $foo `basename $foo .dist`; doneYou could do worse than read through Thomas Willert's guide to installing IMP before going any further. If nothing than for a change in writing style. Configure horde - 2.0Initially, I'll handle Horde 2.0. Edit $DOCROOT/horde/config/registry.php:- Configure horde - 2.2.1If you're using Horde 2.2.1, you'll want to do this instead. Edit $DOCROOT/horde/config/registry.php and find this section:-
$this->applications['horde'] = array(
'fileroot' => dirname(__FILE__) . '/..',
'webroot' => '/horde',
'initial_page' => 'login.php',
'icon' => '/graphics/home.gif',
'name' => _("Horde"),
'allow_guests' => true,
'status' => 'active',
'templates' => dirname(__FILE__) . '/../templates',
'cookie_domain' => $_SERVER['SERVER_NAME'],
'cookie_path' => '/horde',
'server_name' => $_SERVER['SERVER_NAME'],
'server_port' => $_SERVER['SERVER_PORT']
);
If you have anything like the setup I have here, which is a little odd in that my
apache server is sitting behind a firewall with a hole punched through for https,
so apache thinks that the server has only an internal name, you'll need to set the
server_name and cookie_domain directives to be the name of the server
as you would access it from outside, e.g.
'server_name' => 'horde.domain.com', 'cookie_domain' => 'horde.domain.com',Now, if in the apache httpd.conf, you have your docroot set to $APACHEHOME/horde, it is vital that you set webroot to be '' (two single quotes with no space between them) and not '/', but the cookie_path must be set to '/'. Now, you need to make sure that each of the modules you want Horde to show in the toolbar are set to active, e.g. for IMP, find this section:-
$this->applications['imp'] = array(
'fileroot' => dirname(__FILE__) . '/../imp',
'webroot' => $this->applications['horde']['webroot'] . '/imp',
'icon' => $this->applications['horde']['webroot'] . '/imp/graphics/imp.gif',
'name' => _("Mail"),
'allow_guests' => false,
'status' => 'active'
);
...and make sure that status is set to active as in the example above. Also,
for security, set guests not allowed for each module you would rather people were authenticated
to use:-
'allow_guests' => false,This newer version of Horde doesn't require that mail settings be made in registry.php, but in horde.php. Find the following sections in $DOCROOT/horde/config/horde.php:- // What method should we use for sending mail? Valid options are // currently 'sendmail' and 'smtp'. $conf['mailer']['type'] = 'sendmail';Set the mailer type to 'smtp' and set the mailer host to your local smtp host. Configure IMPThere appear to be no significant differences between IMP 3.1 and IMP 3.2.1 for basic
configuration purposes. So, apart from line numbers in the config files possibly being
different, the configuration should be the same, regardless of which you are using.
Edit $APACHEHOME/horde/imp/config/conf.php Edit $APACHEHOME/horde/imp/config/servers.php 'maildomain' => 'yourdomain.com', 'smtphost' => 'localhost', 'realm' => 'yourdomain.com', Make sure runtime libraries are linked (optional)Test whether you need to do this by telnetting the IMAP port on the machine (while logged
in at the command line, "telnet localhost 143"). If you get a response something
like this:
Remember, your system may be using libraries in other places in addition to these locations. Take care to include those if you need to. Start her up and see what happens!$APACHEHOME/apachectl startssl Then point your browser at: http://yourserver/horde/imp/ and attempt to log in. Mailto:webmaster@totkat.org Site statistics
|
|
|