View Single Post
Old 08-13-2009, 03:15 PM   #4
Junior Member
 
Join Date: Aug 2009
Posts: 1
khaliki is on a distinguished road
Default

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]
tar xzpf horde-latest.tar.gz
rm -f horde-latest.tar.gz
dir

See what directory is created, for me it's horde-2.2.5. Then edit

/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:

Quote:
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]
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:

Quote:
$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/...13/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.

Last edited by tanya; 08-14-2009 at 10:04 AM.
khaliki is offline   Reply With Quote