Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50991 - horde-imp cannot find php modules
Summary: horde-imp cannot find php modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-13 16:53 UTC by Mario Vazquez
Modified: 2004-05-28 14:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Vazquez 2004-05-13 16:53:52 UTC
I follow the qmail/vpopmail Howto http://www.gentoo.org/doc/en/qmail-howto.xml and after emerging horde-imp, change their config files and starting the apache server, it gives me the error:

Warning: main(PEAR.php): failed to open stream: No such file or directory in /var/www/localhost/htdocs/horde/lib/Registry.php on line 13

Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:') in /var/www/localhost/htdocs/horde/lib/Registry.php on line 13



Reproducible: Always
Steps to Reproduce:
1. Follow the qmail/vpopmail howto just after setting horde-imp configs
2. Start (or restart) apache webserver


Actual Results:  
Horde-imp refuse to start giving the message:

Warning: main(PEAR.php): failed to open stream: No such file or directory in
/var/www/localhost/htdocs/horde/lib/Registry.php on line 13

Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:') in
/var/www/localhost/htdocs/horde/lib/Registry.php on line 13


Expected Results:  
horde-imp login screen should be visible.

I already test php using the sample index.php found
http://www.linuxguruz.com/z.php?id=31 and its working.

I think the problem is that horde-imp cannot find the php files under
/usr/lib/php because after replacing:
require_once 'PEAR.php';
with
require_once '/usr/lib/php/PEAR.php';
on /var/www/localhost/htdocs/horde/lib/Registry.php (line #13) the imp logging
screen began to work.

My emerge info is:
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo-r2)
=================================================================
System uname: 2.4.25-gentoo-r2 i686 Pentium II (Klamath)
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=pentium2 -fomit-frame-pointer -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/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 -pipe -march=pentium2 -fomit-frame-pointer -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://128.213.5.34/gentoo/
http://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X509 acpi apache2 apm arts autofs avi berkdb chroot crypt cups encode fbcon
foomaticdb gdbm gif gpm idea imap imlib ipv6 java jpeg ldap libg++ libwww mad
maildir mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib
perl png prelude python quicktime readline sdl slang spell ssl svga tcpd threads
tiff truetype usb virus-scan x86 xml xml2 xmms xv zlib"

In addition, I have a non Xwin server with kernel compiled with custom
grsecurity settings with all options selected.
Comment 1 Mario Vazquez 2004-05-13 17:16:41 UTC
Made a more intense research and found that the problem is apparently a
PHP config/install issue.  The /etc/php/apache2-php4/php.ini file has this line:
;include_path = ".:/php/includes"
and it should be
include_path = "/usr/lib/php"

Also the /etc/php/cli-php4/php.ini
 have the same include_path entry as the file above, so probably it should be modified also..
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2004-05-14 15:14:09 UTC
Okay, this needs to be fixed by our PHP team.  Re-assigning.
Comment 3 SpanKY gentoo-dev 2004-05-15 22:03:34 UTC
yes, i've gotten a ton of e-mails about this because of the qmail/horde HOWTO i wrote ...

perhaps related to Bug 50908 ?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-28 14:40:41 UTC
i've fixed the include_path issue now.
please test.