php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39563 'make install' Breaks Apache 2 Config
Submitted: 2006-11-20 22:45 UTC Modified: 2010-12-20 12:22 UTC
From: streaky at mybrokenlogic dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.2.0 OS: Linux (CentOS release 4.4)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: streaky at mybrokenlogic dot com
New email:
PHP Version: OS:

 

 [2006-11-20 22:45 UTC] streaky at mybrokenlogic dot com
Description:
------------
I like to keep my Apache config tidy so I use a different number of spaces than the auto configuration that make install adds. On 'make install' the original php5_module line is ignored  and a second one is added, and all requests to the server result in an internal server error from that point onwards.

Reproduce code:
---------------
Old Apache config line -

LoadModule php5_module modules/libphp5.so

Then -

./configure --prefix=/usr/local/php5-fcgi --with-apxs2=/usr/local/apache2/bin/apxs \
--enable-fastcgi --enable-discard-path \
--enable-memory-limit --with-layout=GNU --with-regex=php --with-mysqli --with-mysql \
--enable-cli --enable-soap --with-gd --enable-gd-native-ttf \
--with-zlib-dir=/usr --without-sqlite --disable-pdo \
--with-jpeg-dir --with-png-dir

[..]

make

[..]

make install

Expected result:
----------------
The old Apache configuration should not be overwritten.

Actual result:
--------------
'make install' adds a second 'LoadModule php5_module        modules/libphp5.so' line to the httpd.conf file, leaving the first one in place, breaking Apache's config and downing live sites.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-20 22:57 UTC] tony2001@php.net
It's done by Apache apxs utility, there is nothing we can do about it.
 [2006-11-20 22:59 UTC] streaky at mybrokenlogic dot com
Which makes it an Apache2 bug right? Just so we're clear :)
 [2010-12-20 12:22 UTC] jani@php.net
-Package: Tidy +Package: Apache2 related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 03:01:28 2024 UTC