PDA

View Full Version : How-To: Install Horde Webmail


james99
08-01-2004, 03:47 AM
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:

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

pear install Log
pear install Mail_Mime
cd /var/www/html
wget http://ftp.horde.org/pub/horde/horde-latest.tar.gz
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:

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:

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:

cat /usr/local/directadmin/scripts/setup.txt

Make a note of what adminpass equals. Replace adminpass below with it.

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.

cd /var/www/html/horde-2.2.5
wget http://ftp.horde.org/pub/imp/imp-latest.tar.gz
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:
/* 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:
/* 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:
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 (http://www.horde.org/kronolith/) (calendar) and Turba (http://www.horde.org/turba/) (Address Book) and post how-to's for those as well.

Please let me know how it goes for you! :)

interfasys
08-18-2004, 09:16 AM
For PHP :
--with-dom
would be nice to have, Horde 3 will need that and it's going to be released this Fall.


A couple of errors on FreeBSD so far :

-When you say :"edit mysql_drop.sql to the password of your choice, just for security reasons" I guess you were talking about mysql_create.sql?

-I wasn't able to do : mysql -u da_admin -padminpass < mysql_create.sql
my password was always rejected. It could be that the tech support team messed everything up...Using root worked though.

-I had to call bash for this to run:
# for foo in *.dist; do cp $foo `basename $foo .dist`; done
for: Command not found.
foo: Undefined variable.

Otherwise it worked!

Lots of PHP notices on the login screen. For that to disappear, you have to do a :
#edit /var/www/html/horde/config/horde.php

and change this :
$conf['debug_level'] = E_WARNING;

UltimeWWW
08-18-2004, 10:23 PM
Got:

configure: error: Cannot find rfc822.h. Please check your IMAP installation.

When trying to compile PHP with IMAP. Install of Horde/IMP went fine but not PHP/IMAP.

Got an idea?

chrischi
10-03-2004, 01:09 PM
I found that there is some file need modify after the steps:

vi /var/www/html/hordeconfig/registry.php


$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'
);


vi /var/www/html/horde/imp/config/servers.php

$servers['imap'] = array(
'name' => 'IMAP Server',
'server' => 'imap.example.com',
'protocol' => 'imap/notls',
'port' => 143,
'folders' => 'mail/',
'namespace' => '',
'maildomain' => 'example.com',
'smtphost' => 'smtp.example.com',
'realm' => 'example.com',
'preferred' => ''
);


change to:


$servers['imap'] = array(
'name' => 'IMAP Server',
'server' => 'localhost',
'protocol' => 'imap',
'port' => 143,
'folders' => '',
'namespace' => '',
'maildomain' => '',
'smtphost' => '',
'realm' => '',
'preferred' => ''
);

kamsel
10-18-2004, 07:23 PM
Hello,

After all I realized that I got error while trying to "make bsf" of the client and here is what I got:

------------------


Building OS-dependent module
If you get No such file error messages for files x509.h, ssl.h,
pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
is not installed on your system. Either install OpenSSL first
or build with command: make bsf SSLTYPE=none
`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
osdep.c:137: x509.h: No such file or directory
osdep.c:138: ssl.h: No such file or directory
osdep.c:140: pem.h: No such file or directory
osdep.c:141: buffer.h: No such file or directory
osdep.c:142: bio.h: No such file or directory
osdep.c:143: crypto.h: No such file or directory
osdep.c:144: rand.h: No such file or directory
osdep.c:155: syntax error before `SSL_CTX'
osdep.c:168: syntax error before `X509_STORE_CTX'
osdep.c:172: syntax error before `*'
osdep.c:172: syntax error before `*'
osdep.c:172: warning: data definition has no type or storage class
osdep.c: In function `ssl_start_work':
osdep.c:318: `BIO' undeclared (first use in this function)
osdep.c:318: (Each undeclared identifier is reported only once
osdep.c:318: for each function it appears in.)
osdep.c:318: `bio' undeclared (first use in this function)
osdep.c:319: `X509' undeclared (first use in this function)
osdep.c:319: `cert' undeclared (first use in this function)
osdep.c:320: syntax error before `char'
osdep.c:325: structure has no member named `context'
osdep.c:329: structure has no member named `context'
osdep.c:332: structure has no member named `context'
osdep.c:332: `SSL_VERIFY_NONE' undeclared (first use in this function)
osdep.c:333: structure has no member named `context'
osdep.c:333: `SSL_VERIFY_PEER' undeclared (first use in this function)
osdep.c:335: structure has no member named `context'
osdep.c:337: structure has no member named `con'
osdep.c:337: `SSL' undeclared (first use in this function)
osdep.c:337: syntax error before `)'
osdep.c:339: `BIO_NOCLOSE' undeclared (first use in this function)
osdep.c:340: structure has no member named `con'
osdep.c:341: structure has no member named `con'
osdep.c:342: structure has no member named `con'
osdep.c:342: structure has no member named `con'
osdep.c:344: structure has no member named `con'
osdep.c:349: structure has no member named `con'
osdep.c:350: invalid lvalue in assignment
osdep.c:352: `s' undeclared (first use in this function)
osdep.c:353: invalid lvalue in assignment
osdep.c:356: invalid lvalue in assignment
osdep.c:359: `scq' undeclared (first use in this function)
osdep.c:361: `tmp' undeclared (first use in this function)
osdep.c: At top level:
osdep.c:374: syntax error before `X509_STORE_CTX'
osdep.c: In function `ssl_open_verify':
osdep.c:379: `ok' undeclared (first use in this function)
osdep.c:381: `ctx' undeclared (first use in this function)
osdep.c: In function `ssl_getdata':
osdep.c:516: structure has no member named `con'
osdep.c:516: structure has no member named `con'
osdep.c:519: structure has no member named `con'
osdep.c:541: structure has no member named `con'
osdep.c:543: structure has no member named `con'
osdep.c:543: `SSL_ERROR_WANT_READ' undeclared (first use in this function)
osdep.c: In function `ssl_sout':
osdep.c:575: structure has no member named `con'
osdep.c:580: structure has no member named `con'
osdep.c: In function `ssl_abort':
osdep.c:605: structure has no member named `con'
osdep.c:606: structure has no member named `con'
osdep.c:607: structure has no member named `con'
osdep.c:608: structure has no member named `con'
osdep.c:610: structure has no member named `context'
osdep.c:611: structure has no member named `context'
osdep.c:612: structure has no member named `context'
osdep.c: In function `ssl_server_init':
osdep.c:712: structure has no member named `context'
osdep.c:718: structure has no member named `context'
osdep.c:718: `SSL_OP_ALL' undeclared (first use in this function)
osdep.c:720: structure has no member named `context'
osdep.c:724: structure has no member named `context'
osdep.c:728: structure has no member named `context'
osdep.c:729: `SSL_FILETYPE_PEM' undeclared (first use in this function)
osdep.c:734: structure has no member named `context'
osdep.c:735: structure has no member named `context'
osdep.c:737: structure has no member named `con'
osdep.c:737: structure has no member named `context'
osdep.c:741: structure has no member named `con'
osdep.c:743: structure has no member named `con'
osdep.c: At top level:
osdep.c:776: syntax error before `*'
osdep.c:776: syntax error before `*'
osdep.c: In function `ssl_genkey':
osdep.c:779: syntax error before `*'
osdep.c:780: `key' undeclared (first use in this function)
osdep.c:782: `export' undeclared (first use in this function)
osdep.c:782: `keylength' undeclared (first use in this function)
osdep.c:782: `RSA_F4' undeclared (first use in this function)
osdep.c: In function `ssl_server_input_wait':
osdep.c:807: structure has no member named `con'
osdep.c:807: structure has no member named `con'
osdep.c:809: structure has no member named `con'
osdep.c:810: structure has no member named `con'
*** Error code 1

Stop in /kamil/imap-2004a/c-client.
*** Error code 1

Stop in /kamil/imap-2004a/c-client.
*** Error code 1

Stop in /kamil/imap-2004a.
*** Error code 1

Stop in /kamil/imap-2004a.



If I use make bsf SSLTYPE=none the error in php compilation will appear and will say that I need ssl libs - so that doesn't work.

I have openssl installed, so I do not know why do I get above error. Look:

server# openssl version
OpenSSL 0.9.7d 17 Mar 2004
server# openssl




WEIRD,

Any ideas how to fix it? Thanks./


kamil

albatroz
10-22-2004, 10:17 AM
Hi! I am stucked here

mysql -u da_admin -p **adminpass** < mysql_create.sql

such command:

does not proceed, when is run from the path
/var/www/html/horde-2.2.6/scripts/db

due to a password error, so I guess that the root/admin password I am using is not correct. Although is the same that is mentioned here
/usr/local/directadmin/scripts/setup.txt

I guess that it may be encrypted.

Would it be safe to reset the MySQL "root" password?

jlasman
10-22-2004, 01:03 PM
setup.txt contains the password when the system was set up.

The current password is in:

/usr/local/directadmin/conf/mysql.conf

If they're both the same, then somehow the mysql password has gotten out of sync and you should probably reset the mysql password (explained elsewhere in these forums) to the password in the /usr/local/directadmin/conf/mysql.conf file.

Jeff

albatroz
10-28-2004, 09:06 AM
Just wanted to share with you that I have installed Turba without problems.

If you want to do so, just make sure that you use the last version availabe from Horde website.

Other than that, I am not impressed with the Turba features.

interfasys
10-28-2004, 09:16 AM
Wait until you see turba 2 ;)

albatroz
10-28-2004, 09:27 AM
And Horde 2?
I tried to install Turba2, but saw a lot of error messages that scared me bit :)

interfasys
10-28-2004, 09:39 AM
Turba 2 only works with Horde 3, the problem is that it's a bit behind. Horde3 is almost ready, but Turba is still considered alpha. The one big drawback is that it doesnt sync OTA just yet, but it will get there.

albatroz
10-30-2004, 01:17 PM
You meant, Horde4, the one that is currently in alfa? ... I am curious to see, how is it like.
Do you know where to find an online demo?

interfasys
10-30-2004, 01:27 PM
Nope, Horde 3.

The official horde site has a link to a demo.

albatroz
11-11-2004, 02:09 PM
Hi!
I am trying to add the --with-dom line
to configure.php
but if I do so, I get an error
after recompiling PHP.
It seems that some extensions required by that lib are not included in the default installation.

Originally posted by interfasys
For PHP :
--with-dom
would be nice to have, Horde 3 will need that and it's going to be released this Fall.

rldev
01-05-2005, 12:19 PM
anyone have horde3 setup with all of the goodies? I would like to test drive it if possible. Looks as if Horder is hitting the next level.

Question is it any faster than the previous version?

KacangPutih
02-28-2005, 02:08 AM
I have installed horde in my DA.

And it works fine with all the email addresses that i have created.

But if i login with my username, i can't send out email from horde.

For eg.
my domain: kacang.com
my username: kacang

if i login horde with my username "kacang", then i can't send out any email.

It works fine with squirrelmail.

interfasys
02-28-2005, 02:25 AM
I've found out in horde that if you use the username of your account, you cannot send emails, you need to log in with your email address.

KacangPutih
02-28-2005, 02:31 AM
but for default account, i can't login with the email address, i have to use only the username to login.

correct me if i am wrong

drmike
04-28-2005, 08:46 PM
*chuckle*

This was the biggest pain in the.....

For some reason, it shut down MySQL. Don't know why but my websites have been down for about 6 hours now. Lots of fun.

Try again in the morning.

-drmike

Mikej0h
05-16-2005, 06:35 AM
Hey,

Howto include the extention in dir: /usr/local/directadmin/customapache/php-4.3.11/ext/domxml

This is because the newest version of Horde needs the domxml extention in PHP for using the administration site.
When I change /usr/local/directadmin/customapache/configure.php to

--with-domxml AND/OR --enable-domxml it just doesn't work (when i look to /horde/test.php, it's still DOM XML Support: No)

Hopefully someone can help me?!
Using CentOS 3.4 with uptodate DirectAdmin

Mikej0h
05-16-2005, 07:30 AM
OK, solved it by myself.

To add DOM XML support add this to the configure.php file:
--with-dom=/usr/lib \
--with-dom-exslt=/usr/lib \
--with-dom-xslt=/usr/lib

Probably if you run ./build php now it messages you to reinstall libxml. Trust me, your libxml (and libxslt) is FINE.
To solve this error install the following packages:
libxml-devel-1.8.17-9.2.i386.rpm
libxslt-devel-1.0.33-5.i386.rpm

After this, your XML DOM support is done, and works fine !

GNeRaL
05-28-2005, 04:07 AM
hi,

when i type ./build php

checking for IPv6 support... (cached) yes
checking for vprintf... (cached) yes
checking for alphasort... (cached) yes
checking for asctime_r... (cached) yes
checking for chroot... (cached) yes
checking for ctime_r... (cached) yes
checking for cuserid... (cached) yes
checking for crypt... (cached) no
checking for flock... (cached) yes
checking for ftok... (cached) yes
checking for funopen... (cached) no
checking for gai_strerror... (cached) yes
checking for gcvt... (cached) yes
checking for getlogin... (cached) yes
checking for getprotobyname... (cached) yes
checking for getprotobynumber... (cached) yes
checking for getservbyname... (cached) yes
checking for getservbyport... (cached) yes
checking for getrusage... (cached) yes
checking for gettimeofday... (cached) yes
checking for gmtime_r... (cached) yes
checking for isascii... (cached) yes
checking for link... (cached) yes
checking for localtime_r... (cached) yes
checking for lockf... (cached) yes
checking for lrand48... (cached) yes
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for mkstemp... (cached) yes
checking for mmap... (cached) yes
checking for nl_langinfo... (cached) yes
checking for perror... (cached) yes
checking for poll... (cached) yes
checking for putenv... (cached) yes
checking for realpath... (cached) yes
checking for random... (cached) yes
checking for rand_r... (cached) yes
checking for regcomp... (cached) yes
checking for res_search... (cached) yes
checking for scandir... (cached) yes
checking for setitimer... (cached) yes
checking for setlocale... (cached) yes
checking for localeconv... (cached) yes
checking for setsockopt... (cached) yes
checking for setvbuf... (cached) yes
checking for shutdown... (cached) yes
checking for sin... (cached) yes
checking for snprintf... (cached) yes
checking for srand48... (cached) yes
checking for srandom... (cached) yes
checking for statfs... (cached) yes
checking for statvfs... (cached) yes
checking for std_syslog... (cached) no
checking for strcasecmp... (cached) yes
checking for strcoll... (cached) yes
checking for strdup... (cached) yes
checking for strerror... (cached) yes
checking for strftime... (cached) yes
checking for strstr... (cached) yes
checking for strtok_r... (cached) yes
checking for symlink... (cached) yes
checking for tempnam... (cached) yes
checking for tzset... (cached) yes
checking for unsetenv... (cached) yes
checking for usleep... (cached) yes
checking for utime... (cached) yes
checking for vsnprintf... (cached) yes
checking for getaddrinfo... (cached) yes
checking for strlcat... (cached) no
checking for strlcpy... (cached) no
checking for getopt... (cached) yes
checking whether utime accepts a null argument... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for declared timezone... (cached) yes
checking for type of reentrant time-related functions... (cached) POSIX
checking for readdir_r... (cached) yes
checking for type of readdir_r... (cached) POSIX

General settings
checking whether to include debugging symbols... no
checking layout of installed files... PHP
checking path to configuration file... DEFAULT
checking directory to be scanned for configuration files... DEFAULT
checking whether to enable safe mode by default... no
checking for safe mode exec dir... /usr/local/php/bin
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to enable magic quotes by default... yes
checking whether to enable runpaths... yes
checking whether to explicitly link against libgcc... no
checking whether to enable short tags by default... yes
checking whether to enable dmalloc... no
checking whether to enable IPv6 support... yes
checking whether to enable versioning... no

Configuring extensions
checking for OpenSSL support... yes
checking for Kerberos support... yes
checking for krb5-config... (cached) /usr/kerberos/bin/krb5-config
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... /usr/local/lib
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... no
checking whether to enable calendar conversion support... yes
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... yes
checking for CURL in default path... found in /usr/local
checking for cURL 7.9.8 or greater... libcurl 7.13.0
checking for curl_easy_perform in -lcurl... yes
checking for curl_version_info in -lcurl... yes
checking for cyrus imap support... no
checking for xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... no
checking whether to enable dbx support... no
checking whether to enable direct I/O support... no
checking for DOM support... yes
checking for libxml version... >= 2.4.14
checking for DOM XSLT support... /usr/lib
checking for DOM EXSLT support... /usr/lib
checking for libxslt version... >= 1.0.18
checking for libexslt version... >= 1.0.3
checking whether to enable EXIF (metadata from images) support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF support... no
checking whether to enable the bundled filePro support... no
checking for FriBidi support... no
checking whether to enable FTP support... yes
checking for GD support... yes
checking for the location of libjpeg... /usr/local/lib
checking for the location of libpng... /usr/local/lib
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
If configure fails try --with-freetype-dir=<DIR>
checking for GNU gettext support... yes
checking for bindtextdomain in -lintl... no
checking for bindtextdomain in -lc... yes
checking for ngettext in -lc... yes
checking for dngettext in -lc... yes
checking for dcngettext in -lc... yes
checking for bind_textdomain_codeset in -lc... yes
checking for GNU MP support... no
checking for hwapi support... no
checking for Hyperwave support... no
checking for iconv support... no
checking for IMAP support... yes
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for pam_start in -lpam... (cached) yes
checking for crypt in -lcrypt... (cached) yes
checking whether IMAP works... yes
checking for Informix support... no
checking for Ingres II support... no
checking for InterBase support... no
checking for IRCG support... no
checking for Java support... no
checking for LDAP support... no
checking whether to enable multibyte string support... no
checking whether to enable multibyte regex support... yes
checking for external libmbfl... no
checking for MCAL support... no
checking for mcrypt support... yes
checking for mcrypt_module_open in -lmcrypt... yes
checking for mcrypt_generic_deinit in -lmcrypt... yes
checking for MCVE support... no
checking OpenSSL dir for MCVE... no
checking for mhash support... yes
checking whether to include mime_magic support... no
checking for MING support... no
checking for mnoGoSearch support... no
checking for msession support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking size of char... (cached) 1
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for type ulong... (cached) yes
checking for type uchar... (cached) no
checking for type uint... (cached) yes
checking for type ushort... (cached) yes
checking for int8... (cached) no
checking base type of last arg to accept... (cached) socklen_t
checking return type of qsort... (cached) void
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.

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

[root@istanbul customapache]#

how can i install -lmysqlclient ?

interfasys
05-28-2005, 05:54 AM
You don't. You need to install the mysql client and add the correct path to your configure.php.

Mikej0h
05-28-2005, 05:57 AM
Hi,

Can you tell us how your config.log looks like ?

Also handy to know how your configure.php looks like.

GNeRaL
05-28-2005, 06:25 AM
http://www.fprot.gen.tr/config.log

and

#!/bin/sh
./configure \
--with-imap=/usr/local/imap-2004d \
--with-dom=/usr/lib \
--with-dom-exslt=/usr/lib \
--with-dom-xslt=/usr/lib \
--with-imap-ssl \
--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-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \

Mikej0h
05-28-2005, 06:37 AM
Originally posted by interfasys
You don't. You need to install the mysql client and add the correct path to your configure.php.

To addition to this, you should also remove the "\" on the last line of the configure.php file.

interfasys
05-28-2005, 06:41 AM
First you need to drop all the /lib parts, it doesn't make any sense in a php configure script.

And, yes, you should remove the last \, just like Mikej0h said.

GNeRaL
05-28-2005, 07:12 AM
off, new error :(

Done Configuration.
Trying to make php...
/bin/sh /usr/local/directadmin/customapache/php-4.3.11/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/standard/ -I/usr/local/directadmin/customapache/php-4.3.11/ext/standard/ -DPHP_ATOM_INC -I/usr/local/directadmin/customapache/php-4.3.11/include -I/usr/local/directadmin/customapache/php-4.3.11/main -I/usr/local/directadmin/customapache/php-4.3.11 -I/usr/kerberos/include -I/usr/local/include -I/usr/include/libxml2 -I/usr/include/imap -I/usr/local/directadmin/customapache/php-4.3.11/ext/xml/expat -I/usr/local/directadmin/customapache/php-4.3.11/TSRM -I/usr/local/directadmin/customapache/php-4.3.11/Zend -g -O2 -prefer-non-pic -c /usr/local/directadmin/customapache/php-4.3.11/ext/standard/info.c
.
.
.
. -lnsl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lcrypt -lcrypt -o libphp4.la
ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

*** The make has failed, do you want to try to make again? (y,n):


:(

interfasys
05-28-2005, 07:17 AM
Ouch. Make sure you do a build clean before compiling php.

Wouter
06-16-2005, 01:03 PM
Great howto so far, but i'm stuck at this point:

for foo in *.dist ; do cp $foo `basename $foo .dist` ; done

When I do this, I get:

for: Command not found.
foo: Undefined variable.

When I do:

sh foo in *.dist ; do cp $foo `basename $foo .dist` ; done

I get:

foo: Can't open foo: No such file or directory
foo: Undefined variable.


Does someone here have an idea?
Thanks in advance.

Mikej0h
06-16-2005, 01:23 PM
No big deal at all.
This is just done to copy the backups to regular files for use with Horde in an easy way.

You can 'solve' this problem to do something like this:
cp filename.dist filename.php
(ex: cp prefs.dist prefs.php)
Do this for all the files which are located in the config/ dir.
Why are you getting this error ? Probably you're using FreeBSD or a not-linux alike distribution ?
$foo is just a variablename. Maybe your system can't handle those.

Good Luck !

Wouter
06-16-2005, 01:51 PM
Thanks, that's working :)

Wouter
06-17-2005, 11:06 AM
Another question:

If I run /horde/test.php I get this:

Horde Version
Horde: 3.0.4
Horde Applications
Horde: 3.0.4
PHP Version
View phpinfo() screen
View loaded extensions
PHP Version: 4.3.11
PHP Major Version: 4.3
PHP Minor Version: 11
PHP Version Classification: release
You are running a supported version of PHP.
PHP Module Capabilities
Ctype Support: Yes
DOM XML Support: Yes
FTP Support: Yes
GD Support: Yes
Gettext Support: Yes
Iconv Support: Yes
IMAP Support: Yes
LDAP Support: Yes
Mbstring Support: Yes
MCAL Support: Yes
Mcrypt Support: Yes
MIME Magic Support (fileinfo): Yes
MIME Magic Support (mime_magic): No
The fileinfo PECL module (see above) or the mime_magic PHP extension will most likely provide faster MIME Magic lookups than the built-in Horde PHP magic code. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.
MySQL Support: Yes
OpenSSL Support: Yes
PostgreSQL Support: No
Session Support: Yes
XML Support: Yes
Zlib Support: Yes
Miscellaneous PHP Settings
magic_quotes_runtime disabled: Yes
memory_limit disabled: No
If PHP's internal memory limit is turned on and if not set high enough Horde will not be able to handle large data items (e.g. large mail attachments in IMP). If possible, you should disable the PHP memory limit by recompiling PHP without the "--enable-memory-limit" flag. If this is not possible, then you should set the value of memory_limit in php.ini to a sufficiently high value (Current value of memory_limit: 8M).
file_uploads enabled: Yes
safe_mode disabled: Yes
session.use_trans_sid disabled: Yes
session.auto_start disabled: Yes
Required Horde Configuration Files
config/conf.php: Yes
config/mime_drivers.php: Yes
config/nls.php: Yes
config/prefs.php: Yes
config/registry.php: Yes
PHP Sessions
Session counter: 1
To unregister the session: click here
PEAR
PEAR Search Path (PHP's include_path): /var/www/html/horde-3.0.4/lib:.:/usr/local/lib/php
PEAR: Yes
Recent PEAR: Yes
Mail_RFC822: No
Make sure you are using a recent version of PEAR which includes the Mail_RFC822 class.
Mail_Mime: Yes
Log: Yes
DB: Yes
Net_Socket: Yes
Date: Yes
Auth_SASL: Yes
HTTP_Request: Yes
File: Yes
Net_SMTP: Yes
Services_Weather: Yes

Does someone know how I can get the errors/warning in bold working? Thanks in advance.

Mikej0h
06-17-2005, 11:36 AM
Originally posted by Wouter

Does someone know how I can get the errors/warning in bold working? Thanks in advance.

Hi Wouter,


MIME Magic Support (fileinfo): Yes
MIME Magic Support (mime_magic): No
The fileinfo PECL module (see above) or the mime_magic PHP extension will most likely provide faster MIME Magic lookups than the built-in Horde PHP magic code. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.

I had to add "--with-mime-magic" and "--enable-mime-magic" to /usr/local/directadmin/customapache/configure.php

I would also like to add that just one is required (fileinfo AND/OR mime_magic). Horde has written their own code for this, but this is slower than the integrated code.

Note: ensure to add a \ to all lines but not the last (!).


Miscellaneous PHP Settings
magic_quotes_runtime disabled: Yes
memory_limit disabled: No
If PHP's internal memory limit is turned on and if not set high enough Horde will not be able to handle large data items (e.g. large mail attachments in IMP). If possible, you should disable the PHP memory limit by recompiling PHP without the "--enable-memory-limit" flag. If this is not possible, then you should set the value of memory_limit in php.ini to a sufficiently high value (Current value of memory_limit: 8M).

I don't know why you're getting this error, but try to add "--enable-memory-limit" to /usr/local/directadmin/customapache/configure.php


Mail_RFC822: No
Make sure you are using a recent version of PEAR which includes the Mail_RFC822 class.

This was also one of the errors I had during the install of Horde.
I thought it was simple, something like: pear install Mail
If this doesn't work try pear update Mail

EDIT:
You've just edited the configure.php file, but now you still need to recompile php. DirectAdmin can do this semi-automatic for you.
You should to this: "cd /usr/local/directadmin/customapache/" then "./build php" after this, and everything went successfull check your test.php page again.
If the build failes, remove the lines I recommended you to add. (and re-run "./build php") Mostly when building php failes you have not installed the required components.

interfasys
06-17-2005, 12:25 PM
Very short answer:
-add a higher memory limit in php.ini
-if the mail pear module is not found it may be because it's beta.

All the details are in Horde's manual.

Wouter
06-17-2005, 12:32 PM
Hello Mike (I think? ;)),

I had to add "--with-mime-magic" and "--enable-mime-magic" to /usr/local/directadmin/customapache/configure.php

I would also like to add that just one is required (fileinfo AND/OR mime_magic). Horde has written their own code for this, but this is slower than the integrated code.

Note: ensure to add a \ to all lines but not the last (!).

Thanks, that's working :)

I don't know why you're getting this error, but try to add "--enable-memory-limit" to /usr/local/directadmin/customapache/configure.php

--enable-memory-limit is already in configure.php, the problem is that I have/want to disable it. I have removed --enable-memory-limit from configure.php and recompiled PHP, but it's still enabled. I have changed "--enable-memory-limit" to "--disable-memory-limit" but also without any results.

This was also one of the errors I had during the install of Horde.
I thought it was simple, something like: pear install Mail
If this doesn't work try pear update Mail

Thanks, "pear install mail" was working for this :).

EDIT:
You've just edited the configure.php file, but now you still need to recompile php. DirectAdmin can do this semi-automatic for you.
You should to this: "cd /usr/local/directadmin/customapache/" then "./build php" after this, and everything went successfull check your test.php page again.
If the build failes, remove the lines I recommended you to add. (and re-run "./build php") Mostly when building php failes you have not installed the required components.

I already know, but thanks anyway :).

Wouter
06-17-2005, 12:33 PM
Originally posted by interfasys
Very short answer:
-add a higher memory limit in php.ini
-if the mail pear module is not found it may be because it's beta.

All the details are in Horde's manual.

Hmmm, How high would you suggest?

EDIT:

@all:

I also have:

PostgreSQL Support: No

I think this isn't a problem if I am using MySQL?

Mikej0h
06-17-2005, 12:47 PM
I should try the double of current value. I don't know if horde requires or recommends the use of the memory-limit story. But unfortunatly I can't answer this, because I've had no problems with it. (CentOS 3.4).

Support for PostgresSQL is only needed (required) if you want to use this type of databases. If you're using MySQL you don't need it.

Wouter
06-17-2005, 01:20 PM
Okay, thanks.
Some other strange problems:

1) I don't have:

/* 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';

in config/registry.php?! Also I found nothing wat was looking like this. I'm installing Horde 3.0.4.

2) Same as problem 1:

$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...113/029149.html
'cookie_path' => '/horde',
'server_name' => $_SERVER['SERVER_NAME'],
'server_port' => $_SERVER['SERVER_PORT']
);

Mikej0h
06-17-2005, 01:25 PM
This are not problems, but I think the howto is not written for horde 3, but an older version.
I had the same problem. If horde is installed out-of-the-box it can be reached ip/horde
Then you will be automaticly logged in as administrator for horde. Where you can manage this kind of things.

Wouter
06-17-2005, 02:30 PM
Okay, I see :)
I will have a look at that settings tomorrow, it has alot of options :eek:.

Thanks for all help, the howto is great but a little outdated. :)

Wouter
06-18-2005, 11:25 AM
My god, there are really much settings that I really don't know...
I have tested if it's all working with the default settings but it's not. Example: When I login at E-mail I will not get "options". In Horde config it says that options is shown to authenticated users?! And if I login to horde it will not automaticly login to E-mail (IMP)? And this are just examples :D.

Is there anybody there that can give me the conf.php for Horde 3.0.4 from /var/www/html/horde/config and from /var/www/html/horde/imp/config?

Thanks in advance.

Wouter
06-18-2005, 11:38 AM
Maybe someone likes this: I have made some changes to the default enhanced-skin for DA. Now there is under "Webmail: Squirrelmail" and "Webmail: UebiMiau" also "Webmail: Horde" and the Webmail-link at the top of the page (near Home) is linking to /webmail.

Also if u use SSL for DA the webmail links and phpMyAdmin link isn't linking to https:// anymore but just to http:// (https:// was giving me some problems).

The "Webmail: <client>" is linking to the direct login-page. As I said: The Webmail-link at the top of the page is linking to /webmail. I have made a simple page there with three logo's (for SquirrelMail, UebiMail and Horde), simply link them to /horde, /squirrelmail or /uebimiau and it's working :).

Other things you have to do:

1) Make sure squirrelmail is installed in /var/www/html/squirrelmail.
2) Make sure UebiMiau is installed in /var/www/html/uebimiau
3) Make sure Horde is installed in /var/www/html/horde
4) Make sure phpMyAdmin is installed in /var/www/html/phpMyAdmin.

Edit your Alias settings in httpd.conf and make sure they are pointing to the good dirs, mine looks like this:

#Start DirectAdmin Settings
Alias /config /var/www/html/redirect.php
Alias /phpMyAdmin /var/www/html/phpMyAdmin/
Alias /phpmyadmin /var/www/html/phpMyAdmin/
Alias /webmail /var/www/html/webmail/
Alias /squirrelmail /var/www/html/squirrelmail/
Alias /uebimiau /var/www/html/uebimiau/
Alias /horde /var/www/html/horde/

Then login to you reseller panel and go to the skins, upload the .tar.gz I have added to this post, after installing select the new enhanced skin and click on "Apply to me". Test if it's working, if it's not, change the skin-setting for your account in /usr/local/directadmin/data/users/admin/user.conf (where admin is u must set the username you are using). If it's working then you can click on "Apply to all users". If u wish u can remove the old enhanced skin, and rename the .tar.gz to "enhanced.tar.gz" en upload again as "enhanced", then select and click on "Apply to all users", now you can remove enhanced_new. :)

I will make this for the default and power_user skin also in the next week. I hope someone likes it :).

EDIT:

I also finished the other skins (power_user & default), download the ZIP-file and extract, you will have 3 modified skins :). I have also made some changes to enhanced.

EDIT 2: I have deleted the modified skins from this post because I made some changes and i'm sure I will do this also in the future. You can download the most recent version now from: http://www.directadmin.com/forum/showthread.php?s=&threadid=8804.

Mikej0h
06-18-2005, 04:30 PM
Originally posted by Wouter
My god, there are really much settings that I really don't know...
I have tested if it's all working with the default settings but it's not. Example: When I login at E-mail I will not get "options". In Horde config it says that options is shown to authenticated users?! And if I login to horde it will not automaticly login to E-mail (IMP)? And this are just examples :D.

Is there anybody there that can give me the conf.php for Horde 3.0.4 from /var/www/html/horde/config and from /var/www/html/horde/imp/config?

Thanks in advance.

Hey,

I agree there are so much settings you can setup, but this is a thing which horde makes flexible.
You're also correct that you have no access to view the options page, to solve this you need to login as an administrator and go to "Preference System", you need to setup it can write to the Horde database. I agree this is not very clear, and they should mention this in their manual.

After you saved the new config file, your users will be able to setup their own 'Options'.

Wouter
06-19-2005, 09:36 AM
Thanks again, after some time of trying all the options I got it working just as I want :).

only 1 thing I can't find, if I want to login as a mailuser on Horde I have to enter the user/pass 2 times. I can set what Horde should do when I login (open e-mail) but also then I have to enter my user/pass 2 times. Do you have an idea for that also? Thanks.

Do you guys like my little skin modifications? :) I see someone downloaded it...

Mikej0h
06-19-2005, 11:08 AM
Yes, this problem is also easy to manage.
You can solve this to add(change) the settings in the horde/imp/config/servers.php (or something like that).

In this file you need to configure your IMAP server.
After you done this, you go to the Horde administrator account and go to the Authentication tab. Click here 'Let an horde application handle authentication', and click on IMP to let it handle your authentication.

After you done this, and you applied the settings to Horde, you will you see it's not required to login twice anymore.

Wouter
06-19-2005, 01:09 PM
Thanks for all your help. Horde is working for 100% now :).

americanintel
07-22-2005, 09:32 AM
How uptodate is this How-To? Seems like it needs a rework.

Looking to install Horde 4 with the groupware plugins.

bassjuh
12-12-2005, 10:47 AM
i know this howto is out dated...

But i managed to get horde running so that i can access Adminstration -> Setup

however, if i press save it gives me the error "There was an error in the configuration form. Perhaps you left out a required field."

And it puts an error by every dropdownbox, and when i am going to view the source of the page every name of every dropdown box is empty! ( e.g. <select name=" " id=" "> )

Does anyone know how i can resolve this?

Thanks!

Mikej0h
12-12-2005, 11:16 AM
Originally posted by bassjuh
i know this howto is out dated...

But i managed to get horde running so that i can access Adminstration -> Setup

however, if i press save it gives me the error "There was an error in the configuration form. Perhaps you left out a required field."

And it puts an error by every dropdownbox, and when i am going to view the source of the page every name of every dropdown box is empty! ( e.g. <select name=" " id=" "> )

Does anyone know how i can resolve this?

Thanks!

If you goto http://hostname/pathtohorde/test.php, what do you see there?
All required items must be installed, recommended should be installed but are not mandatory.

Which version of PHP do you have installed? And which version of Horde?

bassjuh
12-12-2005, 11:23 AM
This is my output from test.php :

Horde Version
Horde: 3.0.8
Horde Applications
Horde: 3.0.8
Imp: H3 (4.0.4) (run Imp tests)
PHP Version
View phpinfo() screen
View loaded extensions
PHP Version: 5.1.1
PHP Major Version: 5.1
PHP Minor Version: 1
PHP Version Classification: release
Wow, a mystical version of PHP from the future. Let dev@lists.horde.org know what version you have so we can fix this script.
PHP Module Capabilities
Ctype Support: Yes
DOM XML Support: Yes
FTP Support: Yes
GD Support: Yes
Gettext Support: Yes
Iconv Support: Yes
IMAP Support: Yes
LDAP Support: Yes
Mbstring Support: Yes
Mcrypt Support: Yes
MIME Magic Support (fileinfo): No
The fileinfo PECL module or the mime_magic PHP extension (see below) will most likely provide faster MIME Magic lookups than the built-in Horde PHP magic code. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.
MIME Magic Support (mime_magic): Yes
MySQL Support: Yes
OpenSSL Support: Yes
PostgreSQL Support: No
Session Support: Yes
XML Support: Yes
Zlib Support: Yes
Miscellaneous PHP Settings
magic_quotes_runtime disabled: Yes
memory_limit disabled: No
If PHP's internal memory limit is turned on and if not set high enough Horde will not be able to handle large data items (e.g. large mail attachments in IMP). If possible, you should disable the PHP memory limit by recompiling PHP without the "--enable-memory-limit" flag. If this is not possible, then you should set the value of memory_limit in php.ini to a sufficiently high value (Current value of memory_limit: 64M).
safe_mode disabled: Yes
session.use_trans_sid disabled: Yes
session.auto_start disabled: Yes
File Uploads
file_uploads enabled: Yes
upload_max_filesize: 2M
post_max_size: 8M
Required Horde Configuration Files
config/conf.php: Yes
config/mime_drivers.php: Yes
config/nls.php: Yes
config/prefs.php: Yes
config/registry.php: Yes
PHP Sessions
Session counter: 1
To unregister the session: click here
PEAR
PEAR Search Path (PHP's include_path): /var/www/html/horde/lib:.:/usr/local/lib/php
PEAR: Yes
Recent PEAR: Yes
Mail: Yes
Mail_Mime: Yes
Log: Yes
DB: Yes
Net_Socket: Yes
Date: Yes
Auth_SASL: Yes
HTTP_Request: Yes
File: Yes
Net_SMTP: Yes
Services_Weather: Yes
XML_Serializer: Yes

Mikej0h
12-12-2005, 11:29 AM
Originally posted by bassjuh
This is my output from test.php :
[..]


It might be possible PHP5 is not yet supported?
You should inform the Horde development team about the error your getting through their mailinglist.

bassjuh
12-12-2005, 11:31 AM
On the horde site php 5.x is marked as supported, but i also think it might be the case that this is a probable bug.

i will inform the development team.

Thanks in any case :)