[horde] horde Digest, Vol 3141, Issue 6

San sancmk at gmail.com
Mon Nov 7 20:26:02 UTC 2011


Hi Michael,

 I think that a lot of installation is Ok to see the accent, but I don't
why in my instalation of horde it don't work. Now I seeing about libxml2,
because I see the following result in test.php:


XML Parser support: *No*
*The libxml version is too old. libxml 2.7 or later is required.*


 Can you send or post how did you did the installation? The how to. I use
CentOS 5.6.

 I used the pear.

I did the installation doing the following: (but the accent doesn't work)

Instalação Horde
Ambiente: CentOS


# rpm -ivh http://repo.webtatic.com/yum/centos/5/`uname
-i`/webtatic-release-5-0.noarch.rpm
# yum --enablerepo=webtatic install php mod_ssl httpd
# yum --enablerepo=webtatic install php-imap php-xml php-gettext php-mysql
php-ldap php-gd php-tidy php-openssl php-devel php-pear --skip-broken
# yum --enablerepo=webtatic install GeoIP geoip-devel gd ImageMagick
ImageMagick-devel ImageMagick-perl php-mbstring php-gettext php-gd php-xml
php-mcrypt php-pecl-Fileinfo --skip-broken

# pecl install Imagic json LZF geoip
# wget ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz
# tar xzvf libxml2-2.7.3.tar.gz
# cd libxml2-2.7.3
# ./configure
# make
# make install

# ldconfig
# yum install mysql mysql-server
# /etc/init.d/mysqld start
# mysql

mysql> create user horde;
Query OK, 0 rows affected (0.00 sec)

mysql> create database webmail;
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO horde@'%' IDENTIFIED BY 'pass';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit

# chkconfig iptables off
# vim /etc/sysconfig/selinux (disabled)
# chkconfig mysqld on
# chkconfig httpd on

# mkdir /var/www/webmail
# pear channel-discover pear.horde.org
# pear install horde/horde_role
# pear run-scripts horde/horde_role  (configurar /var/www/webmail)
# pear install -a -B horde/webmail
# pecl install imagick
# chown -R apache:apache /var/www/webmail

# webmail-install
  -> Tipo: mysql
  -> Database: webmail
  -> Socket: Unix
  -> Caminho: /var/lib/mysql/mysql.sock
  -> User: horde
  -> Passwd: pass



Acessar http://servidor/admin/setup.php


Segurança:

# chmod -R go-rwx /var/www/webmail/*/config
Desabilitar o script de teste
horde/test.php

# chown -R root:root /var/www/webmail/scripts/

# vi /etc/php.ini
   expose_php = Off
   display_errors = Off
   log_errors = On
   register_globals = Off



Tuning:

# vi /etc/my.cnf
set-variable = query_cache_size=128M


Instalação do Courier-imap

# yum groupinstall 'Development Tools'
# yum groupinstall 'Development Libraries'
# yum install rpm-build gcc mysql-devel openssl-devel cyrus-sasl-devel
pkgconfig zlib-devel pcre-devel openldap-devel postgresql-devel expect
libtool-ltdl-devel openldap-servers libtool gdbm-devel pam-devel gamin-devel
# useradd -m -s /bin/bash webmail
# passwd webmail =>  password
# visudo

[...]
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
webmail   ALL=(ALL)       ALL
[...]

# su webmail
# mkdir $HOME/rpm
# mkdir $HOME/rpm/SOURCES
# mkdir $HOME/rpm/SPECS
# mkdir $HOME/rpm/BUILD
# mkdir $HOME/rpm/SRPMS
# mkdir $HOME/rpm/RPMS
# mkdir $HOME/rpm/RPMS/x86_64

Download from  http://www.courier-mta.org/download.php

# mkdir $HOME/downloads
# cd $HOME/downloads
# wget http://prdownloads.sourceforge.net/courier/courier-authlib-x.tar.bz2
# wget http://prdownloads.sourceforge.net/courier/courier-imap-x.tar.bz2
# wget http://prdownloads.sourceforge.net/courier/maildrop-x.tar.bz2
# sudo rpmbuild -ta courier-authlib-x.tar.bz2
# cd $HOME/rpm/RPMS/x86_64
# sudo rpm -ivh courier-authlib-x.x86_64.rpm
# sudo rpm -ivh courier-authlib-devel-x.x86_64.rpm
# sudo rpm -ivh courier-authlib-mysql-x.x86_64.rpm


# cd $HOME/downloads
# rpmbuild -ta courier-imap-x.tar.bz2
# cd $HOME/rpm/RPMS/x86_64
# sudo rpm -ivh courier-imap-x.x86_64.rpm
# cd $HOME/downloads
# sudo rpmbuild -ta maildrop-x.tar.bz2
# cd $HOME/rpm/RPMS/x86_64
# sudo rpm -ivh maildrop-x.x86_64.rpm
# chkconfig courier-imap on
# chkconfig courier-authlib on


# vi /etc/my.cnf

default-character-set=utf8
collation_server=utf8_general_ci
character_set_server=utf8
init_connect="SET NAMES 'utf8'"
set-variable = query_cache_size=128M


# Configuração do INNODB
set-variable = innodb_buffer_pool_size=512M
set-variable = innodb_additional_mem_pool_size=64M
set-variable = innodb_log_file_size=20M
set-variable = innodb_log_buffer_size=8M
innodb_flush_log_at_trx_commit=1
default-storage-engine=INNODB



Instalação da ImageMagick (sem bug PDF)

# wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
# tar xvfz ImageMagick.tar.gz
# cd ImageMagick-6.7.2
# ./configure
# make
# make install
# ldconfig /usr/local/lib
# make check



Memcached source

# wget http://monkey.org/~provos/libevent-x.tar.gz
# tar zxpfv libevent*
# cd libevent*
# ./configure
# make install
# wget http://memcached.googlecode.com/files/memcached-x.tar.gz
# tar zxpfv memcached*
# cd memcached*
# ./configure
# ldconfig
# make install
# adduser memcached
# ldconfig /usr/local/lib/
# ./memcached -u memcached -d -m 48 -l 10.0.0.2 -p 11211





2011/11/4 <horde-request at lists.horde.org>

> Send horde mailing list submissions to
>        horde at lists.horde.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.horde.org/mailman/listinfo/horde
> or, via email, send a message with subject or body 'help' to
>        horde-request at lists.horde.org
>
> You can reach the person managing the list at
>        horde-owner at lists.horde.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of horde digest..."
>
>
> Today's Topics:
>
>   1. Re: Error: No connection to server (Ronan SALMON)
>   2. Re: Error: No connection to server (Ronan SALMON)
>   3. Re: Error: No connection to server (Joe Besko)
>   4. Re: horde Digest, Vol 3141, Issue 1 (Michael M Slusarz)
>   5. Re: Error: No connection to server (Michael M Slusarz)
>   6. Integrating Horde with LDAP, getting there . . . (Spyros Tsiolis)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 04 Nov 2011 17:12:17 +0100
> From: Ronan SALMON <rsalmon at mbpgroup.com>
> To: Simon Brereton <simon.brereton at buongiorno.com>
> Cc: horde <horde at lists.horde.org>
> Subject: Re: [horde] Error: No connection to server
> Message-ID:
>        <20111104171217.Horde.5iX-cYgBqn9OtA7hTWMlJxA at 192.168.1.22>
> Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
>
>
> Simon Brereton <simon.brereton at buongiorno.com> a ?crit?:
>
> > On 4 November 2011 10:39, Jan Schneider <jan at horde.org> wrote:
> >>
> >> Zitat von Simon Brereton <simon.brereton at buongiorno.com>:
> >>
> >>> On 4 November 2011 10:11, Jan Schneider <jan at horde.org> wrote:
> >>>>
> >>>> Zitat von Simon Brereton <simon.brereton at buongiorno.com>:
> >>>>
> >>>>> Hi
> >>>>>
> >>>>> I have one installation of Horde that is available on three different
> >>>>> URLs
> >>>>> (https://webmail.example.com, https://webmail.example.net and
> >>>>> https://webmail.example.org) and although users are encouraged to
> log in
> >>>>> on
> >>>>> the domain corresponding to their email, because the authentication
> is
> >>>>> against the IMAP server, it would work on any URL.
> >>>>>
> >>>>> I now have one user who is getting:
> >>>>> ? ? ? ?Error when communicating with the server.[Thu 03 Nov 2011
> >>>>> 02:04:28
> >>>>> PM EST]
> >>>>> and
> >>>>> ? ? ? ?The server was unable to generate the message list.[Thu 03 Nov
> >>>>> 2011
> >>>>> 02:04:29 PM EST]
> >>>>>
> >>>>> This happens for one user regardless of the domain they log in on.
> ?It
> >>>>> doesn't happen for any of the other users.. ?Unless changed users are
> >>>>> presented with the Portal page - which doesn't load for this use.
> >>>>> ?Changing
> >>>>> the URL to imp/ starts to load IMP and then errors above occur.
> ?Ditto
> >>>>> changing it to kronolith/
> >>>>>
> >>>>> The logs aren't very forth-coming. ?Here is one login session for the
> >>>>> user..
> >>>
> >>>>> Googling the errors, I saw a comment by Jan to check the apache logs
> -
> >>>>> those turned up this.
> >>>>>
> >>>>>
> >>>>> [Thu Nov 03 17:35:01 2011] [error] [client 77.101.63.17] PHP Fatal
> >>>>> error:
> >>>>> ?Allowed memory size of 134217728 bytes exhausted (tried to allocate
> 24
> >>>>> bytes) in /usr/share/horde4/kronolith/lib/Kronolith.php on line 698,
> >>>>> referer: https://webmail.example.net/imp/
> >>>>> [Thu Nov 03 18:06:53 2011] [error] [client 38.104.167.66] PHP Fatal
> >>>>> error:
> >>>>> ?Allowed memory size of 134217728 bytes exhausted (tried to allocate
> 64
> >>>>> bytes) in /usr/share/php/Horde/Date.php on line 1055, referer:
> >>>>>
> >>>>>
> https://webmail.example.net/login.php?horde_logout_token=TrLYKvGPlLzBE4nfF2NO4JSVSUZGs4nfF2NO4JSVSUZG6Zo6hB0&logout_reason=4
> >>>>> [Thu Nov 03 18:07:25 2011] [error] [client 38.104.167.66] PHP Fatal
> >>>>> error:
> >>>>> ?Allowed memory size of 134217728 bytes exhausted (tried to allocate
> 75
> >>>>> bytes) in /usr/share/php/Horde/Date.php on line 1054, referer:
> >>>>> https://webmail.example.net/imp/
> >>>>> [Thu Nov 03 18:07:27 2011] [error] [client 38.104.167.66] PHP Fatal
> >>>>> error:
> >>>>> ?Allowed memory size of 134217728 bytes exhausted (tried to allocate
> 75
> >>>>> bytes) in /usr/share/php/Horde/Date.php on line 1054, referer:
> >>>>> https://webmail.example.net/imp/
> >>>>
> >>>> Well, the error message can't be clearer.
> >>>
> >>> For you maybe - but why would only this user have a problem with
> >>> Date.php? ?Are you suggesting I raise my PHP memory limit?
> >>
> >> It's not a problem with Date.php. But the limit has to exceed
> *somewhere*.
> >> It happens to be in that file.
> >> And yes, that's what I'm suggesting.
> >
> > This doesn't explain why it's this one user.  This doesn't explain why
> > the problem persists if I force all the users to log out and it still
> > affects that one user.  This doesn't explain why it persists even
> > across an apache restart.  This doesn't explain why that one user is
> > still having an error today despite the fact that the memory limit
> > error doesn't appear in the logs today.
> >
> > Finally, what would you suggest is a suitable memory limit for ~100
> > users?  Currently I have 128M (which is about 7 times the php
> > default).
> >
> >  456 ; Maximum amount of memory a script may consume (128MB)
> >  457 ; http://php.net/memory-limit
> >  458 memory_limit = 128M
>
> This can happen (it did happen over here) when opening a message
> containing one (or more) big attachment.
>
>
> Ronan
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 04 Nov 2011 17:49:22 +0100
> From: Ronan SALMON <rsalmon at mbpgroup.com>
> To: Joe Besko <jbesko at msu.edu>
> Cc: horde at lists.horde.org
> Subject: Re: [horde] Error: No connection to server
> Message-ID:
>        <20111104174922.Horde.9rUoJSkfb5FOtBeSlKrAKYA at webmail.mbpgroup.local
> >
> Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
>
>
> Joe Besko <jbesko at msu.edu> a ?crit?:
>
> > I would suggest trying to use Xdebug to help resolve this memory
> > problem.  When trying to resolve our "out of memory" problem with
> > 50MB attachments, I have quite surprised at how much memory was
> > needed to send a 50MB attachment.  When trying to send an
> > attachment, PHP consumed about 7-8 times the uuencoded size of the
> > file, plus the original 50MB plus the normal cost of sending a
> > message.  In the end, I had to set the PHP memory limit to 650MB to
> > allow 50MB attachments to be sent.
> >
>
> I just tried to send myself a message containing a 50Mb attachment and
> I didn't run into any problem.
>
> php values :
> - memory_limit = 256M
> and for testing purpose :
> - upload_max_filesize = 100M (usually 10M)
> - post_max_size = 200M (usually 20M)
>
> using the following version :
> imp 5.0.11
> horde 4.0.9
>
> You might have an issue with your setup.
>
> Anyway, nobody should allow that kind of emails over the network, but
> that only one man's opinion.
>
> Ronan.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 04 Nov 2011 13:42:48 -0400
> From: Joe Besko <jbesko at msu.edu>
> To: Ronan SALMON <rsalmon at mbpgroup.com>
> Cc: horde at lists.horde.org
> Subject: Re: [horde] Error: No connection to server
> Message-ID: <20111104134248.11403j5gos3bi8t4 at webmail-2.mail.msu.edu>
> Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed"
>
> Quoting Ronan SALMON <rsalmon at mbpgroup.com>:
>
> >
> > Joe Besko <jbesko at msu.edu> a ?crit?:
> >
> >> I would suggest trying to use Xdebug to help resolve this memory
> >> problem.  When trying to resolve our "out of memory" problem with
> >> 50MB attachments, I have quite surprised at how much memory was
> >> needed to send a 50MB attachment.  When trying to send an
> >> attachment, PHP consumed about 7-8 times the uuencoded size of the
> >> file, plus the original 50MB plus the normal cost of sending a
> >> message.  In the end, I had to set the PHP memory limit to 650MB to
> >> allow 50MB attachments to be sent.
> >>
> >
> > I just tried to send myself a message containing a 50Mb attachment
> > and I didn't run into any problem.
> >
> > php values :
> > - memory_limit = 256M
> > and for testing purpose :
> > - upload_max_filesize = 100M (usually 10M)
> > - post_max_size = 200M (usually 20M)
> >
> > using the following version :
> > imp 5.0.11
> > horde 4.0.9
> >
> > You might have an issue with your setup.
> >
> > Anyway, nobody should allow that kind of emails over the network,
> > but that only one man's opinion.
>
> Sorry, I forgot to mention that this was using Horde Webmail 1.2.5.  I
> was hoping to point out that using Xdebug would likely be very
> revealing in finding the real problem.
>
>
> --
>
> Joe Besko                      Phone:        517.432.5335
> Systems Programmer             Fax:          517.353.9847
> Michigan State University      E-mail:       jbesko(a)msu.edu
> 313 Computer Center
> East Lansing, MI 48824-1042
>
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 04 Nov 2011 11:56:43 -0600
> From: Michael M Slusarz <slusarz at horde.org>
> To: horde at lists.horde.org
> Subject: Re: [horde] horde Digest, Vol 3141, Issue 1
> Message-ID:
>        <20111104115643.Horde.lNQ-M4F5lbhOtCdbY9mHeSA at bigworm.curecanti.org
> >
> Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
>
> Quoting San <sancmk at gmail.com>:
>
> > Dear List,
> >
> >  Bellow (message 7) I tried to put the character with accent (?, ?, ?, ?,
> > ?, ?, ?, ?, ?, ?, ) and a cedilla character ( ? ), that at Horde 4 I have
> > problem with encoding when I try to read at Webmail, but when I open the
> > same message using a e-mail client, like the thunderbird I can read the
> > message without the encode problem.
>
> I am using Horde 4 and can see these characters just fine.
>
> michael
>
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 04 Nov 2011 12:05:44 -0600
> From: Michael M Slusarz <slusarz at horde.org>
> To: horde at lists.horde.org
> Subject: Re: [horde] Error: No connection to server
> Message-ID:
>        <20111104120544.Horde.I9baK4F5lbhOtCl4HtSAtjA at bigworm.curecanti.org
> >
> Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
>
> Quoting Joe Besko <jbesko at msu.edu>:
>
> > I would suggest trying to use Xdebug to help resolve this memory
> > problem.  When trying to resolve our "out of memory" problem with
> > 50MB attachments, I have quite surprised at how much memory was
> > needed to send a 50MB attachment.  When trying to send an
> > attachment, PHP consumed about 7-8 times the uuencoded size of the
> > file, plus the original 50MB plus the normal cost of sending a
> > message.  In the end, I had to set the PHP memory limit to 650MB to
> > allow 50MB attachments to be sent.
>
> This is not true for IMP 5.  MIME handling has been completely
> rewritten and it uses temporary file streams, and memory usage should
> not be this crushing (some of the other reasons for this memory usage,
> such as using PEAR's Mail and DB libraries, have also been changed for
> Horde 4).
>
> Although remember these points:
>
> 1.) Nobody should ever be sending 50 MB attachments.  MIME was never
> designed to efficiently handle this kind of data load (size wise,
> remember that binary data will be inflated an additional 25% for
> base64 encoding).  Therefore...
> 2.) Don't be surprised when IMP takes a significant amount of memory
> to process these kind of large attachments.  This would be no
> different than having a web browser load a 100MB web page.  Further...
> 3.) If sending a 50 MB attachment, do NOT assume that the reader can
> view/download such an attachment.
>
> michael
>
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
>
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 4 Nov 2011 18:23:01 +0000 (GMT)
> From: Spyros Tsiolis <stsiol at yahoo.co.uk>
> To: Horde List <horde at lists.horde.org>
> Subject: [horde] Integrating Horde with LDAP, getting there . . .
> Message-ID:
>        <1320430981.90920.YahooMailNeo at web27208.mail.ukl.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hello again people,
>
> Well, I managed to make Horde play with LDAP.
> Created an LDAP schema and after some bug (mainly
> syntax) chasing, I managed to get LDAP contacts
> on Horde.
>
> However, I have a problem. Here is the error
> message :
>
> <BEGIN
>
> There was an error adding the new contact. Contact your system
> administrator for further help.
> END>
>
> Here's the /etc/openldap/slapd.conf file :
>
> <BEGIN
> #
> # See slapd.conf(5) for details on configuration options.
> # This file should NOT be world readable.
> #
>
> #
> # Global Section
> #
>
> include???????? /etc/openldap/schema/core.schema
> include???????? /etc/openldap/schema/cosine.schema
> include???????? /etc/openldap/schema/inetorgperson.schema
> # include?????????????? /etc/openldap/schema/nis.schema
>
> #
> # Added logging parameters
> #
>
> loglevel??????? 296
> pidfile???????? /var/run/openldap/slapd.pid
> argsfile??????? /var/run/openldap/slapd.args
> #
> # Misc Security Settings
> #
> # password-hash {SSHA}
>
>
> # Sample access control policy:
> #?????? Root DSE: allow anyone to read it
> #?????? Subschema (sub)entry DSE: allow anyone to read it
> #?????? Other DSEs:
> #?????????????? Allow self write access
> #?????????????? Allow authenticated users read access
> #?????????????? Allow anonymous users to authenticate
> #?????? Directives needed to implement policy:
> # access to dn.base="" by * read
> # access to dn.base="cn=Subschema" by * read
> # access to *
> #?????? by self write
> #?????? by users read
> #?????? by anonymous auth
> #
> # if no access controls are present, the default policy
> # allows anyone and everyone to read anything but restricts
> # updates to rootdn.? (e.g., "access to * by * read")
> #
> # rootdn can always read and write EVERYTHING!
>
> #######################################################################
> # ldbm and/or bdb database definitions
> #######################################################################
>
> database??????? bdb
> # suffix??????????????? "dc=my-domain,dc=com"
> suffix????????? "dc=abaxb2b,dc=gr"
>
> # rootdn??????????????? "cn=manager,dc=my-domain,dc=com"
> rootdn????????? "cn=root,dc=abaxb2b,dc=gr"
>
> # rootpw??????????????? {crypt}ijFYNcSNctBYg
> rootpw? {SSHA}csQPnPj6uE3qUhw/xzjPO8AU9heQja1z
>
>
> # The database directory MUST exist prior to running slapd AND
> # should only be accessible by the slapd and slap tools.
> # Mode 700 recommended.
> # directory???? /var/lib/ldap
> directory?????? /var/lib/ldap/abaxb2b.gr
>
> #
> # Files should be created rw for the owner *only*
> #
> mode??? 0600
>
>
> #
> # Indices to maintain for this database
> #
> index?? objectClass???? eq
> index?? cn,sn,mail????? eq,sub
>
> #
> # db tuning parameters; cache 2,000 entries in memory
> #
> cachesize?????? 2000
>
>
> #
> # Simple ACL granting access "read" to the world
> #
> access to *
> ?by * read
> ?by * write
>
> END>
>
> I don't enclose the /var/www/horde/turba/conf/sources.php file ,
> but I don't think there's anything wrong with that.
>
> Horde versions :
>
> Horde Version
>
> ??? Horde: 3.3.6
>
> Horde Applications
>
> ??? Dimp: H3 (1.1.4)
> ??? Horde: 3.3.6
> ??? Imp: H3 (4.3.6) (run Imp tests)
> ??? Ingo: H3 (1.2.3) (run Ingo tests)
> ??? Kronolith: H3 (2.3.3) (run Kronolith tests)
> ??? Mimp: H3 (1.1.3)
> ??? Mnemo: H3 (2.2.3)
> ??? Nag: H3 (2.3.4)
> ??? Turba: H3 (2.3.3) (run Turba tests)
>
> PHP Version
>
> ??? View phpinfo() screen
> ??? View loaded extensions
> ??? PHP Version: 5.3.1
> ??? PHP Major Version: 5.3
> ??? PHP Minor Version: 1
> ??? PHP Version Classification: release
> ??? This version of PHP has not been fully tested with this version of
> Horde.
>
>
> Any help would be greatly appreciated.
>
> TIA,
>
> s.
>
>
> ?
>
> ----
> "I merely function as a channel that filters
> music through the chaos of noise"
> - Vangelis
>
>
> ------------------------------
>
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>
> End of horde Digest, Vol 3141, Issue 6
> **************************************
>


More information about the horde mailing list