|
|
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. IntroductionThe horde project is a suite of open
source web applications. Horde itself is the engine, on top of which various modules sit, e.g.
IMP for email, Kronolith for calendaring, Turba for the address book, Nag for a task list, Mnemo for memos and notes. And those are just the
production stage ones that I've installed so far. There are more around and in development. The staging directory to which the packages are downloaded is indicated by $STAGE, the install location for Apache by $APACHEHOME and the location of your web server document root by $DOCROOT. The methods documented here are specifically for a Solaris 8 install of IMP and horde without
a database. If you want to use MySQL as a backend database, then follow the additional instructions
at the MySQL extra info page.
PreparationBe root! Make sure anything you'd normally need for compiling and installing stuff is in the PATH and LD_LIBRARY_PATH variables. Download this little lot (choose which version of Horde and IMP you want), unzip and untar them somewhere sensible, in my case /export/stage. You may already have some of these installed, but some will need (re-)configuring. I already had apache (and openssl) installed and an old copy of fetchmail sitting around, idle, but I'll walk
through what I remember of those installs. I'm fairly sure this works best if you have an existing install of apache,
but here's what I did to get things working. Some of the steps are there purely for supersitition, but hey,
whatever works, right? Installing apache (optional)If you already have apache installed and intend to use that instance for horde,
skip this part. cd $STAGE/apache_1.3.31 ./configure --prefix=$APACHEHOME make make install Installing fetchmail (optional)You may not need fetchmail. If you already have mail being delivered to
this machine to a sensible place, skip the fetchmail parts. cd $STAGE/fetchmail-5.1.0 make make install Installing IMAP (optional)Remember, this is for _my_ Solaris 8 setup, which uses gcc. You may need a different make option.
And again, you may already have an IMAP or POP daemon set up, so you may be able to skip the
IMAP parts. cd $STAGE/imap-2004 make gso SSLTYPE=none cp imapd/imapd /usr/sbin cp ipopd/ipop2d ipopd/ipop3d /usr/sbin mkdir include mkdir lib cp c-client/*.h include cp c-client/*.a lib This sets you up with some of the requirements for the later install of PHP. Installing imapproxy (optional)Usual disclaimers about not absolutely needing to do this, but trust me, it _will_ improve performance
if you are connecting to an IMAP server for authentication and/or mail. cd $STAGE/up-imapproxy-1.2.1 ./configure --with-openssl-lib=/usr/local/ssl/lib make make install make install-conf make install-init Once that's safely done, you need to edit /etc/imapproxy.conf for your local environment. Set
the following:-
Installing gettext (optional)If you already have gettext installed, skip this section. cd $STAGE/gettext-0.10.37 ./configure make make install Configure and start fetchmail (optional)This is probably the most configurable bit. I just needed to grab stuff from one
catch-all account, so you may need a bit more fiddling. I would seriously recommend
reading the INSTALL and README files that come with fetchmail. Configure apachecd $STAGE/apache_1.3.31 ./configure --prefix=$APACHEHOME Installing PHP (optional)You may already have PHP installed, but it may not be configured for IMAP and
gettext. If you are not sure, it could be best to re-install PHP, or you
could just skip this part and see what happens later. cd $STAGE/php-4.3.7 ./configure --enable-track-vars --with-imap=$STAGE/imap-2004 \--with-apache=$STAGE/apache_1.3.31 --with-gettext=/usr/bin make make install cp php.ini-dist $APACHEHOME/conf/php.ini cp php.ini-dist /usr/local/lib/php.ini You may see problems with libraries during compilation. In which case, make sure your libraries are linked. Add mod_ssl to apache (optional)You will need to have downloaded and untarred in the $STAGE directory,
a copy of openssl
, even if you already have openssl installed (unless you already have apache
installed with mod_ssl). cd $STAGE/mod_ssl-2.8.18-1.3.31 ./configure --with-apache=$STAGE/apache_1.3.31 --with-ssl=/usr/local/ssl \--prefix=$APACHEHOME --enable-module=info --enable-module=so Installing apache (optional)You may already have apache working with PHP, including IMAP and gettext
support, in which case, you can skip this part. If not, read on. cd $STAGE/apache_1.3.31 SSL_BASE=/usr/local/ssl ./configure --activate-module=src/modules/php4/libphp4.a \--prefix=$APACHEHOME --enable-module=ssl make make certificate make install You may run into trouble making apache this time. If you do, tar up the contents of
$DOCROOT and put that somewhere safe. Then delete all of the $APACHEHOME
contents. Re-install apache with the earlier configuration, having run "make clean"
in the apache staging directory. Re-install PHP, also with a "make clean" in the
staging directory first. Configure apache for PHP and build again. Then untar that
htdocs tarball back into $DOCROOT. Configure apache (optional)We need to configure apache for PHP support. Edit the $APACHEHOME/conf/httpd.conf, find the lines about
DirectoryIndex and add in "index.php":-
Installing pear (optional)The version of pear that comes with PHP isn't new enough for horde to work.
So, unless you have a working version of apache, with PHP compiled with IMAP
and gettext support and the latest version of pear in place, you
should really install a new version of pear. Having said that, pear doesn't
need "installing" as such. Just copy it to the correct location where it
will be expected to be found. cd /usr/local/lib tar xvf $STAGE/pear-1.3.tar.gz mv pear-1.3 php Right, that's all the pre-requisites in place. Now to install Horde. Mailto:webmaster@totkat.org Site statistics |
|
|