Subject: Re: php4-imap fails
To: Jared D. McNeill <>
From: Johnny C. Lam <>
List: tech-pkg
Date: 02/27/2001 21:38:08
"Jared D. McNeill" <> writes:
> Although I am having trouble now (I don't know if it's related or not)
> with apache deciding to not start. Ever since I upgraded to php-
> I've been having this problem. The only way to get it to start again is to
> comment out all of the 'extension=' lines in my php.ini, running
> 'apachectl restart', uncommenting them, and running 'apachectl restart'
> once again. I can't get ap-ssl going because of this (apachectl sslstart
> dies a horrible, horrible death: everything else is downhill from there),
> and I don't like the idea of using IMP without it. Anybody else having
> this problem? I was using PHP4.0.3pl1 before, with pgsql support compiled
> directly in (no 'extensions'). I just upgraded to Apache (from
> to see if that would help but it didn't..

I am using (from a very recent pkgsrc) apache + ap-ssl-2.8.0
+ ap-php- + php-imap- + imap-uw-2000.0.3nb1 +
php-pgsql- + postgresql-7.0.3 + horde-1.2.4 + imp-2.2.4 with
NetBSD/i386-1.5L.  I've discovered that httpd is /very/ sensitive to
the order in which modules are loaded, and also in requiring auxiliary
shared modules to be loaded.  It took an annoying long time to figure
out the correct way to load things as there is no error log created
that tells you why httpd fails to start.  The following in httpd.conf
works for me:

	LoadModule php4_module lib/httpd/
	AddModule mod_php4.c

	<IfDefine SSL>
	LoadFile !
	LoadFile !
	LoadModule ssl_module lib/httpd/
	AddModule mod_ssl.c

	LoadFile lib/

Plus the following in php.ini:


     -- Johnny C. Lam <>
        Department of Statistics, Carnegie Mellon University