Horde Webmail Edition install script

fusionictnl

Verified User
Joined
Jun 22, 2004
Messages
1,053
Location
Netherlands
Horde Webmail Edition Script v1.3.2

You all probably have seen tons of HowTo's about Horde. Here's another one (semi automatic).
Hopefully it will ease the installation for some of you ;) I've tested it under CentOS and CustomBuild

Horde setup script

For this to work you'll need php with imap support and imapd. You can use the "horde_imap_support.sh" included in the package.

The installation itself

Code:
# wget http://www.fusion-ict.nl/da_plugin/horde_install.tar.gz
# tar zxvf horde_install.tar.gz
# cd horde_install
Interactivly Expiremental Imap install works only with custombuild

Code:
# sh /horde_imap_support.sh
Horde Installation (fully automated)

Code:
# sh horde_install.sh
Database information is also send to the admin email account (default admin)

That's it! You should now (after restart/reloading) apache/httpd access horde at http://website/horde

You can first check your setup: http://website/horde/test.php (imp tests etc.)

If you want to run the manual (re-)configure (horde):

Code:
# php /var/www/html/horde/scripts/setup.php
If you have compile problems with php and imap c-client.a error. Please change the line to the correct corresponding system type in the table below. First 3 characters. (If you have FreeBSD this is automaticaly changed for you).

Code:
# The following ports are bundled:
# a32 AIX 3.2 for RS/6000
# a41 AIX 4.1 for RS/6000
# aix AIX/370 (not RS/6000!!)
# ami AmigaDOS
# am2 AmigaDOS with a 68020+
# ama AmigaDOS using AS225R2
# amn AmigaDOS with a 680x0 using "new" socket library
# aos AOS for RT
# art AIX 2.2.1 for RT
# asv Altos SVR4
# aux A/UX
# bs3 BSD/i386 3.0 and higher
# bsd generic BSD 4.3 (as in ancient 1980s version)
# bsf FreeBSD
# bsi BSD/i386
# bso OpenBSD (yes, yet another one...)
# cvx Convex
# cyg Cygwin
# d-g Data General DG/UX prior to 5.4 (d41 port no longer exists)
# d54 Data General DG/UX 5.4
# do4 Apollo Domain/OS sr10.4
# dpx Bull DPX/2 B.O.S.
# drs ICL DRS/NX
# dyn Dynix
# epx EP/IX
# ga4 GCC AIX 4.x for RS/6000
# gas GCC Altos SVR4
# gcs GCC Solaris with Blastwave Community Open Source Software
# gh9 GCC HP-UX 9.x
# ghp GCC HP-UX 10.x
# ghs GCC HP-UX 10.x with Trusted Computer Base
# go5 GCC 2.7.1 (95q4 from Skunkware _not_ 98q2!) SCO Open Server 5.0.x
# gsc GCC Santa Cruz Operation
# gsg GCC SGI
# gso GCC Solaris
# gsu GCC SUN-OS
# gul GCC RISC Ultrix (DEC-5000)
# h11 HP-UX 11i
# hpp HP-UX 9.x (see gh9)
# hpx HP-UX 10.x (see ghp, ghs, hxd, and shp)
# hxd HP-UX 10.x with DCE security (see shp)
# isc Interactive Systems
# ldb Debian Linux
# lfd Fedora Core 4
# ln8 Linux for Nokia N800
# lnx Linux with traditional passwords and crypt() in the C library
# (see lnp, sl4, sl5, and slx)
# lnp Linux with Pluggable Authentication Modules (PAM)
# lmd Mandrake Linux
# lr5 RedHat Enterprise 5 and later (same as lfd)
# lrh RedHat Linux 7.2 and later
# lsu SuSE Linux (same as lrh)
# lyn LynxOS
# mct MachTen
# mnt Atari ST Mint (not MacMint)
# neb NetBSD
# nec NEC UX
# nto QNX Neutrine RTP
# nxt NEXTSTEP
# nx3 NEXTSTEP 3.x
# osf OSF/1 (see sos, os4)
# os4 OSF/1 (Digital UNIX) 4
# osi Apple iPhone and iPod Touch
# osx Mac OS X
# oxp Mac OS X with Pluggable Authentication Modules (PAM)
# ptx PTX
# pyr Pyramid
# qnx QNX 4
# s40 SUN-OS 4.0 (*not* Solaris)
# sc5 SCO Open Server 5.0.x (see go5)
# sco Santa Cruz Operation (see sc5, go5)
# shp HP-UX with Trusted Computer Base
# sgi Silicon Graphics IRIX
# sg6 Silicon Graphics IRIX 6.5
# sl4 Linux using -lshadow to get the crypt() function
# sl5 Linux with shadow passwords, no extra libraries
# slx Linux using -lcrypt to get the crypt() function
# snx Siemens Nixdorf SININX or Reliant UNIX
# soc Solaris with /opt/SUNWspro/bin/cc
# sol Solaris (won't work unless "ucbcc" works -- use gso instead)
# sos OSF/1 with SecureWare
# ssn SUN-OS with shadow password security
# sua Windows Vista (Enterprise or Ultima) Subsystem for Unix Applications
# sun SUN-OS 4.1 or better (*not* Solaris) (see ssn)
# sv2 SVR2 on AT&T PC-7300 (incomplete port)
# sv4 generic SVR4
# ult RISC Ultrix (DEC-5000)
# uw2 UnixWare SVR4.2
# vul VAX Ultrix
# vu2 VAX Ultrix 2.3 (e.g. for VAXstation-2000 or similar old version)
Feedback Welcome
 
Last edited:

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,112
Location
LT, EU
I have a bash script that does it automatically (if anyone wants it) :) You just need to execute 1 command and that's it.
 

fusionictnl

Verified User
Joined
Jun 22, 2004
Messages
1,053
Location
Netherlands
It is fully automated (horde part), the configuration part is done by horde itself, i don't automate this as it isn't horde version specific. Please feedback concerning this script.
 
Last edited:

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,112
Location
LT, EU
Yes, but my idea was to include it by default with DA (CustomBuild) :) And it's still in my future plans. That's why it's fully automated (doesn't need user input). (change http://files.directadmin.com/services/all/horde to another URL (if you want to test it), because it's not yet uploaded to DA servers). Good luck and thank you for the semi-automatic script too!
 

Attachments

fusionictnl

Verified User
Joined
Jun 22, 2004
Messages
1,053
Location
Netherlands
smtalk,

I don't know what your script does, but it isn't working for the standard hode install files. I can't retest it as it will re-screw my horde setup.

It's not working for me and probably not for others with a clean setup. Please redirect your feedback to my private messages instead of in this forum.

Thanks :)
 

Scott DeLeury

Verified User
Joined
Mar 25, 2005
Messages
80
Has anything in either of these 2 scripts been done as far as security? I know that horde has been a very easy target in the past.
 

fusionictnl

Verified User
Joined
Jun 22, 2004
Messages
1,053
Location
Netherlands
Scott,

Easy target? I haven't had any major problems when keeping track of the latest version / patches. The groupware family is pretty new, but if there are security problems, there are patches normaly.

The script works with the latest and permissions are set as wide as any other mail client. Disable admin functionality to be sure not to get any CLI/Shell hacks (as this is in the admin section).

Not setting up an admin email (last step) and removing the files should be sufficient.

Kind Regards

Jordy
 
Last edited:

Scott DeLeury

Verified User
Joined
Mar 25, 2005
Messages
80
I guess my other question is whether or not this works with dovecot or not?

I've converted to dovecot a few months ago and it seems to be working out better for me than the original pop3 and imap daemons did.
 

Henrik

Verified User
Joined
Mar 14, 2008
Messages
121
Martynas; Will (your?) Horde implementation be shipped with DA eventually or with your custombuild script?
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,112
Location
LT, EU
Henrik - it's in my future plans. Firstly we need to get IMAP compiled with PHP by default, and then I'll finish my Horde (beta) script.
 

fusionictnl

Verified User
Joined
Jun 22, 2004
Messages
1,053
Location
Netherlands
Custombuild with IMAP added to the package. It's now fully automated (expirimental offcourse).

The horde install is now fully automated.

Only the IMAP install is interactivly as this has to be closely monitred for bugs. I don't want to screw DA installations up ;)
 
Last edited:

fusionictnl

Verified User
Joined
Jun 22, 2004
Messages
1,053
Location
Netherlands
Detailed info could help. As of what doesn't work. The script gives output so if you want it to work for you... you'll have to give more info ;)
 

motobrandt

Verified User
Joined
Jan 8, 2004
Messages
217
Just tried the php-imapd script. I use custombuild and I'm Centos5 64 bit. Here's what it says at the end.

Code:
Thank you for using PHP.

/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 30: --with-imap=/usr/local/imap-libs: No such file or directory

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file


**** OK ALL DONE ****
Continue with HORDE INSTALL by executing 'sh horde_install.sh'
I'm going to work on it now. Just thought I'd post when it happened.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,112
Location
LT, EU
1 bug:
Missing config directive:
Code:
$conf['urls']['token_lifetime'] = 1800;
1 typo:
Code:
Horde setup script dtabase following information
 

Erik H.

Verified User
Joined
Aug 9, 2004
Messages
31
Just tried the php-imapd script. I use custombuild and I'm Centos5 64 bit. Here's what it says at the end.

Code:
Thank you for using PHP.

/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 30: --with-imap=/usr/local/imap-libs: No such file or directory

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file


**** OK ALL DONE ****
Continue with HORDE INSTALL by executing 'sh horde_install.sh'
I'm going to work on it now. Just thought I'd post when it happened.
What is the solution for this problem ?
 

nealdxmhost

Verified User
Joined
Jan 1, 2009
Messages
234
Location
Los Angeles CA
Install IMAP manually, then run Horde Webmail installation script.

Please forgive my ignorance but I tried installing Horde this morning via the instructions at the beginning of this thread and then I ran into a problem when I went to restart Apache. Took me a while to figure out how to fix apache but I was able to do that by running ./build rewrite_confs to get it going again.

Anyhow my question here is how do I do a manual install of IMAP? Then again with dovecot being installed on the server wouldn't IMAP already be installed?
 
Top