#39563 [Bgs]: 'make install' Breaks Apache 2 Config

From: Date: Mon, 20 Nov 2006 22:59:39 +0000
Subject: #39563 [Bgs]: 'make install' Breaks Apache 2 Config
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-105224@lists.php.net to get a copy of this message
ID: 39563 User updated by: streaky at mybrokenlogic dot com Reported By: streaky at mybrokenlogic dot com Status: Bogus Bug Type: Apache2 related Operating System: Linux (CentOS release 4.4) PHP Version: 5.2.0 New Comment: Which makes it an Apache2 bug right? Just so we're clear :) Previous Comments: ------------------------------------------------------------------------ [2006-11-20 22:57:16] tony2001@php.net It's done by Apache apxs utility, there is nothing we can do about it. ------------------------------------------------------------------------ [2006-11-20 22:45:32] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39563&edit=1

« previous php.bugs (#105224) next »