6.0.0-beta1
9/2/25

[#11610] config/registry.php fails to detect horde installation path
Summary config/registry.php fails to detect horde installation path
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester thomas.jarosch (at) intra2net (dot) com
Created 10/31/2012 (4689 days ago)
Due
Updated 12/06/2012 (4653 days ago)
Assigned
Resolved 12/06/2012 (4653 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/06/2012 06:18:25 PM Thomas Jarosch Comment #2
State ⇒ Not A Bug
Reply to this comment
Jan explained to me httpd's Aliases can't be detected automatically.

So I set all paths manually via registry.d/local-config.php and it works fine.

10/31/2012 01:26:40 PM Thomas Jarosch Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ config/registry.php fails to detect horde installation path
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
Reply to this comment
Hi,

horde/config/registry.php of H5 fails to detect my horde installation 
path correctly.
At least it does not list any apps after logging in. I've always 
worked around this
with a simple tweak in registry.php and totally forgot about it:

-------------
# Fix root directory
$app_fileroot = '/usr/intranator/html/horde';
-------------

I tried to add debug code to dump the "$app_fileroot"
but it's not set in registry.php yet.

Also the example $app_fileroot path
     "$app_fileroot = __DIR__ . '../';"
seems broken to me since "__DIR__" does not contain a slash at the end.


Here's my debug code I've added so far:
------------------------------------
diff --git a/horde/config/registry.php b/horde/config/registry.php
index 16e0f61..d899706 100644
--- a/horde/config/registry.php
+++ b/horde/config/registry.php
@@ -66,8 +66,15 @@
  // If your applications live in a different base directory, defining these
  // variables will change the default directory without the need to change
  // every application's 'fileroot'/'webroot' settings.
-// $app_fileroot = __DIR__ . '../';
-// $app_webroot = $this->_detectWebroot();
+
+$app_fileroot = __DIR__ . '../';
+$app_webroot = $this->_detectWebroot();
+$fp = fopen("/tmp/debug_reg.log", "a");
+fprintf($fp, "app_fileroot: $app_fileroot, app_webroot: $app_webroot\n");
+
+# Fix root directory
+$app_fileroot = '/usr/intranator/html/horde';
+

  $this->applications = array(
      'horde' => array(
------------------------------------

How does the auto detection work normally?

Thomas

Saved Queries