[horde] configuring of horde failed

Luc de Louw luc at delouw.ch
Sun Dec 8 09:31:48 PST 2002


s-beutel at gmx.de wrote:

> Luc,
>
> strange things are going on: www.horde.org is not reachable from here 
> (thus
> I cannot browse the faq at the moment), and my mails don't reach the 
> list's
> server...


The server was obviousely down, and the Backup-MX rejected the mails for 
lists.horde.org :-(

>
>
> I am pretty sure it's either a php problem (as described before) or has to
> do with the changed file structure.
>
> -  with php: your php configuration seems okay. But I know there are some
> functions missing in newer versions. If possible, check the php 
> version of the
> running server you mentioned.
> -  with file structure: where does the 'e-center' come from (whilst you
> wrote about that fault occuring when opening /horde/login.php)? This 
> is really
> weird. I know that there are some changes necessary when horde being 
> installed
> in other subdir names (faq's not reachable...)
> -  with both: switch on php error loggin (in your php.ini) and look 
> thru the
> messages you're getting.


[..]

I run apache with strace -f and found the error:

[pid 23249] lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 23249] lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, 
...}) = 0
[pid 23249] lstat64("/usr/local/apache2", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
[pid 23249] lstat64("/usr/local/apache2/htdocs", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
[pid 23249] lstat64("/usr/local/apache2/htdocs/horde", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 23249] lstat64("/usr/local/apache2/htdocs/horde/index.php", 
{st_mode=S_IFREG|0644, st_size=1615, ...}) = 0
[pid 23249] brk(0x8212000)              = 0x8212000
[pid 23249] ioctl(13, TCGETS, 0xbfffe060) = -1 ENOTTY (Inappropriate 
ioctl for device)
[pid 23249] fstat64(13, {st_mode=S_IFREG|0644, st_size=1615, ...}) = 0
[pid 23249] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
[pid 23249] read(13, "<?php\n/*\n * $Horde: horde/index."..., 8192) = 1615
[pid 23249] read(13, "", 4096)          = 0
[pid 23249] brk(0x8213000)              = 0x8213000
[pid 23249] brk(0x8217000)              = 0x8217000
[pid 23249] read(13, "", 8192)          = 0
[pid 23249] ioctl(13, TCGETS, 0xbfffcfe0) = -1 ENOTTY (Inappropriate 
ioctl for device)
[pid 23249] close(13)                   = 0
[pid 23249] munmap(0x40014000, 4096)    = 0
[pid 23249] access("./config/horde.php", F_OK) = -1 ENOENT (No such file 
or directory)

---------------------------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^

WTF?! the file /usr/local/apache2/htdocs/horde/config/horde.php exists 
and is readable by "nobody"
Definition of the constant HORDE_BASE went fine and got the right value 
/usr/local/apach2/htdocs/horde


Then I inserted in index.php $horde_configured=true;

and all is running fine! (not all tested yet)

The problem seems to be here:

$horde_configured = (@file_exists('./config/horde.php') &&
<snip>

Any idea whats wrong with my php?

rgds

Luc










More information about the horde mailing list