#39563 [NEW]: 'make install' Breaks Apache 2 Config
| From: | streaky at mybrokenlogic dot com | Date: | Mon, 20 Nov 2006 22:45:32 +0000 |
| Subject: | #39563 [NEW]: 'make install' Breaks Apache 2 Config | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-105222@lists.php.net to get a copy of this message | ||
From: streaky at mybrokenlogic dot com
Operating system: Linux (CentOS release 4.4)
PHP version: 5.2.0
PHP Bug Type: Apache2 related
Bug description: 'make install' Breaks Apache 2 Config
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 bug report at http://bugs.php.net/?id=39563&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39563&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39563&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39563&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39563&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39563&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39563&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39563&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39563&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39563&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39563&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39563&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39563&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39563&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39563&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39563&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39563&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39563&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39563&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39563&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39563&r=mysqlcfg