From: [EMAIL PROTECTED] Operating system: SunOS 5.8 PHP version: 4.1.1 PHP Bug Type: Apache related Bug description: LoadModule directive incorrectly added to httpd.conf when mod_ssl is used
(This actually applies to PHP 4.1.2, but the pulldown box on the bug reporting page hasn't been updated to reflect that yet). When Apache (1.3.23) is compiled with mod_ssl (2.8.7) as a DSO module, mod_ssl automatically adds this to httpd.conf: ... <IfDefine SSL> LoadModule ssl_module libexec/libssl.so </IfDefine> Later, when building a DSO version of PHP (4.1.2), using the --with-apxs option, PHP helpfully tries to add the appropriate LoadModule/AddModule directives to httpd.conf. However, it appears to guess incorrectly where the LoadModule directive should go, so httpd.conf now contains this: ... <IfDefine SSL> LoadModule ssl_module libexec/libssl.so LoadModule php4_module libexec/libphp4.so </IfDefine> which will cause PHP not to load (and httpd to not start) unless SSL is also running. The solution, of course, is for httpd.conf to look like this: <IfDefine SSL> LoadModule ssl_module libexec/libssl.so </IfDefine> LoadModule php4_module libexec/libphp4.so (actually, as I dig into the PHP code, I'm beginning to wonder if it's an apxs problem rather than a PHP problem. Still, even if it is, perhaps PHP's installer can work around it?) Thanks. -- Edit bug report at http://bugs.php.net/?id=15773&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15773&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15773&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15773&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15773&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15773&r=support Expected behavior: http://bugs.php.net/fix.php?id=15773&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15773&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15773&r=submittedtwice