[horde] horde-webmail in a local PEAR installation : how to define "include_path"

Jan Schneider jan at horde.org
Fri Sep 12 15:26:37 UTC 2014


Zitat von olivier__ <oansseau at bawet.org>:

> Hello.
> I installed horde webmail into a local PEAR installation (independent from
> the system-wide PEAR installation) on my mutualised webhost, following §3.2
> of the installation tutorial
> (http://www.horde.org/apps/webmail/docs/INSTALL)
>
> Now I don't know how to handle the last step to do :
> "Finally configure your web server in some way to point PHP's include_path
> setting to the PEAR installation and the PHP_PEAR_SYSCONF_DIR environment
> variable to the web root"
>
> I defined PHP_PEAR_SYSCONF_DIR in my .bashrc (is it the correct way to do
> this ?)
> export PHP_PEAR_SYSCONF_DIR=~/public_html/bawet.org/commun/horde/
>
> As I didn't define the include_path, .../horde/test.php give me the
> following error :
> "Could not find Horde's framework libraries in the following path(s):
> /home3/bawette/public_html/bawet.org/commun/horde/lib:.:/usr/lib/php:/usr/local/lib/php.
> Please read horde/docs/INSTALL for information on how to install these
> libraries."
> And those framework libraries are in
> /home3/bawette/public_html/bawet.org/commun/horde/pear/php/
>
> I tried the following :
> - php.ini :
> As I cannot write in the global php.ini (read-only) in
> /usr/local/lib/php.ini, I added a file php.ini in my webroot(public_html),
> horde and horde/lib directories with the following content :
> include_path =
> ".:/home3/bawette/public_html/bawet.org/commun/horde/pear/php:/usr/lib/php:/usr/local/lib/php"
> After that I had the following error for all php application (horde,
> roundcube, owncloud, ...) :
> " No input file specified. "
>
> - .htaccess
> Then I added the following line in the .htaccess in the horde directory :
> php_value include_path
> ".:/usr/lib/php:/usr/local/lib/php:/home3/bawette/public_html/bawet.org/commun/horde/pear/php"
> I have a "500 Internal Server Error"
> I read that in order to use .htaccess files to set the include path, PHP
> must be installed as an Apache module. Is it compiled as a CGI binary?
> phpinfo.php says : _SERVER["GATEWAY_INTERFACE"]	CGI/1.1
>
> - moving pear files.
> Just for testing purposes, I tried to move all the content of
> .../horde/pear/ into .../horde/lib/
> Now I have a new error message :D
> "A fatal error has occurred
> Class 'Horde_Cache' not found
> Details have been logged for the administrator."
>
> - defining the include path at the beginning of each php file (not tested)
> It's just an idea, but I read that include_path can be defined into each
> file :
> set_include_path(get_include_path() . PATH_SEPARATOR . $custom_path);
> However I don't how to perform this modification recursively
>
> Did I made a synthax error ? Did I miss something obvious ?
> Best regards,
> Olivier

Use a web server that you actually have control over.

-- 
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject



More information about the horde mailing list