Bug #2648 Updated: Conflict with mod_cgi when compiling with Solid -> Apache will not start

From: Date: Sun, 16 Jun 2002 18:16:53 +0000
Subject: Bug #2648 Updated: Conflict with mod_cgi when compiling with Solid -> Apache will not start
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10765@lists.php.net to get a copy of this message
ID: 2648 Updated by: sander@php.net Reported By: gordon+php@vip.fi -Status: Open +Status: Bogus Bug Type: Solid related Operating System: Linux 2.2.12-20smp PHP Version: 3.0.13 Assigned To: kara New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately, PHP 3 is no longer supported. Please download the latest version of PHP 4 from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2000-01-10 06:57:19] gordon+php@vip.fi The previous report on the module order was somewhat correct; it seems that when the solid libraries are compiled into PHP memory gets trashed somewhere at apache startup. I verified this by placing PHP as the first and the last module on the LoadModule/AddModule list, and when PHP is the first on the list, apache starts nicely (perhaps due to the fact that when the PHP module corrupts memory the corrupted parts get overwritten with the other modules... or something); when PHP is the last one, apache crashes with a SIGSEGV but does not output anything (as it has forked already and has no TTY to print to, I suppose). This could be a problem with the solid libraries themselves and not with PHP, but there is something really fishy about this :) A workaround is to place PHP as the first module on the list, but... ------------------------------------------------------------------------ [1999-11-28 21:18:13] gordon+php@vip.fi Apache reports no errors, but nevertheless does not start. ------------------------------------------------------------------------ [1999-11-28 12:27:48] kara@cvs.php.net What is the exact error when trying to start apache? ------------------------------------------------------------------------ [1999-11-01 06:00:32] gordon+php@vip.fi When compiling PHP with Solid RDBMS support (--with-solid) and Apache with DSO support, the Apache module order affects whether Apache starts at all or not. By default, the PHP module gets installed as the last one on the list, thus crippling Apache (1.3.9) totally, not allowing it even to start. Moving mod_php _above_ mod_cgi on the list lets Apache start up normally. The problem exists only when compiling --with-solid, so there might be some very iffy interactions between mod_php, mod_cgi and the Solid libraries. I have submitted this as a non-serious bug to the Apache development team - the problem is not that big as it can be circumvented by placing mod_php _before_ mod_cgi on the module list, but I still think it could/should be fixed. It just might be that the problem is with the Solid libraries or Apache, but it also could be a problem with PHP. Thus the multiple bug reports to various development teams. To reproduce: Compile Apache (1.3.9) with --enable-module=all --enable-shared=max --enable-rule=SHARED_CORE --enable-rule=SHARED_CHAIN; Compile PHP with --with-apxs=<path to apxs> --with-solid=<path to Solid includes/libs>; the PHP module gets installed as the last one on the module list by default - Apache will not start at this point. Move mod_php _above_ mod_cgi on the module list and Apache will start nicely. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2648&edit=1

« previous php.bugs (#10765) next »