[horde] Fwd: Re: Hard code path to PEAR

Jan Schneider jan at horde.org
Mon Jun 1 10:07:39 UTC 2009



----- Weitergeleitete Nachricht von mkroken at gmail.com -----
     Datum: Mon, 1 Jun 2009 11:58:35 +0200
       Von: Magnus Kroken <mkroken at gmail.com>
   Betreff: Re: [horde] Hard code path to PEAR
        An: Jan Schneider <jan at horde.org>

2009/6/1 Jan Schneider <jan at horde.org>

> Zitat von Magnus Kroken <mkroken at gmail.com>: 
>
> > Hi, I'm a new Horde user
> > I've just installed Horde Framework 3.3.4, and some of the applications (all
> > latest versions as of today). My host gives each user its own PEAR
> > repository (at /home/username/php), so there is no global one (like
> > /usr/local/lib/php). I've spent an hour copying php.ini-files across the
> > file system (PEAR not included in global php.ini, so I use per-directory
> > php.ini-files, seems to be the only way), to set the include_path to include
> > my own PEAR repository. I've finally got the basic things to work, but Turba
> > and Gollem still gives me this:
> > Warning: include_once(Log.php) [function.include-once]: failed to open
> > stream: No such file or directory in
> > /home/username/public_html/horde/lib/Horde.php on line 14
> >
> > Warning: include_once() [function.include]: Failed opening 'Log.php' for
> > inclusion
> > (include_path='/home/username/public_html/horde/lib:.:/usr/lib/php:/usr/local/lib/php')
> > in /home/username/public_html/horde/lib/Horde.php on line 14
> >
> > Warning: DataTree_sql::require_once(DB.php)
> > [function.DataTree-sql-require-once]: failed to open stream: No such file or
> > directory in /home/username/public_html/horde/lib/Horde/DataTree/sql.php on
> > line 1879
> >
> > Fatal error: DataTree_sql::require_once() [function.require]: Failed opening
> > required 'DB.php'
> > (include_path='/home/username/public_html/horde/lib:.:/usr/lib/php:/usr/local/lib/php')
> > in /home/username/public_html/horde/lib/Horde/DataTree/sql.php on line 1879
> > Is there a file that is always included in all applications, where I can set
> > the include_path to include my own PEAR? It would make this game of guessing
> > which folders need php.inis a lot easier.
>
>
>   Why don't you set the path in the horde base folder?
> Anyway, there's lib/core.php.
>
> Jan.

I have a php.ini in the horde base folder. I also have this line in lib/core.php: 
ini_set('include_path', dirname(__FILE__) . PATH_SEPARATOR . '/home/username/php' . PATH_SEPARATOR . ini_get('include_path'));  

Does that look correct? 

Regards, 
Magnus Kroken 

> -- 
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org

----- Ende der weitergeleiteten Nachricht -----

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.horde.org/archives/horde/attachments/20090601/44b14580/attachment.bin>


More information about the horde mailing list