You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Werner Schalk <we...@gmx.de> on 2004/09/27 22:21:46 UTC
[users@httpd] Problems with chrooting Apache 2 and mod_auth_digest
Hi,
I have successfully chrooted Apache 2 and everything works pretty well.
Unfortunately I can't get it working with mod_auth_digest because I always
end up getting the following error message:
[Mon Sep 27 20:13:35 2004] [crit] (2)No such file or directory: Digest: error
generating secret: No such file or directory Configuration Failed
Any ideas what causes mod_auth_digest here to fail? I do have /dev/random
and /dev/null but it tends to be looking for other files. Any ideas?
Bye and thanks,
Werner.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Problems with chrooting Apache 2 and mod_auth_digest
Posted by Werner Schalk <we...@gmx.de>.
Hi,
well the Apache seems to start but then I got the following error message in
the error_log file:
[Mon Sep 27 20:13:35 2004] [crit] (2)No such file or directory: Digest:
error generating secret: No such file or directory Configuration Failed
However here is the strace:
----------------------------------------------------------------------------------------
execve("/bin/chroot", ["chroot", "/chroot", "/apache/sbin/httpd"], [/* 63 vars
*/]) = 0
uname({sys="Linux", node="root66", ...}) = 0
brk(0) = 0x804c000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=161494, ...}) = 0
mmap2(NULL, 161494, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40013000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0!Y\1\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1151000, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4003b000
mmap2(NULL, 1081252, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4003c000
mmap2(0x4013e000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x101) = 0x4013e000
mmap2(0x40142000, 8100, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x40142000
close(3) = 0
munmap(0x40013000, 161494) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "dH5\r", 4) = 4
close(3) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=39998496, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40144000
mmap2(NULL, 28672, PROT_READ, MAP_PRIVATE, 3, 0x46c) = 0x40344000
brk(0) = 0x804c000
brk(0x806d000) = 0x806d000
brk(0) = 0x806d000
mmap2(NULL, 212992, PROT_READ, MAP_PRIVATE, 3, 0x48b) = 0x4034b000
mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0x4c1) = 0x4037f000
close(3) = 0
chroot("/chroot") = 0
chdir("/") = 0
execve("/apache/sbin/httpd", ["/apache/sbin/httpd"], [/* 63 vars */]) = 0
uname({sys="Linux", node="root66", ...}) = 0
brk(0) = 0x80bd000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/apache/lib/i686/sse2/libaprutil-0.so.0", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/apache/lib/i686/sse2", 0xbfffe814) = -1 ENOENT (No such file or
directory)
open("/apache/lib/i686/libaprutil-0.so.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/apache/lib/i686", 0xbfffe814) = -1 ENOENT (No such file or directory)
open("/apache/lib/sse2/libaprutil-0.so.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/apache/lib/sse2", 0xbfffe814) = -1 ENOENT (No such file or directory)
open("/apache/lib/libaprutil-0.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/apache/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/i686/sse2/libaprutil-0.so.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/lib/i686/sse2", 0xbfffe814) = -1 ENOENT (No such file or
directory)
open("/lib/i686/libaprutil-0.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/i686", 0xbfffe814) = -1 ENOENT (No such file or
directory)
open("/lib/sse2/libaprutil-0.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/sse2", 0xbfffe814) = -1 ENOENT (No such file or
directory)
open("/lib/libaprutil-0.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0R\0\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=746890, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40013000
mmap2(NULL, 89024, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40014000
mmap2(0x40029000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x14)
= 0x40029000
close(3) = 0
open("/apache/lib/libgdbm.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libgdbm.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\23\0\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=29281, ...}) = 0
mmap2(NULL, 26304, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002a000
mmap2(0x40030000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5) =
0x40030000
close(3) = 0
mprotect(0xbffff000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
open("/apache/lib/libdb-4.1.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libdb-4.1.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0PG\1\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=886699, ...}) = 0
mmap2(NULL, 801112, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40031000
mmap2(0x400f3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xc2)
= 0x400f3000
close(3) = 0
open("/apache/lib/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libexpat.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`!\0\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=147712, ...}) = 0
mmap2(NULL, 150144, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400f5000
mmap2(0x40118000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x22)
= 0x40118000
close(3) = 0
open("/apache/lib/libapr-0.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libapr-0.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\206"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1399213, ...}) = 0
mmap2(NULL, 133740, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4011a000
mmap2(0x40139000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1e)
= 0x40139000
mmap2(0x4013a000, 2668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x4013a000
close(3) = 0
open("/apache/lib/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/librt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\36\0\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=33096, ...}) = 0
mmap2(NULL, 75512, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4013b000
mmap2(0x40142000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6) =
0x40142000
mmap2(0x40143000, 42744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x40143000
close(3) = 0
open("/apache/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3205\0"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=152648, ...}) = 0
mmap2(NULL, 134448, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4014e000
mmap2(0x4016e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1f)
= 0x4016e000
close(3) = 0
open("/apache/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libcrypt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\t\0\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=18732, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4016f000
mmap2(NULL, 176732, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40170000
mmap2(0x40174000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4) =
0x40174000
mmap2(0x40175000, 156252, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x40175000
close(3) = 0
open("/apache/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libnsl.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P;\0\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=76472, ...}) = 0
mmap2(NULL, 80512, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4019c000
mmap2(0x401ad000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11)
= 0x401ad000
mmap2(0x401ae000, 6784, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x401ae000
close(3) = 0
open("/apache/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200B\0"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=62252, ...}) = 0
mmap2(NULL, 327200, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401b0000
mmap2(0x401bd000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd) =
0x401bd000
mmap2(0x401be000, 269856, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x401be000
close(3) = 0
open("/apache/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0f\33\0\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=10324, ...}) = 0
mmap2(NULL, 12080, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40200000
mmap2(0x40202000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1) =
0x40202000
close(3) = 0
open("/apache/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0!Y\1\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1151000, ...}) = 0
mmap2(NULL, 1081252, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40203000
mmap2(0x40305000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x101) = 0x40305000
mmap2(0x40309000, 8100, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x40309000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4030b000
set_thread_area({entry_number:-1 -> 6, base_addr:0x401bd060, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}) = 0
getpid() = 1869
rt_sigaction(SIGRTMIN, {0x401b7dd9, [], 0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x401b7f19, [], 0}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x401b80f6, [], 0}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbfffed64, 32, (nil), 0}) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "v\'\25\250", 4) = 4
close(3) = 0
brk(0) = 0x80bd000
brk(0x80de000) = 0x80de000
brk(0) = 0x80de000
brk(0) = 0x80de000
brk(0x8100000) = 0x8100000
brk(0) = 0x8100000
brk(0x8122000) = 0x8122000
stat64("/apache/conf/httpd.conf", {st_mode=S_IFREG|0644, st_size=35480, ...})
= 0
open("/apache/conf/httpd.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=35480, ...}) = 0
read(3, "#\n# Based upon the NCSA server c"..., 4096) = 4096
stat64("/Programme/apache", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
read(3, "s\n<IfModule prefork.c>\nStartServ"..., 4096) = 4096
read(3, "formation (ExtendedStatus On) or"..., 4096) = 4096
read(3, "from all\n\n</Directory>\n\n#\n# User"..., 4096) = 4096
read(3, " %U\" referer\nLogFormat \"%{User-a"..., 4096) = 4096
brk(0) = 0x8122000
brk(0x8144000) = 0x8144000
read(3, "is allows you to tell the\n# clie"..., 4096) = 4096
read(3, "e (zh-TW)\n#\nAddLanguage ca .ca\nA"..., 4096) = 4096
read(3, "n/x-compress .Z\nAddType applicat"..., 4096) = 4096
read(3, "n problems with browser implemen"..., 4096) = 2712
read(3, "", 4096) = 0
close(3) = 0
stat64("/apache/bin/suexec", 0xbfffee8c) = -1 ENOENT (No such file or
directory)
socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = -1 EAFNOSUPPORT (Address family
not supported by protocol)
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
socket(PF_UNIX, SOCK_STREAM, 0) = 4
connect(4, {sa_family=AF_UNIX, path="/var/run/nscd/socket"}, 110) = -1
ECONNREFUSED (Connection refused)
close(4) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=490, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4030c000
read(4, "# /etc/nsswitch.conf:\n# $Header:"..., 4096) = 490
read(4, "", 4096) = 0
close(4) = 0
munmap(0x4030c000, 4096) = 0
open("/apache/lib/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libnss_compat.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\21"..., 512) =
512
fstat64(4, {st_mode=S_IFREG|0755, st_size=27452, ...}) = 0
mmap2(NULL, 29824, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4030c000
mmap2(0x40313000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x6) =
0x40313000
close(4) = 0
open("/apache/lib/libnss_nis.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libnss_nis.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\35\0"..., 512) =
512
fstat64(4, {st_mode=S_IFREG|0755, st_size=34472, ...}) = 0
mmap2(NULL, 36260, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40314000
mmap2(0x4031c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x7) =
0x4031c000
close(4) = 0
open("/apache/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libnss_files.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\35\0"..., 512) =
512
fstat64(4, {st_mode=S_IFREG|0755, st_size=34700, ...}) = 0
mmap2(NULL, 36756, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4031d000
mmap2(0x40325000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x7) =
0x40325000
close(4) = 0
open("/etc/passwd", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
_llseek(4, 0, [0], SEEK_CUR) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=41, ...}) = 0
mmap2(NULL, 41, PROT_READ, MAP_SHARED, 4, 0) = 0x40326000
_llseek(4, 41, [41], SEEK_SET) = 0
munmap(0x40326000, 41) = 0
close(4) = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 4
connect(4, {sa_family=AF_UNIX, path="/var/run/nscd/socket"}, 110) = -1
ECONNREFUSED (Connection refused)
close(4) = 0
open("/etc/group", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
_llseek(4, 0, [0], SEEK_CUR) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=16, ...}) = 0
mmap2(NULL, 16, PROT_READ, MAP_SHARED, 4, 0) = 0x40326000
_llseek(4, 16, [16], SEEK_SET) = 0
munmap(0x40326000, 16) = 0
close(4) = 0
stat64("/apache/data/htdocs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
uname({sys="Linux", node="root66", ...}) = 0
gettimeofday({1096315816, 295512}, NULL) = 0
getpid() = 1869
open("/etc/resolv.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40326000
read(4, "nameserver 192.111.39.1\nnameserv"..., 4096) = 56
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40326000, 4096) = 0
uname({sys="Linux", node="root66", ...}) = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 4
connect(4, {sa_family=AF_UNIX, path="/var/run/nscd/socket"}, 110) = -1
ECONNREFUSED (Connection refused)
close(4) = 0
open("/etc/host.conf", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/hosts", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=697, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40326000
read(4, "# /etc/hosts: This file describ"..., 4096) = 697
close(4) = 0
munmap(0x40326000, 4096) = 0
write(2, "httpd: Could not determine the s"..., 102) = 102
brk(0) = 0x8144000
brk(0x8165000) = 0x8165000
brk(0) = 0x8165000
brk(0x8187000) = 0x8187000
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
bind(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(3, 511) = 0
pipe([4, 5]) = 0
fcntl64(4, F_GETFL) = 0 (flags O_RDONLY)
fcntl64(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
open("/apache/logs/error_log", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) =
6
dup2(6, 2) = 2
open("/apache/logs/access_log", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) =
7
open("/apache/conf/mime.types", O_RDONLY) = 8
fstat64(8, {st_mode=S_IFREG|0644, st_size=15020, ...}) = 0
read(8, "# This is a comment. I love comm"..., 4096) = 4096
read(8, "ion/vnd.eudora.data\napplication/"..., 4096) = 4096
read(8, "n/vnd.publishare-delta-tree\nappl"..., 4096) = 4096
read(8, "hemical/x-xyz\t\t\txyz\nimage/bmp\t\t\t"..., 4096) = 2732
read(8, "", 4096) = 0
close(8) = 0
close(5) = 0
close(4) = 0
stat64("/apache/conf/httpd.conf", {st_mode=S_IFREG|0644, st_size=35480, ...})
= 0
open("/apache/conf/httpd.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=35480, ...}) = 0
read(4, "#\n# Based upon the NCSA server c"..., 4096) = 4096
stat64("/Programme/apache", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
read(4, "s\n<IfModule prefork.c>\nStartServ"..., 4096) = 4096
read(4, "formation (ExtendedStatus On) or"..., 4096) = 4096
read(4, "from all\n\n</Directory>\n\n#\n# User"..., 4096) = 4096
read(4, " %U\" referer\nLogFormat \"%{User-a"..., 4096) = 4096
read(4, "is allows you to tell the\n# clie"..., 4096) = 4096
read(4, "e (zh-TW)\n#\nAddLanguage ca .ca\nA"..., 4096) = 4096
read(4, "n/x-compress .Z\nAddType applicat"..., 4096) = 4096
read(4, "n problems with browser implemen"..., 4096) = 2712
read(4, "", 4096) = 0
close(4) = 0
chdir("/") = 0
fork() = 1873
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(0) = ?
----------------------------------------------------------------------------------------
Any ideas? I mean the Apache seems to start and I can see any serious error
message in those messages above but still I get those errors in error_log and
the Apache refuses to start. Any help is greatly appreciated.
Bye and thanks,
Werner.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Problems with chrooting Apache 2 and mod_auth_digest
Posted by Paul Querna <ch...@force-elite.com>.
Try using {s,p,k}trace to figure out what it is trying to read.
Werner Schalk wrote:
> Hi,
>
> I have successfully chrooted Apache 2 and everything works pretty well.
> Unfortunately I can't get it working with mod_auth_digest because I always
> end up getting the following error message:
>
> [Mon Sep 27 20:13:35 2004] [crit] (2)No such file or directory: Digest: error
> generating secret: No such file or directory Configuration Failed
>
> Any ideas what causes mod_auth_digest here to fail? I do have /dev/random
> and /dev/null but it tends to be looking for other files. Any ideas?
>
> Bye and thanks,
> Werner.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org