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

olivier__ oansseau at bawet.org
Fri Sep 12 10:12:39 UTC 2014


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




--
View this message in context: http://horde.690.n7.nabble.com/horde-webmail-in-a-local-PEAR-installation-how-to-define-include-path-tp127205.html
Sent from the Horde - General mailing list archive at Nabble.com.


More information about the horde mailing list