[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#231134: marked as done (Wish: Dummy LoadModule directive in apache2.conf to ease module installations through apxs (e.g. PHP5))

Your message dated Sat, 18 Sep 2004 13:47:05 -0400
with message-id <E1C8jIf-0006tF-00@newraff.debian.org>
and subject line Bug#231134: fixed in apache2 2.0.51-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 4 Feb 2004 18:45:06 +0000
>From bjorn.wiberg@home.se Wed Feb 04 10:45:06 2004
Return-path: <bjorn.wiberg@home.se>
Received: from h55n2fls304o851.telia.com (gloomy.localdomain.local) [] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AoS1K-00044H-00; Wed, 04 Feb 2004 10:45:06 -0800
Received: from localhost ([])
	by gloomy.localdomain.local with esmtp (Exim 3.35 #1 (Debian))
	id 1AoS0n-0003Fd-00
	for <submit@bugs.debian.org>; Wed, 04 Feb 2004 19:44:33 +0100
Date: Wed, 4 Feb 2004 19:44:30 +0100 (CET)
From: =?ISO-8859-1?Q?Bj=F6rn_Wiberg?= <bjorn.wiberg@home.se>
To: submit@bugs.debian.org
Subject: Wish: Dummy LoadModule directive in apache2.conf to ease module
 installations through apxs (e.g. PHP5)
Message-ID: <Pine.LNX.4.58.0402041828410.10022@gloomy.localdomain.local>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: QUOTED-PRINTABLE
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_02_01 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 

Package: apache2-common
Version: 2.0.48-7
Severity: wishlist

Other software used:
PHP version 5.0.0b3 available from http://www.php.net/downloads.php

When installing PHP5 into Apache 2 as a SAPI module, the 'make install'
target of PHP5 calls instdso.sh, which in turn uses apxs to install the
PHP5 SAPI module.

However, because the default apache2.conf shipped with the apache2-common
package does not contain any LoadModule directives, the installation

  gloomy:~/software/php-5.0.0b3# make install
  Installing PHP SAPI module:       apache2handler
  /usr/share/apache2/build/instdso.sh SH_LIBTOOL=3D'/usr/bin/libtool'
  libphp5.la /usr/lib/apache2/modules
  /usr/bin/libtool --mode=3Dinstall cp libphp5.la /usr/lib/apache2/modules/
  cp .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so
  cp .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la
  libtool: install: warning: remember to run `libtool --finish
  chmod 755 /usr/lib/apache2/modules/libphp5.so
  apxs:Error: Activation failed for custom /etc/apache2/apache2.conf
  apxs:Error: At least one `LoadModule' directive already has to exist..
  make: *** [install-sapi] Error 1

A simple fix is to add a commented(!) dummy LoadModule directive to
apache2.conf, which then acts as a placeholder for the new LoadModule
directive needed for PHP5:

  [excerpt from apache2.conf]
    # Include module configuration:
    Include /etc/apache2/mods-enabled/*.load
    Include /etc/apache2/mods-enabled/*.conf

    # Dummy LoadModule directive to aid module installations
    #LoadModule dummy_module /usr/lib/apache2/modules/mod_dummy.so

    # Include all the user configurations:
    Include /etc/apache2/httpd.conf
  [end excerpt from apache2.conf]

Doing so, the PHP5 'make install' works just fine:

  gloomy:~/software/php-5.0.0b3# make install
  Installing PHP SAPI module:       apache2handler
  /usr/share/apache2/build/instdso.sh SH_LIBTOOL=3D'/usr/bin/libtool'
  libphp5.la /usr/lib/apache2/modules
  /usr/bin/libtool --mode=3Dinstall cp libphp5.la /usr/lib/apache2/modules/
  cp .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so
  cp .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la
  libtool: install: warning: remember to run `libtool --finish
  chmod 755 /usr/lib/apache2/modules/libphp5.so
  [activating module `php5' in /etc/apache2/apache2.conf]
  (... snip ...)

Afterwards, apache2.conf looks like this:

  [excerpt from apache2.conf]
    # Dummy LoadModule directive to aid module installations
    #LoadModule dummy_module /usr/lib/apache2/modules/mod_dummy.so
    LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
  [end excerpt from apache2.conf]

That is, the new LoadModule directive gets added after the dummy

Perhaps such a dummy LoadModule directive could be added to apache2.conf
by default, to make installation of PHP (and other modules) easier?

Best regards,

Bj=F6rn Wiberg (bjorn.wiberg@home.se)
Homepage: http://bwiberg.dyndns.org/

Received: (at 231134-close) by bugs.debian.org; 18 Sep 2004 17:53:37 +0000
>From katie@ftp-master.debian.org Sat Sep 18 10:53:37 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1C8jOy-0002Lv-00; Sat, 18 Sep 2004 10:53:36 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1C8jIf-0006tF-00; Sat, 18 Sep 2004 13:47:05 -0400
From: Adam Conrad <adconrad@0c3.net>
To: 231134-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#231134: fixed in apache2 2.0.51-2
Message-Id: <E1C8jIf-0006tF-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sat, 18 Sep 2004 13:47:05 -0400
Delivered-To: 231134-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-CrossAssassin-Score: 3

Source: apache2
Source-Version: 2.0.51-2

We believe that the bug you reported is fixed in the latest version of
apache2, which is due to be installed in the Debian FTP archive:

  to pool/main/a/apache2/apache2-common_2.0.51-2_i386.deb
  to pool/main/a/apache2/apache2-doc_2.0.51-2_all.deb
  to pool/main/a/apache2/apache2-mpm-perchild_2.0.51-2_i386.deb
  to pool/main/a/apache2/apache2-mpm-prefork_2.0.51-2_i386.deb
  to pool/main/a/apache2/apache2-mpm-threadpool_2.0.51-2_i386.deb
  to pool/main/a/apache2/apache2-mpm-worker_2.0.51-2_i386.deb
  to pool/main/a/apache2/apache2-prefork-dev_2.0.51-2_all.deb
  to pool/main/a/apache2/apache2-threaded-dev_2.0.51-2_all.deb
  to pool/main/a/apache2/apache2_2.0.51-2.diff.gz
  to pool/main/a/apache2/apache2_2.0.51-2.dsc
  to pool/main/a/apache2/apache2_2.0.51-2_i386.deb
  to pool/main/a/apache2/libapr0-dev_2.0.51-2_i386.deb
  to pool/main/a/apache2/libapr0_2.0.51-2_i386.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 231134@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Adam Conrad <adconrad@0c3.net> (supplier of updated apache2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA1

Format: 1.7
Date: Sat, 18 Sep 2004 07:12:12 -0600
Source: apache2
Binary: apache2 apache2-prefork-dev apache2-mpm-prefork apache2-doc libapr0-dev apache2-mpm-threadpool apache2-mpm-worker libapr0 apache2-threaded-dev apache2-common apache2-mpm-perchild
Architecture: source all i386
Version: 2.0.51-2
Distribution: unstable
Urgency: high
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Adam Conrad <adconrad@0c3.net>
 apache2    - Next generation, scalable, extendable web server
 apache2-common - Next generation, scalable, extendable web server
 apache2-doc - Documentation for apache2
 apache2-mpm-perchild - Experimental High speed perchild threaded model for Apache2
 apache2-mpm-prefork - Traditional model for Apache2
 apache2-mpm-threadpool - Experimental High speed thread pool model for Apache2
 apache2-mpm-worker - High speed threaded model for Apache2
 apache2-prefork-dev - Development headers for apache2
 apache2-threaded-dev - Development headers for apache2
 libapr0    - The Apache Portable Runtime
 libapr0-dev - Development headers for libapr
Closes: 167552 167557 231134 231450 272103 272207
 apache2 (2.0.51-2) unstable; urgency=high
   * Test for the existence of /usr/sbin/apache2 before we go trying to invoke
     it to determine what MPM we have installed (closes: #272103, #272207)
   * Make the default httpd.conf created in apache2-common's postinst contain
     a fake LoadModule line (commented out), and make apxs2 default to
     installing modules to /etc/apache2/httpd.conf, so people using apxs2
     rather than the mods-{enabled,available} directories get the expected
     behaviour, rather than obscure errors (closes: #167552, #231134)
   * apxs2 now writes the correct path to modules in httpd.conf, including
     the mysteriously missing slash (closes: #231450, #167557)
   * Make apxs2 install modules with mode 644, since 755 makes no sense.
   * Added a bit of magic to a2{en,dis}site to treat the default site as a
     special case and add a "000-" priority to the beginning of its symlink.
     Patches welcome to turn this into something robust, like update-rc.d.
 0fc8a07688cbc35630e0eb4dea713ed1 1131 net optional apache2_2.0.51-2.dsc
 d59f3d06dcb9157f219bb12f3164a411 96496 net optional apache2_2.0.51-2.diff.gz
 603362f0fa620c2e0ea19b54c9c17bc5 3327304 doc optional apache2-doc_2.0.51-2_all.deb
 0c1dafe11b7cea90e0756ea17873e6be 163902 devel optional apache2-prefork-dev_2.0.51-2_all.deb
 5644d1b0762da9622eae7b365c1050e7 164652 devel optional apache2-threaded-dev_2.0.51-2_all.deb
 5c26cdff8bb66829370f5c7f7a200d49 839368 net optional apache2-common_2.0.51-2_i386.deb
 d66c05643a8bc47ef56c692a6b8a2fdd 214660 net optional apache2-mpm-worker_2.0.51-2_i386.deb
 e3b28d0c183367ac6d0e3685440fb3ec 214140 net optional apache2-mpm-threadpool_2.0.51-2_i386.deb
 6373343d15eebf507a74265d9e6830cb 215362 net optional apache2-mpm-perchild_2.0.51-2_i386.deb
 9baa134ddf2849c05ffd406d010268ad 211376 net optional apache2-mpm-prefork_2.0.51-2_i386.deb
 a48df001a2fdd8d9fd55d9fa66cd35f7 126840 net optional libapr0_2.0.51-2_i386.deb
 b7b19a59d85ef11ab184d90bfd159a12 255794 libdevel optional libapr0-dev_2.0.51-2_i386.deb
 09732dd7acabeaafca8a7c079aeb8411 29946 web optional apache2_2.0.51-2_i386.deb

Version: GnuPG v1.2.5 (GNU/Linux)


Reply to: