php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20519 Apache 2 fails to start
Submitted: 2002-11-20 08:42 UTC Modified: 2002-11-20 16:01 UTC
From: mrm1 at msm dot cam dot ac dot uk Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.0RC1 OS: Solaris 9
Private report: No CVE-ID: None
 [2002-11-20 08:42 UTC] mrm1 at msm dot cam dot ac dot uk
4.3.0RC1 is certainly a big step up from previous versions (it compiles properly now); many thanks!

I ran make and make install on Apache 2.0.43 after running the configure command:

./configure --prefix=/local/etc/apache-2.0.43 --enable-module=so \
--with-mpm=worker

I then ran make and make install on PHP 4.3.0RC1 with the configure command

./configure --with-mysql=/local/mysql --with-config-file-path=/local/etc/apache-2.0.43/conf'
--enable-track-vars
--enable-cli
--with-apxs2=/local/etc/apache-2.0.43/bin/apxs
--with-pear=/local/lib/php-4.2.3

This all worked fine (many thanks for fixing the compile failures of earlier versions).  Trying to start apache by issuing the command

/local/etc/apache-2.0.43/bin/apachectl start

produced the following message:

httpd: module "sapi_apache2.c" is not compatible with this version of Apache (found 20020329, need 20020903).
Please contact the vendor for the correct version.

and no daemon started.  I appreciate that this may well be an Apache funny (I understand the interface keeps changing, and I sympathise!), but the message at least tells me to report it here.

/local/etc/apache-2.0.43/bin/httpd -V says:

Server version: Apache/2.0.43
Server built:   Oct 29 2002 10:28:26
Server's Module Magic Number: 20020903:0
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/local/etc/apache-2.0.43"
 -D SUEXEC_BIN="/local/etc/apache-2.0.43/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

Many thanks for all your hard work on producing PHP!

Mark

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-20 16:01 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

You are using an old PHP library, which is why Apache is complaining. When installing php for Apache 2, you need to manually copy the php module from sapi/apache2filter into the apache's libexec directory.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC