#43435 [Asn->Csd]: Installer puts duplicate lines in httpd.conf
| From: | jmertic@php.net | Date: | Mon, 03 Dec 2007 13:02:58 +0000 |
| Subject: | #43435 [Asn->Csd]: Installer puts duplicate lines in httpd.conf | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120308@lists.php.net to get a copy of this message | ||
ID: 43435
Updated by: jmertic@php.net
Reported By: rgeletasf-php at yahoo dot com
-Status: Assigned
+Status: Closed
Bug Type: Apache2 related
Operating System: Windows XP Pro
PHP Version: 5.2.5
Assigned To: jmertic
New Comment:
Selecting everything seems to be the problem here. Please only enable
the components you need ( or stick with the default install ).
Previous Comments:
------------------------------------------------------------------------
[2007-11-28 12:22:48] jani@php.net
Installer shouldn't add incompatible modules in httpd.conf either.
Only one LoadModule line is needed, in this case the first one in
expected result.
------------------------------------------------------------------------
[2007-11-28 08:23:03] rgeletasf-php at yahoo dot com
Also, when installing, I selected install everything.
------------------------------------------------------------------------
[2007-11-28 07:46:02] rgeletasf-php at yahoo dot com
As I recall, when installing PHP there was a page asking what webserver
I was running, selection was for IIS. I changed that to Apache2
------------------------------------------------------------------------
[2007-11-28 07:38:06] rgeletasf-php at yahoo dot com
Description:
------------
Environment:
WinXP Pro SP2, Recent updates applied. No prior installation of PHP.
New installation of Apache from
apache_2.2.4-win32-x86-openssl-0.9.8d.msi
Apache working, web pages being served
Install PHP from php-5.2.5-win32-installer.msi
Attempted to restart Apache, restart failed.
Ran compare of httpd.conf and httpd.conf.bak(generated by PHP install),
only changes were PHP configuration lines at end of file.
revised httpd.conf to comment out occurrances 2 and 3 of line
PHPIniDir "C:/Program Files/PHP/"
and apache was able to start and serve web pages.
(doesn't do php pages yet, will report on that separately)
Reproduce code:
---------------
(not applicable)
Expected result:
----------------
(apache httpd.conf, end of file, lines added by PHP installation)
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
ScriptAlias /php/ "C:/Program Files/PHP/"
Action application/x-httpd-php "C:/Program Files/PHP/php-cgi.exe"
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
LoadModule php5_module "C:/Program Files/PHP/php5apache2.dll"
LoadModule php5_module "C:/Program Files/PHP/php5apache.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALLce
Actual result:
--------------
(apache httpd.conf, end of file, lines added by PHP installation)
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
ScriptAlias /php/ "C:/Program Files/PHP/"
Action application/x-httpd-php "C:/Program Files/PHP/php-cgi.exe"
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2.dll"
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43435&edit=1