6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/7/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#2505] Horde's use of PHP_SELF to determine "webroot" creates problems with symlinked directories
*
Your Email Address
*
Spam protection
Enter the letters below:
. . . ..__ . . | | |\/|[__)|_/ |___|___| || | \
Comment
> Hello Jan, > > > > Where is this configuration option? I've found that in order to > manually set the webroot, I've had to comment out the auto-detection > section of registry.php and set the variable value again manually: > > > > /* > > if (isset($_SERVER['PHP_SELF'])) { > > $webroot = strstr(dirname(__FILE__), '/' . > array_shift(preg_split(';/;', $_SERVER['PHP_SELF'], 2, > PREG_SPLIT_NO_EMPTY))); > > if ($webroot !== false) { > > $webroot = preg_replace(';/config$;', '', $webroot); > > } else { > > $webroot = '/horde'; > > } > > } else { > > $webroot = '/horde'; > > } > > */ > > $webroot = '/horde'; > > > > If I don't do the above, the PHP_SELF detection logic kicks in and > determines the wrong webroot. > > > > Cheers, > > Nick
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers