[horde] GIT questions..

Simon Brereton simon.buongiorno at gmail.com
Fri Mar 8 10:47:22 UTC 2013


On 7 March 2013 20:12, Michael J Rubinsky <mrubinsk at horde.org> wrote:
>
> Quoting Simon Brereton <simon.buongiorno at gmail.com>:
>
>> On 7 March 2013 02:48, Michael M Slusarz <slusarz at horde.org> wrote:
>>>
>>> Quoting Simon Brereton <simon.buongiorno at gmail.com>:
>>>
>>>> For clarification, my git-repository is /usr/share/git-horde5/ and my
>>>> $web_dir = '/usr/share/horde-beta';  I'm not sure if the $app_fileroot
>>>> should be the git repository or the web-root.  Essentially, it
>>>> shouldn't matter because the web_root is just a symlink to the git
>>>> repository, no?
>>>
>>>
>>>
>>> $app_fileroot only deals with the physical location on the disk.  It has
>>> nothing to do with web location/availability.
>>>
>>> Your registry.local.php should contain ONLY (at least at this point)
>>>
>>> <?php
>>> $app_fileroot = [Horde location on disk];
>>
>>
>>
>>
>>>> I do have the horde.local.phps though, so that means the install_dev
>>>> script worked because it's only in the apps I specified.
>>>> mail:/usr/share/git-horde5# find . -type f -name horde.local.php
>>>> ./imp/config/horde.local.php
>>>> ./kronolith/config/horde.local.php
>>>> ./mnemo/config/horde.local.php
>>>> ./passwd/config/horde.local.php
>>>> ./nag/config/horde.local.php
>>>> ./horde/config/horde.local.php
>>>> ./turba/config/horde.local.php
>>>>
>>>>
>>>> What I don't have is any apps showing - still..
>>>>
>>>> 2013-03-06T23:26:26+00:00 DEBUG: HORDE-BETA Setting imp inactive
>>>> because the fileroot does not exist or the application is not
>>>> configured yet. [pid 27221 on line 683 of
>>>
>>>
>>>
>>> One of these tests is failing:
>>>
>>> $app_fileroot/imp doesn't exist
>>> $app_fileroot/imp/config/conf.xml exists but conf.php doesn't
>>
>>
>> (the value in ../imp/config/horde.local.php and the value of $web_dir)
>
>
> Not sure what what you means by that.
>
> What you should have in imp/config/horde.local.php is a define for
> HORDE_BASE. This is automatically generated by the install_dev script and
> should point to an ABSOLUTE PHYSICAL path on your file system to the root of
> your web-accessible horde directory. E.g, /var/www/html/horde.
>
> Additionally, horde/config/horde.local.php should contain the same define,
> but updates the include_path to contain the ABSOLUTE PHYSICAL path to your
> horde/libs directory (again, created by the install_dev script).
>
> In horde/config/registry.local.php you would put your $app_fileroot and
> $app_webroot definitions. E.g.,
> $app_fileroot = '/var/www/html/horde' and $app_webroot = '/horde';

Okay, I repaired my git repository and copied over all the conf.php
and *.local.php files that I need and changed all the permissions and
I'm back to where I was.  I still have an issue with this
$app_fileroot/$app_webroot though.  Sorry.

The log fills with:

2013-03-08T09:38:45+00:00 WARN: HORDE-BETA PHP ERROR: include():
Failed opening '/usr/share/git-horde5/horde/lib/../config/registry.local.php'
for inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 5024 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:38:48+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 5024 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:38:48+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(): Failed opening
'/usr/share/git-horde5/horde/lib/../config/registry.local.php' for
inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 5024 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:39:43+00:00 WARN: HORDE-BETA PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 9800 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:39:43+00:00 WARN: HORDE-BETA PHP ERROR: include():
Failed opening '/usr/share/git-horde5/horde/lib/../config/registry.local.php'
for inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 9800 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:39:46+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 9800 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:39:46+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(): Failed opening
'/usr/share/git-horde5/horde/lib/../config/registry.local.php' for
inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 9800 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:42:44+00:00 WARN: HORDE-BETA PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 5038 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:42:44+00:00 WARN: HORDE-BETA PHP ERROR: include():
Failed opening '/usr/share/git-horde5/horde/lib/../config/registry.local.php'
for inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 5038 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:42:48+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 5038 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:42:48+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(): Failed opening
'/usr/share/git-horde5/horde/lib/../config/registry.local.php' for
inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 5038 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:52:58+00:00 WARN: HORDE-BETA PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 5223 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:52:58+00:00 WARN: HORDE-BETA PHP ERROR: include():
Failed opening '/usr/share/git-horde5/horde/lib/../config/registry.local.php'
for inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 5223 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:53:02+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 5223 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:53:02+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(): Failed opening
'/usr/share/git-horde5/horde/lib/../config/registry.local.php' for
inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 5223 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:59:04+00:00 WARN: HORDE-BETA PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 9800 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:59:04+00:00 WARN: HORDE-BETA PHP ERROR: include():
Failed opening '/usr/share/git-horde5/horde/lib/../config/registry.local.php'
for inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 9800 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:59:08+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 9800 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T09:59:08+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(): Failed opening
'/usr/share/git-horde5/horde/lib/../config/registry.local.php' for
inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 9800 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T10:14:28+00:00 WARN: HORDE-BETA PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 9957 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T10:14:28+00:00 WARN: HORDE-BETA PHP ERROR: include():
Failed opening '/usr/share/git-horde5/horde/lib/../config/registry.local.php'
for inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 9957 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T10:14:32+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(/usr/share/git-horde5/horde/config/registry.local.php): failed
to open stream: Permission denied [pid 9957 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]
2013-03-08T10:14:32+00:00 WARN: HORDE-BETA [horde] PHP ERROR:
include(): Failed opening
'/usr/share/git-horde5/horde/lib/../config/registry.local.php' for
inclusion (include_path='/usr/share/horde-beta/libs:/usr/share/git-horde5/horde/lib:.:/usr/share/php:/usr/share/pear')
[pid 9957 on line 638 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Registry.php"]



Per what you wrote:

> In horde/config/registry.local.php you would put your $app_fileroot and
> $app_webroot definitions. E.g.,
> $app_fileroot = '/var/www/html/horde' and $app_webroot = '/horde';

in horde/config/registry.local.php I have:
$app_fileroot = '/usr/share/git-horde5';
$app_webroot = '/.';

The reason I went with / instead of /horde is because the file says
this value should point to the location of the individual apps.  In a
pear install, that would be IN the horde directory.  In a git install,
they are on the same level as horde:  e.g.

mail:/usr/share/git-horde5# ls
total 200K
drwxr-xr-x  45 root www-data 4.0K Mar  8 08:18 ./
drwxr-xr-x 153 root root     4.0K Mar  8 08:31 ../
drwxr-xr-x   7 root www-data 4.0K Mar  8 08:16 components/
drwxr-xr-x   9 root www-data 4.0K Mar  8 08:16 content/
drwxr-xr-x 119 root www-data 4.0K Mar  8 08:17 framework/
drwxr-xr-x   8 root www-data 4.0K Mar  8 08:18 .git/
-rw-r--r--   1 root root      605 Mar  8 08:16 .gitattributes
-rw-r--r--   1 root root     1.7K Mar  8 08:16 .gitignore
drwxr-xr-x  17 root www-data 4.0K Mar  8 08:17 horde/
-rw-r--r--   1 root root       14 Mar  8 08:16 .htaccess
drwxr-xr-x  12 root www-data 4.0K Mar  8 08:17 imp/
drwxr-xr-x  11 root www-data 4.0K Mar  8 08:17 ingo/
drwxr-xr-x  15 root www-data 4.0K Mar  8 08:17 kronolith/
drwxr-xr-x  14 root www-data 4.0K Mar  8 08:17 mnemo/
drwxr-xr-x  15 root www-data 4.0K Mar  8 08:17 nag/
drwxr-xr-x  11 root www-data 4.0K Mar  8 08:18 passwd/
drwxr-xr-x  10 root www-data 4.0K Mar  8 08:18 skeleton/
drwxr-xr-x   6 root www-data 4.0K Mar  8 08:18 timeobjects/
-rw-r--r--   1 root root     5.3K Mar  8 08:16 .travis.yml
drwxr-xr-x  14 root www-data 4.0K Mar  8 08:18 turba/
etc..

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/Registry.php
-rw-r--r-- 1 root root 96K Mar  1 14:10
../horde-backup/pear/php/Horde/Registry.php

So, I don't think that's the issue.

I'll increase the debugging and see what other hint I get, but for now
I'm stuck and as before I don't think it makes sense to randomly
change variables I don't fully understand :)

Simon




> The really important thing to remember here about $app_fileroot is that it
> MUST be a real physical path on your filesystem it CANNOT be a symlinks.


More information about the horde mailing list