[horde] Error with data_dir

Jan Schneider jan at horde.org
Thu Feb 12 17:21:16 UTC 2015


Zitat von Hanns Mattes <hanns at hannsmattes.de>:

> Hi,
>
> Zitat von Jan Schneider <jan at horde.org>:
>
>> For some reason, your webserver either doesn't have access to that  
>> directory, or still uses a different PEAR configuration.
>>
>> Add a:
>> var_dump($pear->get('data_dir'));
>> at line 89 of Horde/Core/Db/Migration.php and you should see the  
>> path that's being used.
>
> Ah, yes: Looking at the source code of the page I see  
> /usr/lib/php/pear, which ist obviously wrong and seems to be the  
> default. But I've got no idea, why this value is used
>
> as root:
> linux:/ # pear config-show | grep data_dir
> PEAR data directory            data_dir         /usr/share/php5/PEAR/data
>
> as Apapche-user:
> linux: # sudo -u wwwrun pear config-show | grep data_dir
> PEAR data directory            data_dir         /usr/share/php5/PEAR/data
>
> per channel:
> linux: # pear config-show -c horde | grep data_dir
> PEAR data directory            data_dir         /usr/share/php5/PEAR/data
>
> Regards Hanns
>
>
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org

You may have used a different PEAR configuration during installation.  
And/or you have set the PHP_PEAR_SYSCONF_DIR in your webserver  
configuration.

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



More information about the horde mailing list