Hi, I am trying to install horde-imp on my server (by the way, the problem does exist in the stable as well as the unstable version of horde-imp) and I get an error message because a requested file does not exist. However firstly I installed horde-imp: # USE=vhosts ACCEPT_KEYWORDS="~x86" emerge horde-imp Then I configured it: # webapp-config -I -h customerA -d horde-imp horde-imp 4.0.1 When I now configure my Apache to point to that directory and access it with my browser I get the following error message: Warning: main(/var/www/customerA/htdocs/horde-imp/../lib/Test.php): failed to open stream: No such file or directory in /var/www/customerA/htdocs/horde-imp/index.php on line 19 Fatal error: main(): Failed opening required '/var/www/customerA/htdocs/horde-imp/../lib/Test.php' (include_path='.:/usr/lib/php') in /var/www/customerA/htdocs/horde-imp/index.php on line 19 Well I know this path ('/var/www/customerA/htdocs/horde-imp/../lib/Test.php) is wrong of course but even if I correct this, the file Test.php doesn't exist in that directory but is actually part of horde (not horde-imp!): # find / -name Test.php -print /usr/share/webapps/horde/3.0.2/htdocs/lib/Test.php I also searched the forums but I couldn't find a solution. I do believe the file in question Test.php is part of Horde (not Horde-IMP) so how to solve this? It really doesn't exist under /var/www/customerA/htdocs/horde-imp/lib. Any ideas? Thanks a lot and bye, Werner Reproducible: Always Steps to Reproduce: 1. Install horde-imp (stable or unstable version) 2. Access it with your web browser 3. The error message occurs Actual Results: The following error message occurs: Warning: main(/var/www/customerA/htdocs/horde-imp/../lib/Test.php): failed to open stream: No such file or directory in /var/www/customerA/htdocs/horde-imp/index.php on line 19 Fatal error: main(): Failed opening required '/var/www/customerA/htdocs/horde-imp/../lib/Test.php' (include_path='.:/usr/lib/php') in /var/www/customerA/htdocs/horde-imp/index.php on line 19 Expected Results: I should be able to access horde-imp without an error message. emerge info Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 8 2005, 14:46:45)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.6.3, 1.5, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X apache2 bash-completion berkdb bzlib cdb crypt curl dedicated fam flash gd gdbm gif imap imlib innodb java jpeg libwww maildir mcal memlimit mhash mime ming mysql ncurses nls pam pcre pdflib perl php png python qmail readline sasl slang sockets spell ssl tiff tokenizer truetype truetype-fonts type1-fonts unicode vhosts x86 xml2 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
This still an issue ?
ive never used webapp-config to setup horde before ... but this is how stuff exists currently ... horde-3.0.4 contains lib/Test.php when you install horde, it should be in <webroot>/horde such that http://website/horde/ works when you install horde-imp, it should be in <webroot>/horde/imp/ if imp is not in a subdir of the main horde install, it wont work, end of story
(In reply to comment #2) > ive never used webapp-config to setup horde before ... but this is how stuff exists currently ... I tried the same as the OP yesterday with exacly the same result, then I thought maybe horde-imp can't run without horde installed in the same <vhost> instance but installing horde (3.0.4) fails with random stat() errors like; "cp cannot stat '/usr/share/webapps/horde/3.0.4-r1/htdocs/lib/Net/SMS/vodafoneitaly_smtp.php': no such file or directory" (that file doesn't exists and I have no clue why webapp-config thinks it should be there.) > > horde-3.0.4 contains lib/Test.php > > when you install horde, it should be in <webroot>/horde such that http://website/horde/ works > > when you install horde-imp, it should be in <webroot>/horde/imp/ in case of horde-imp-4.0.3 ist is in <webroot>/horde-imp/ > > if imp is not in a subdir of the main horde install, it wont work, end of story Exactly, but this brings us nowhere. As the horde eclass inherits from webapp it should be managed by webapp correctly. I wouldn't complain if it just stayed out of my way. paul
*** Bug 100678 has been marked as a duplicate of this bug. ***
Horde 3.0.6 contains an error in horde/config/registry.php 1.) The horde-nag package creates a horde-nag directory, but the registry.php entry for nag is looking for ../nag as a directory. 2.) webapp-config -I -h <host> -d horde-nag horde-nag 2.0.3 creates the horde-nag directory along side the horde directory, not below it. The actual code in the horde/config/registry.php calls for: $this->applications['nag'] = array( 'fileroot' => dirname(__FILE__) . '/../nag', 'webroot' => $this->applications['horde']['webroot'] . '/nag', Moving the horde-nag directory to be below the horde directory, and changing horde/config/registry.php to look for the fileroot to be horde-nag fixes the problem. Both of these errors apply to horde-kronolith 2.04 as well. I suspect that this will apply to all the other horde modules as well.
For a given vhost, horde components should be installed into a subdir of where horde resides. So, if horde has been installed with "-d horde", horde-foo should be installed with "-d horde/foo", not "-d horde-foo". We can see at webapp.eclass:525, that webapp-config instruction takes $PN as a suggested installation directory, which is probably wrong for horde components.
This is http://www.vhost-tools.org/ticket/6