On Tuesday 30 November 2004 22:08, Ralf S. Engelschall wrote:
> On Tue, Nov 30, 2004, Bill Campbell wrote:
> > I just spent a fair amount of time figuring out why horde and imp
> > weren't working on a system where I had recently updated them from
> > OpenPKG Release 2.1 to Release 2.2, and finally tracked it down to
> > two things which I was able to fix by fiddling the
> > etc/apache/php.ini and etc/php/php.ini files.
> >
> > 1. The default include_path'' variable doesn't include
> > %{l_prefix}/lib/php so the horde/lib/Registry.php script
> > couldn't find PEAR.php.
> >
> > include_path = ".:%{l_prefix}/lib/php"
>
> Yes, sounds reasonable. I'll add this to php.ini.
>
> > 2. After adding an appropriate include_path to the php.ini
> > files, the scripts still wouldn't run until I changed safe_mode''
> > to off''.
>
> Hmmm... perhaps instead of "safe_mode off" it also works
> with the safer "safe_mode_include_dir = @l_prefix@/lib/php"?
Speaking of safe_mode. The standalone php binary also has "safe_mode on"
by default in 2.2. That is quite annoying -- for example pear is suffering.
In order to install a PEAR package with the default configuration I have
to resort to weird solutions like
env PHP_PEAR_PHP_BIN="/kolab/bin/php -d safe_mode=off" /kolab/bin/pear ...
regards
--
Steffen Hansen | Klar�lvdalens Datakonsult AB
Senior Software Engineer| http://www.klaralvdalens-datakonsult.se
|
| Platform-independent
| software solutions
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [EMAIL PROTECTED]