I could not fall asleep tonight (way too many iced coffee drinks!), so I decided to try installing Horde on my server. I was expecting it to be extremely difficult, but the documentation really guided me through it.
Here's a how-to for installing it on a DA server:
Go to http://www.directadmin.com/forum/showthread.php?s=&postid=9992#post9992 for instructions on how to compile imap into php
Follow his instructions for steps 1-6.
7) Change the configure.php in /usr/local/directadmin/customapache. Add these lines:
--with-imap=/usr/local/imap-2000e \
--with-gettext
at the end of the configure statement. Remember to add a "\" to the previous line. The configure statement should look like this:
Finish with steps 8 and 9.
Now, do the following via ssh:
See what directory is created, for me it's horde-2.2.5. Then edit
/etc/httpd/conf/httpd.conf to add:
If your folder's version # is different, change it to reflect that. Save and then restart apache (/usr/local/etc/rc.d/httpd restart for BSD, service httpd restart for Linux). Back to the shell:
edit mysql_drop.sql to the password of your choice, just for security reasons. then do:
Make a note of what adminpass equals. Replace adminpass below with it.
It's time to test it out. Go to http://yourdomain.com/horde/test.php
You should get:
Everything that's displaying "No" on my page above won't hinder performance. If you want
all "Yes"/green, I'm sure you can find tutorials elsewhere to get them working.
So, you've installed Horde. Now, that's nice and all, but it's not useful at all right now.
Everything (even mail checking) are external projects you need to add. I'll only get into installing IMP for now, which is their email client.
Edit /var/www/html/horde-2.2.5/config/registry.php and change:
to:
and further down in the file, make sure the status for horde is set to active:
then in the shell:
The documentation says to do some more configuring, but I didn't and it worked immediately.
Try going to http://yourdomain.com/horde/ and logging in using a full email address and password. It works great for me.
Now, this just installs Horde and IMP. It's very barebones, there's no address book or calendar which those of you who used cPanel's Horde earlier are probably used to. But it works!
I'll probably try installing Kronolith (calendar) and Turba (Address Book) and post how-to's for those as well.
Please let me know how it goes for you!
Here's a how-to for installing it on a DA server:
Go to http://www.directadmin.com/forum/showthread.php?s=&postid=9992#post9992 for instructions on how to compile imap into php
Follow his instructions for steps 1-6.
7) Change the configure.php in /usr/local/directadmin/customapache. Add these lines:
--with-imap=/usr/local/imap-2000e \
--with-gettext
at the end of the configure statement. Remember to add a "\" to the previous line. The configure statement should look like this:
Code:
./configure
--with-apxs
--with-curl
--with-curl-dir=/usr/local/lib
--with-gd
--with-gd-dir=/usr/local/lib
--with-gettext
--with-jpeg-dir=/usr/local/lib
--with-kerberos
--with-mcrypt
--with-mysql
--with-pear
--with-png-dir=/usr/local/lib
--with-xml
--with-zlib
--with-zlib-dir=/usr/local/lib
--enable-bcmath
--enable-calendar
--enable-ftp
--enable-magic-quotes
--enable-sockets
--enable-track-vars
--with-imap=/usr/local/imap-2000e \
--with-gettext
Finish with steps 8 and 9.
Now, do the following via ssh:
Code:
pear install Log
pear install Mail_Mime
cd /var/www/html
wget [url]http://ftp.horde.org/pub/horde/horde-latest.tar.gz[/url]
tar xzpf horde-latest.tar.gz
rm -f horde-latest.tar.gz
dir
/etc/httpd/conf/httpd.conf to add:
Code:
Alias /horde /var/www/html/horde-2.2.5/
If your folder's version # is different, change it to reflect that. Save and then restart apache (/usr/local/etc/rc.d/httpd restart for BSD, service httpd restart for Linux). Back to the shell:
Code:
cd /var/www/html/horde-2.2.5/scripts/db/
edit mysql_drop.sql to the password of your choice, just for security reasons. then do:
Code:
cat /usr/local/directadmin/scripts/setup.txt
Make a note of what adminpass equals. Replace adminpass below with it.
Code:
mysql -u da_admin -padminpass < mysql_create.sql
cd ../../config
for foo in *.dist; do cp $foo `basename $foo .dist`; done
It's time to test it out. Go to http://yourdomain.com/horde/test.php
You should get:
Horde Versions
* Horde: 2.2.5
PHP Version
* View phpinfo() screen
* PHP Version: 4.3.8
* PHP Major Version: 4.3
* PHP Minor Version: 8
* PHP Version Classification: release
* You are running a supported version of PHP.
PHP Module Capabilities
* DOM XML Support: No
* FTP Support: Yes
* Gettext Support: Yes
* IMAP Support: Yes
* LDAP Support: No
* MCAL Support: No
* Mcrypt Support: Yes
* MySQL Support: Yes
* PostgreSQL Support: No
* XML Support: Yes
Miscellaneous PHP Settings
* magic_quotes_runtime disabled: Yes
* file_uploads enabled: Yes
* safe_mode disabled: Yes
* trans_sid disabled: Yes
PHP Sessions
* Session counter: 6
* To unregister the session: click here
PEAR
* PEAR - Yes
* Recent PEAR - Yes
* Mail - Yes
* Log - Yes
* DB - Yes
* Net_Socket - Yes
* Date - Yes
* HTML_Common/HTML_Select - No
* Horde requires the HTML_Common and HTML_Select classes only for Kronolith 1.0 to
display forms correctly.
Everything that's displaying "No" on my page above won't hinder performance. If you want
all "Yes"/green, I'm sure you can find tutorials elsewhere to get them working.
So, you've installed Horde. Now, that's nice and all, but it's not useful at all right now.
Everything (even mail checking) are external projects you need to add. I'll only get into installing IMP for now, which is their email client.
Code:
cd /var/www/html/horde-2.2.5
wget [url]http://ftp.horde.org/pub/imp/imp-latest.tar.gz[/url]
tar xzpf imp-latest.tar.gz
rm -f imp-latest.tar.gz
mv imp-3.2.5 imp
Edit /var/www/html/horde-2.2.5/config/registry.php and change:
Code:
/* auth: Handler for user authentication.
* Uncomment the auth/login/logout lines if you want to let
* IMP handle the authentication for Horde. This avoids the
* "double login" while accessing IMP.
*/
// $this->registry['auth']['login'] = 'imp';
// $this->registry['auth']['logout'] = 'imp';
to:
Code:
/* auth: Handler for user authentication.
* Uncomment the auth/login/logout lines if you want to let
* IMP handle the authentication for Horde. This avoids the
* "double login" while accessing IMP.
*/
$this->registry['auth']['login'] = 'imp';
$this->registry['auth']['logout'] = 'imp';
and further down in the file, make sure the status for horde is set to active:
$this->applications['horde'] = array(
'fileroot' => dirname(__FILE__) . '/..',
'webroot' => '/horde',
'initial_page' => 'login.php',
'icon' => '/horde/graphics/home.gif',
'name' => _("Horde"),
'allow_guests' => true,
'status' => 'active',
'templates' => dirname(__FILE__) . '/../templates',
'cookie_domain' => $_SERVER['SERVER_NAME'],
// ** If IE will be used to access Horde modules, you should read
// this discussion about the cookie_path setting (discussing issues
// with IE's Content Advisor):
// http://lists.horde.org/archives/imp/Week-of-Mon-20030113/029149.html
'cookie_path' => '/horde',
'server_name' => $_SERVER['SERVER_NAME'],
'server_port' => $_SERVER['SERVER_PORT']
);
then in the shell:
Code:
cd /var/www/html/horde-2.2.5/imp/config
for foo in *.dist; do cp $foo `basename $foo .dist`; done
The documentation says to do some more configuring, but I didn't and it worked immediately.
Try going to http://yourdomain.com/horde/ and logging in using a full email address and password. It works great for me.
Now, this just installs Horde and IMP. It's very barebones, there's no address book or calendar which those of you who used cPanel's Horde earlier are probably used to. But it works!
I'll probably try installing Kronolith (calendar) and Turba (Address Book) and post how-to's for those as well.
Please let me know how it goes for you!
