> I'm trying to get sqwebmail 1.0.2 configured on a Solaris 8
> (sparc) machine.
>
> My problem is that I get an "Internal Server Error" from Apache
> when I click
> on a folder (ie. INBOX, Drafts, Sent, etc.) from the Folders page. The
> apache logs give the un-helpful message "Premature end of script headers:
> /export/www/coby.org/cgi-bin/sqwebmail" in the error_log.
>
OK, I've wrapped the sqwebmail cgi in a script so I can truss the process as
the webserver executes it.
I've included the last few lines of truss output below. It doesn't look
like this is going to be an "easy" fix.
If anyone has any ideas please let me know.
Thanks,
Coby
2687: open("./sqwebmail-config", O_RDONLY) = 3
2687: fstat(3, 0xFFBEF678) = 0
2687: fstat64(3, 0xFFBEF520) = 0
2687: ioctl(3, TCGETA, 0xFFBEF4AC) Err#25 ENOTTY
2687: read(3, " S O R T = F P A G E S".., 8192) = 78
2687: llseek(3, 0, SEEK_CUR) = 78
2687: close(3) = 0
2687: access("/usr/local/sqwebmail/share/sqwebmail/noimages", 0) Err#2
ENOENT
2687: open("/usr/local/sqwebmail/share/sqwebmail/html/en-us/folder.html",
O_RDONLY) = 3
2687: ioctl(1, TCGETA, 0xFFBEE75C) Err#22 EINVAL
2687: fstat64(1, 0xFFBEE7D0) = 0
2687: fstat64(3, 0xFFBEF468) = 0
2687: brk(0x000C55D0) = 0
2687: brk(0x000C75D0) = 0
2687: ioctl(3, TCGETA, 0xFFBEF3F4) Err#25 ENOTTY
2687: read(3, " < ! D O C T Y P E H T".., 8192) = 5643
2687: open("/usr/local/sqwebmail/share/sqwebmail/hostname", O_RDONLY)
Err#2 ENOENT
2687: uname(0xFFBEED78) = 1
2687: open("./maildirfilterconfig", O_RDONLY) Err#2 ENOENT
2687: open("/usr/local/sqwebmail/share/sqwebmail/maildirfilterconfig",
O_RDONLY) Err#2 ENOENT
2687: open64("././sqwebmail-curcache.db3", O_RDWR) Err#2 ENOENT
2687: open64("././sqwebmail-curcache.db3", O_RDWR) Err#2 ENOENT
2687: time() = 972871465
2687: uname(0xFFBEEBF8) = 1
2687: time() = 972871465
2687: getpid() = 2687 [2686]
2687: stat("./new/972871465.2687_db.gomez", 0xFFBEF068) Err#2 ENOENT
2687: open64("././tmp/972871465.2687_db.gomez",
O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0664) = 4
2687: fcntl(4, F_SETFD, 0x00000001) = 0
2687: llseek(4, 0, SEEK_SET) = 0
2687: read(4, 0xFFBEEFB8, 256) = 0
2687: stat64("././tmp/972871465.2687_db.gomez", 0xFFBEEE90) = 0
2687: time() = 972871465
2687: close(4) = 0
2687: stat64("/var/tmp", 0xFFBEE648) = 0
2687: brk(0x000C75D0) = 0
2687: brk(0x000CB5D0) = 0
2687: Incurred fault #5, FLTACCESS %pc = 0x00052C5C
2687: siginfo: SIGBUS BUS_ADRALN addr=0x000C9834
2687: Received signal #10, SIGBUS [default]
2687: siginfo: SIGBUS BUS_ADRALN addr=0x000C9834
2687: *** process killed ***