[horde] GIT questions..
Simon Brereton
simon.buongiorno at gmail.com
Fri Mar 8 18:45:45 UTC 2013
On 8 March 2013 16:26, Michael J Rubinsky <mrubinsk at horde.org> wrote:
>
> Quoting Simon Brereton <simon.buongiorno at gmail.com>:
>
>> On 8 March 2013 12:38, Simon Brereton <simon.buongiorno at gmail.com> wrote:
>>>
>>> On 8 March 2013 12:01, Vilius Šumskas <vilius at lnk.lt> wrote:
>>>>>
>>>>> The file does exist (although I guess it's possible the permissions
>>>>> need changing).
>>>>> mail:/usr/share/git-horde5# ls
>>>>> /usr/share/git-horde5/framework/Core/lib/Horde/Registry.php
>>>>> -rw-r--r-- 1 root root 96K Mar 8 08:16
>>>>> /usr/share/git-horde5/framework/Core/lib/Horde/Registry.php
>>>>>
>>>>> however, the permissions are the same as the old file
>>>>> mail:/usr/share/git-horde5# ls
>>>>> ../horde-backup/pear/php/Horde/Registryphp
>>>>> -rw-r--r-- 1 root root 96K Mar 1 14:10
>>>>> ../horde-backup/pear/php/Horde/Registry.php
>>>>
>>>>
>>>>
>>>> You are looking at the wrong file. It's
>>>> /usr/share/git-horde5/horde/config/registry.local.php which cannot be
>>>> opened.
>>>
>>>
>>> Gah. So, I didn't manage to get all the file permissions correct (I
>>> obviously didn't do the *.local.php ones).
>>>
>>>
>>> But now I got the error
>>>
>>> A fatal error has occurred
>>> DirectoryIterator::__construct(/usr/share/git-horde5/themes): failed
>>> to open dir: No such file or directory
>>> Details have been logged for the administrator.
>>>
>>> It doesn't matter if I make the $app_webroot = horde or not..
>>
>>
>> So, this is definitely where my problem is. The Horde log says:
>> 2013-03-08T13:55:25+00:00 EMERG: HORDE-BETA [imp]
>> DirectoryIterator::__construct(/usr/share/git-horde5/themes): failed
>> to open dir: No such file or directory [pid 10865 on line 90 of
>> "/usr/share/git-horde5/framework/Core/lib/Horde/Themes.php"]
>>
>> Nothing that I change in $app_webroot seems to correct this. And my
>> understanding is that is where is should be corrected.
>>
>> if I change it so that $web_fileroot and $web_approot together make a
>> coherent path to the templates directory, then I get this error:
>>
>> 2013-03-08T14:07:17+00:00 EMERG: HORDE-BETA User is not authorized for
>> horde [pid 5223 on line 267 of
>> "/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
>
>
> What is the value of $web_dir in the install_dev.conf file? This should
> point to the web accessible directory you want to serve horde out of. E.g.,
> /var/www/myvirtualhost.com/horde. I don't remember if the script creates the
> /horde directory or not so you might have to create it first. This is where
> the install_dev script will symlink all the apps and libraries to.
// The web-accessible base directory for horde
$web_dir = '/usr/share/horde-beta/'; (this is my DocumentRoot in my
vhost config file).
The script DOES create the directory.
> $app_webroot, in horde/config/registry.local.php, if we follow the example
> in the last paragraph, should be set to '/horde'. As it is the webroot of
> the horde install. Likewise, $web_fileroot should be set to the same
> /var/www/myvirtualhost.com/horde that you used in the install_dev.conf
> script.
My $app_webroot = '/horde';
Did you mean $app_fileroot? I don't have a $web_fileroot.
And if you do, Michael S said that it had to be the physical location,
and not the directory that the symlinks are in.
But it doesn't matter, if I change it, I get an endless redirect and
the error that the user is not authorized for horde.
This is what I have:
/usr/share/git-horde5 <-- this are the physical files in the git repository
/usr/share/horde-beta <-- this the web accessible directory in the
vhost, created by the install_dev script
in framework/bin/install_dev.conf
// The list of apps to create symlinks for
$apps = array('horde', 'imp', 'kronolith', 'turba', 'ingo', 'mnemo',
'nag', 'passwd');
// The location of the horde-git repository
$horde_git = '/usr/share/git-horde5/';
// The web-accessible base directory for horde
$web_dir = '/usr/share/horde-beta/';
in /us/share/git-horde5/horde/config/registry.local.php
$app_fileroot = '/usr/share/git-horde5/';
$app_webroot = '/horde';
In horde/config/horde.local.php
<?php if (!defined('HORDE_BASE')) define('HORDE_BASE',
'/usr/share/horde-beta'); ini_set('include_path',
'/usr/share/horde-beta/libs' . PATH_SEPARATOR .
ini_get('include_path'));
In mail:/usr/share/git-horde5# cat imp/config/horde.local.php
<?php define('HORDE_BASE', '/usr/share/horde-beta');
For whatever reason the $app_webroot seems not to "take" - if it did,
then it would stop looking for /usr/share/git-horde5/templates and
look for /usr/share/git-horde5/horde/templates
What would happen if used registery.local.php to change the
approot/webroot setting for each application? And how would I do
this?
Simon
More information about the horde
mailing list