[horde] New Install - Cannot autoload Horde Core libraries

Vilius Sumskas/LNK vilius at lnk.lt
Sun Jun 28 22:44:58 UTC 2015


> >> This is my current output from the command:
> >> --------------------------------------------------------------------
> >> config-show
> >> CONFIGURATION (CHANNEL PEAR.PHP.NET):
> >> =====================================
> >> Auto-discover new Channels     auto_discover    <not set>
> >> Default Channel                default_channel  pear.php.net
> >> HTTP Proxy Server Address      http_proxy       <not set>
> >> PEAR server [DEPRECATED]       master_server    pear.php.net
> >> Default Channel Mirror         preferred_mirror pear.php.net
> >> Remote Configuration File      remote_config    <not set>
> >> PEAR executables directory     bin_dir /opt/pear/local/pear
> >> PEAR documentation directory   doc_dir /opt/pear/local/pear/docs
> >> PHP extension directory        ext_dir /opt/pear/local/pear/ext
> >> Base Horde directory           horde_dir        /var/www/horde
> >> PEAR directory                 php_dir /opt/pear/local/pear/php
> >> PEAR Installer cache directory cache_dir /opt/pear/local/pear/cache
> >> PEAR configuration file        cfg_dir /opt/pear/local/pear/cfg
> >> directory
> >> PEAR data directory            data_dir /opt/pear/local/pear/data
> >> PEAR Installer download        download_dir 
> >> /opt/pear/local/pear/download
> >> directory
> >> PHP CLI/CGI binary             php_bin          /usr/bin/php
> >> php.ini location               php_ini /etc/php5/apache2/php.ini
> >> --program-prefix passed to     php_prefix       <not set>
> >> PHP's ./configure
> >> --program-suffix passed to     php_suffix       <not set>
> >> PHP's ./configure
> >> PEAR Installer temp directory  temp_dir /opt/pear/local/pear/temp
> >> PEAR test directory            test_dir /opt/pear/local/pear/tests
> >> PEAR www files directory       www_dir /opt/pear/local/pear/www
> >> Cache TimeToLive               cache_ttl        3600
> >> Preferred Package State        preferred_state  stable
> >> Unix file mask                 umask            2
> >> Debug Log Level                verbose          1
> >> PEAR password (for             password         <not set>
> >> maintainers)
> >> Signature Handling Program     sig_bin          /usr/bin/gpg
> >> Signature Key Directory        sig_keydir       /etc/pearkeys
> >> Signature Key Id               sig_keyid        <not set>
> >> Package Signature Type         sig_type         gpg
> >> PEAR username (for             username         <not set>
> >> maintainers)
> >> User Configuration File        Filename /opt/pear/local/pear.conf
> >> System Configuration File      Filename         /etc/pear.conf
> >> --------------------------------------------------------------------
> >>
> >> I change:
> >>
> >> php_ini from <not set> to  /etc/php5/apache2/php.ini
> >> horde_dir from /usr/share/php/www/horde to /var/www/horde
> >
> > You must make sure the php include_path is set to the pear php_dir. 
> > Use Horde's test.php to show the php info page and make sure it's set 
> > properly.
> >
> >> Do you see anything else that is obvious misconfigured?
> >>
> >> I used the (section 3.2) Installing into separte PEAR option, because 

> >> I couldn't get past the pear run-scripts horde/horde_role with the 
> >> default pear install.
> >
> > This is *extremely* easy to muck up. Make sure you have run ALL 
> > commands using the custom pear binary and configuration and not the 
> > system installed one. I.e., don't just type "pear <command>" you must 
> > use the /path/to/my/custom/pear etc... E.g., the config-show command 
> > you show above looks like it might have been done using the system 
pear.
> 
> Thanks, Michael.  I had assumed that.  I was very careful not to use the 

> system pear.  I thought this would happen by following the steps in 
> section 3.2 Installing into a separate PEAR.
> 
> In order to make sure that I didn't make a mistake and run the wrong 
> pear, I made a script called "mypear" which I used for performing all 
> the commands.  The script is:
> 
> -----------------------------------
> #!/bin/bash
> 
> # /var/www/horde/pear/pear -c /var/www/horde/pear.conf $*
> /opt/pear/local/pear/pear -c /opt/pear/local/pear.conf $*
> -----------------------------------
> 
> The commented out command is from one of the other fresh installs (in a 
> different location).  I don't know where the /usr/share/php/www/horde 
> comes from
> 
> I'll clean out this new install and try it some more, being as careful 
> as possible to keep everything separate.  If you have any suggestions of 

> something that might be missing from section 3.2 to keep the install 
> separate, I would appreciate any input.

I haven't read all thread, but usually some funky path as 
/usr/share/php/www/horde is shown because you are using wrong PEAR 
channel.

Check "pear config-show" and "pear config-show -c horde" to see the 
difference.

On top of that, keep in mind that PEAR has two levels of configuration 
files: system and user. What you see from config-show is a combined 
configuration. System configuration is stored in /etc/pear.conf and for 
user configuration check... /root/.pearrc

If I remember correctly, at least in the past, Horde tried to store PEAR's 
settings in user space. And for some reason Debian (and Ubuntu) are very 
picky about that .pearrc file. I've seen that file disappearing on user 
logout or on it's own on numerious occasions. Or user deletes it without 
knowing that these settings will be needed later when upgrading Horde.

If you cannot use system's PEAR check if you have all needed permissions 
to write to .pearrc or better yet, set Horde base path manually by doing 
"pear config-set horde_dir /your/path system".

-- 
   Vilius


More information about the horde mailing list