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

Bug#231450: marked as done (PHP5 install through apxs2: missing leading slash in module path)

Your message dated Sat, 18 Sep 2004 13:47:05 -0400
with message-id <E1C8jIf-0006tH-00@newraff.debian.org>
and subject line Bug#231450: 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; 6 Feb 2004 17:45:06 +0000
>From bjorn.wiberg@home.se Fri Feb 06 09: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 1ApA2M-00012y-00; Fri, 06 Feb 2004 09:45:06 -0800
Received: from localhost ([])
	by gloomy.localdomain.local with esmtp (Exim 3.35 #1 (Debian))
	id 1ApA1m-0002zw-00
	for <submit@bugs.debian.org>; Fri, 06 Feb 2004 18:44:30 +0100
Date: Fri, 6 Feb 2004 18:44:30 +0100 (CET)
From: =?ISO-8859-1?Q?Bj=F6rn_Wiberg?= <bjorn.wiberg@home.se>
To: submit@bugs.debian.org
Subject: PHP5 install through apxs2: missing leading slash in module path
Message-ID: <Pine.LNX.4.58.0402061828020.10760@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-threaded-dev
Version: 2.0.48-7

Other software: PHP 5.0.0b3 and also PHP 5.0.0RC1-dev (2004-02-06 10:30).

When installing PHP 5, it calls instdso.sh which in turn calls apxs2 to
install the PHP5 SAPI loadable module. However, the resulting path to the
module in apache2.conf misses a leading slash (/).

Here is the output from PHP5's "make install" (forgive any strange line
breaks; they're due to cut-and-paste):

  gloomy:~/software/php5-200402061030# 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]
  Installing PHP CLI binary:        /usr/local/bin/
  Installing PHP CLI man page:      /usr/local/man/man1/
  Installing PEAR environment:      /usr/local/lib/php/
  [PEAR] Archive_Tar    - already installed: 1.1
  [PEAR] Console_Getopt - already installed: 1.2
  [PEAR] PEAR           - upgraded:  1.3b6
  Wrote PEAR system config file at: /usr/local/etc/pear.conf
  You may want to add: /usr/local/lib/php to your php.ini include_path
  [PEAR] DB             - upgraded:  1.6.0RC1
  [PEAR] HTTP           - upgraded:  1.2.2
  [PEAR] Mail           - upgraded:  1.1.2
  [PEAR] Net_SMTP       - already installed: 1.2.3
  [PEAR] Net_Socket     - already installed: 1.0.1
  [PEAR] XML_Parser     - already installed: 1.0.1
  [PEAR] XML_RPC        - already installed: 1.0.4
  Installing build environment:     /usr/local/lib/php/build/
  Installing header files:          /usr/local/include/php/
  Installing helper programs:       /usr/local/bin/
    program: phpize
    program: php-config
    program: phpextdist

Below is the resulting LoadModule directive that gets added to

Notice that I've added a commented dummy LoadModule directive so that
apxs2 at all manages to figure out where to place the new LoadModule direct=
(for more details, see Bug#231134).

Notice that the leading slash in /usr/lib/apache2/modules/libphp5.so is

  # Include module configuration:
  Include /etc/apache2/mods-enabled/*.load
  Include /etc/apache2/mods-enabled/*.conf

  # To give PHP installation a hint on where to add its LoadModule directiv=
  #LoadModule dummy_module /usr/lib/apache2/modules/mod_dummy.so
  LoadModule php5_module        usr/lib/apache2/modules/libphp5.so

  # Include all the user configurations:
  Include /etc/apache2/httpd.conf

This of course has to be corrected manually, as any relative path to the
LoadModule directive is taken relative to the server root.

I hope that the output from PHP5's "make install" will aid you in spotting
the error (either in instdso.sh or apxs2).

Best regards,

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

Received: (at 231450-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 1C8jOz-0002M7-00; Sat, 18 Sep 2004 10:53:37 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1C8jIf-0006tH-00; Sat, 18 Sep 2004 13:47:05 -0400
From: Adam Conrad <adconrad@0c3.net>
To: 231450-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#231450: fixed in apache2 2.0.51-2
Message-Id: <E1C8jIf-0006tH-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sat, 18 Sep 2004 13:47:05 -0400
Delivered-To: 231450-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: 4

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 231450@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: