httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Constable <ma...@renta.net>
Subject Re: [users@httpd] Howto include sqlite3 --with-dbd
Date Fri, 08 Jun 2007 12:25:17 GMT
On Friday 08 June 2007 11:42:08 Nick Kew wrote:
> You need to load mod_dbd.

Ah, of course, but... perhaps it's now a Debian problem.

# a2enmod dbd
Module dbd installed; run /etc/init.d/apache2 force-reload to enable.

# /etc/init.d/apache2 force-reload
Forcing reload of web server (apache2).../usr/sbin/apache2ctl:
 line 78: 31994 Segmentation fault      $HTTPD -k $ARGV
 failed!

DBDriver sqlite3
DBDParams "/var/www/secret/.htserver"
#DBDMin 1
#DBDKeep 2
#DBDMax 5
#DBDExpTime 30

<Directory /var/www/secret/>
 AuthType Basic
 AuthName Test
 AuthBasicProvider dbd
 Require valid-user
 AuthDBDUserPWQuery "select pw from passwd where uid=%s"
</Directory>

The end of a strace doesn't reveal much...

# strace -f /usr/sbin/apache2
...
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
poll([{fd=3, events=POLLOUT|POLLERR|POLLHUP, revents=POLLOUT}], 1, 5000) = 1
writev(3, [{"\2\0\0\0\v\0\0\0\7\0\0\0", 12}, {"passwd\0", 7}], 2) = 19
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP, revents=POLLIN|POLLHUP}], 1, 5000) = 1
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"passwd\0", 7}], msg_controllen=16, {cmsg_len=16,
cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {4}}, msg_flags=0x80000000 /* MSG_??? */}, MSG_NOSIGNAL)
= 7
fstat64(4, {st_mode=S_IFREG|0600, st_size=217016, ...}) = 0
pread64(4, "\1\0\0\0h\0\0\0\220f\0\0\1\0\0\0\367\333\25F\0\0\0\0\323"..., 104, 0) = 104
mmap2(NULL, 217016, PROT_READ, MAP_SHARED, 4, 0) = 0xb70d6000
close(4)                                = 0
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
poll([{fd=3, events=POLLOUT|POLLERR|POLLHUP, revents=POLLOUT}], 1, 5000) = 1
writev(3, [{"\2\0\0\0\f\0\0\0\6\0\0\0", 12}, {"group\0", 6}], 2) = 18
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP, revents=POLLIN|POLLHUP}], 1, 5000) = 1
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"group\0", 6}], msg_controllen=16, {cmsg_len=16,
cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {4}}, msg_flags=0x80000000 /* MSG_??? */}, MSG_NOSIGNAL)
= 6
fstat64(4, {st_mode=S_IFREG|0600, st_size=217016, ...}) = 0
pread64(4, "\1\0\0\0h\0\0\0\226\6\0\0\1\0\0\0\367\333\25F\0\0\0\0\323"..., 104, 0) = 104
mmap2(NULL, 217016, PROT_READ, MAP_SHARED, 4, 0) = 0xb70a1000
close(4)                                = 0
close(3)                                = 0
stat64("/dev/urandom", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
stat64("/dev/urandom", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 3808 detached

Is anyone out there successfully using sqlite3 via mod_dbd ?

--markc

---------------------------------------------------------------------
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


Mime
View raw message