[horde] freeBSD ports pear problems - suggest this for various problems like weather.com etc

Mark Worsdall horde at worsdall.demon.co.uk
Wed Feb 8 16:36:43 PST 2006


Hi,

On trying to solve a few problems with horde like the weather.com block
and a downloading large attachements, I trawled through the horde
mailing lists for various suggestions.

It soon became clear to me that for some reason my ports collection was
not in sync with what pear said was installed. See output from command
below:-

ls -l /var/db/pkg | grep \ pear- ; pear list


 pear-1.4.6
 pear-Auth-1.2.3_1
 pear-Auth_SASL-1.0.1_1
 pear-Cache-1.5.4
 pear-Crypt_CHAP-1.0.0
 pear-DB-1.7.6,1
 pear-Date-1.4.6
 pear-File-1.2.2,1
 pear-File_Passwd-1.1.6
 pear-HTTP_Request-1.3.0
 pear-Log-1.9.3
 pear-Mail-1.1.9
 pear-Mail_Mime-1.3.1
 pear-Net_SMTP-1.2.7
 pear-Net_Socket-1.0.6
 pear-Net_URL-1.0.14
 pear-SOAP-0.9.1
 pear-Services_Weather-1.3.2
 pear-XML_Parser-1.2.7
 pear-XML_Serializer-0.16.0
 pear-XML_Util-1.1.1
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.1   stable
Auth             1.2.3   stable
Auth_SASL        1.0.1   stable
Cache            1.5.4   stable
Console_Getopt   1.2     stable
Crypt_CHAP       1.0.0   stable
DB               1.7.6   stable
Date             1.4.6   stable
File             1.2.2   stable
File_Passwd      1.1.6   stable
HTTP_Request     1.3.0   stable
Log              1.9.3   stable
Mail             1.1.9   stable
Mail_Mime        1.3.1   stable
Net_SMTP         1.2.7   stable
PEAR             1.4.6   stable
Services_Weather 1.3.2   stable
XML_Parser       1.2.7   stable
XML_RPC          1.4.5   stable
XML_Serializer   0.16.0  beta
XML_Util         1.1.1   stable


as you can see pear-Net_Socket is registered as installed in the ports
but not in the pear list.

to fix this I did:

portupgrade -f pear-Net_Socket

in fact I had to install loads of them:

portupgrade -f pear-Auth
portupgrade -f pear-Auth_SASL
portupgrade -f pear-Cache
portupgrade -f pear-Crypt_CHAP
portupgrade -f pear-DB
portupgrade -f pear-Mail_Mime
portupgrade -f pear-Net_Socket
portupgrade -f pear-Net_URL
portupgrade -f pear-SOAP
portupgrade -f pear-Services_Weather
portupgrade -f pear-XML_Serializer

after all this I had the following o/p:-

pear-1.4.6
pear-Auth-1.2.3_1
pear-Auth_SASL-1.0.1_1
pear-Cache-1.5.4
pear-Crypt_CHAP-1.0.0
pear-DB-1.7.6,1
pear-Date-1.4.6
pear-File-1.2.2,1
pear-File_Passwd-1.1.6
pear-HTTP_Request-1.3.0
pear-Log-1.9.3
pear-Mail-1.1.9
pear-Mail_Mime-1.3.1
pear-Net_SMTP-1.2.7
pear-Net_Socket-1.0.6
pear-Net_URL-1.0.14
pear-SOAP-0.9.1
pear-Services_Weather-1.3.2
pear-XML_Parser-1.2.7
pear-XML_Serializer-0.16.0
pear-XML_Util-1.1.1

Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.1   stable
Auth             1.2.3   stable
Auth_SASL        1.0.1   stable
Cache            1.5.4   stable
Console_Getopt   1.2     stable
Crypt_CHAP       1.0.0   stable
DB               1.7.6   stable
Date             1.4.6   stable
File             1.2.2   stable
File_Passwd      1.1.6   stable
HTTP_Request     1.3.0   stable
Log              1.9.3   stable
Mail             1.1.9   stable
Mail_Mime        1.3.1   stable
Net_SMTP         1.2.7   stable
Net_Socket       1.0.6   stable
Net_URL          1.0.14  stable
PEAR             1.4.6   stable
SOAP             0.9.1   beta
Services_Weather 1.3.2   stable
XML_Parser       1.2.7   stable
XML_RPC          1.4.5   stable
XML_Serializer   0.16.0  beta
XML_Util         1.1.1   stable


Now I noticed that some how pear XML_RPC is in the pear list but does
not appear in the ports installed list. I could not find it in the ports
collection to install so I guess it has been deprecated, however doing
the following command revealed:

locate XML_RPC

/var/db/pkg/pear-XML_RPC-1.4.3

Anyway, I restarted apache

/usr/local/etc/rc.d/apache.sh restart

made sure I logged out of horde and logged back in. Unfortunately this
did not fix the downloading of large attachements, IMP still goes to a
blank screen only now there is no error in the php.log file which is
worrying.


the weather.com error is still there:-

HORDE [error] [horde] The weather.com block will not work without the
PEARServices_Weather and Cache packages, and allow_url_fopen enabled.
Run pear install Services_Weather Cache, and ensure that
allow_url_fopen_wrappers is enabled in php.ini. [on line 108 of
"/usr/www/webmail/horde/lib/Block/weatherdotcom.php"]

Just to mention in php.ini its

allow_url_fopen  = On

under the wrappers section and not allow_url_fopen_wrappers = On
is that correct?

Has anyone got a freeBSD php.ini I can have a copy of?


Still I think it was still worth it, the tidy up and I hope the little
checks I did help others.

M.
-- 
Mark Worsdall
http://www.shadowrobot.com/  need a hand??


More information about the horde mailing list