[horde] Error with data_dir
Jan Schneider
jan at horde.org
Fri Feb 13 09:14:27 UTC 2015
Please don't top-post!
Zitat von Patrick De Zordo <patrick at spamreducer.eu>:
>> -----Ursprüngliche Nachricht-----
>> Von: horde [mailto:horde-bounces at lists.horde.org] Im Auftrag von Hanns
>> Mattes
>> Gesendet: Donnerstag, 12. Februar 2015 17:47
>> An: horde at lists.horde.org
>> Betreff: Re: [horde] Error with data_dir
>>
>> 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
>>
> I've checked this also on one of our servers, same issue.
>
> root at mail02:/# pear config-show | grep data_dir
> PEAR data directory data_dir /usr/share/php/data
>
> root at mail02:/# sudo -u www-data pear config-show | grep data_dir
> PEAR data directory data_dir /usr/share/php/data
>
> root at mail02:/# pear config-show -c horde | grep data_dir
> PEAR data directory data_dir /usr/share/php/data
>
> var_dump($pear->get('data_dir'));
> gives me "/usr/share/php/data"
>
> root at mail02:/# ls -l /usr/share/php/data/
> drwxr-xr-x 2 root root 4096 Feb 10 19:01 PEAR
> drwxr-xr-x 3 root root 4096 Feb 10 19:19 XML_Serializer
>
> Do you need write access to the PEAR dir?
No, but you need to have Horde actually installed there. Which you don't.
--
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject
More information about the horde
mailing list