[imp] Trouble running IMP inside chroot()

Josh fzzzty at yahoo.com
Sat Nov 29 19:01:13 PST 2003


I recently tried chrooting my Apache server and I'm having some trouble
getting IMP to work. Horde and Kronolith work fine, and are using MySQL
for their data stores. I can go to imp/test.php and fill in the
information (localhost, imap/ssl/novalidate-cert, port, user, pass) and
it seems to log in perfectly fine. When I go to the IMP page, it dies.
It actually kills two httpd processes. I thought I copied over all the
valid libraries, including libmysqlclient, even sendmail, and it isn't
working. The only discrepancy I can find between the chrooted server
and the normal server is here (sorry for line wraps):

(working)

Nov 29 20:50:19 www imapd-ssl: Connection, ip=[::ffff:127.0.0.1]
Nov 29 20:50:20 www imapd-ssl: LOGIN, user=myuser,
ip=[::ffff:127.0.0.1], protocol=IMAP
Nov 29 20:50:23 www imapd-ssl: LOGOUT, user=myuser,
ip=[::ffff:127.0.0.1], headers=1043, body=0

(busted)

Nov 29 20:47:54 www imapd-ssl: Connection, ip=[::ffff:127.0.0.1]
Nov 29 20:47:54 www imapd-ssl: LOGIN, user=myuser,
ip=[::ffff:127.0.0.1], protocol=IMAP
Nov 29 20:47:54 www imapd-ssl: LOGOUT, user=myuser,
ip=[::ffff:127.0.0.1], headers=0, body=0
Nov 29 20:47:54 www imapd-ssl: Connection, ip=[::ffff:127.0.0.1]
Nov 29 20:47:54 www imapd-ssl: LOGIN, user=myuser,
ip=[::ffff:127.0.0.1], protocol=IMAP
Nov 29 20:47:54 www kernel: pid 22322 (httpd), uid 1003: exited on
signal 6
Nov 29 20:47:54 www kernel: Nov 29 20:47:54 www kernel: pid 22322
(httpd), uid 1003: exited on signal 6
Nov 29 20:47:54 www imapd-ssl: Unexpected SSL connection shutdown.
Nov 29 20:47:54 www imapd-ssl: DISCONNECTED, user=myuser,
ip=[::ffff:127.0.0.1], headers=0, body=0

The weird thing is, it connects and looks like it works via test.php,
but when I log in, I think it gets to redirect.php and then dies, and
puts me back at the login screen with no information (I turned show
errors on in PHP to try to help). Maybe there is a MySQL or session
error somewhere, but the other apps seem to connect to MySQL just fine
(using mysql sessions, smtp mailer, file vfs, sql prefs, no cache).

Any ideas?

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


More information about the imp mailing list