php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40920 PHP Installation configuring Apache badly
Submitted: 2007-03-26 12:21 UTC Modified: 2008-08-22 18:09 UTC
From: MishaSoft3D at gmail dot com Assigned: jmertic (profile)
Status: Wont fix Package: Windows Installer
PHP Version: 5.2.1 OS: WINDOWS
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-03-26 12:21 UTC] MishaSoft3D at gmail dot com
Description:
------------
Installing PHP and choosing the option to configure "Apache 2.2.x" server for me adds an unneseccery block of code in the httpd.conf of the Apache. The block already exsits and comes by default in the httpd.conf of the Apache.
Therfore this code appears twice in the end of httpd.conf:
*--BEGIN QUOTE--*

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:\\Program Files\\PHP\\"
LoadModule php5_module "C:\\Program Files\\PHP\\php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

*--END QUOTE--*

Apache won't start because of that. (and again this replicated block was added by the PHP installation)



My solution was to erase one of the blocks and everything came normal.


os: WINDOWS XP
server: Apache 2.2.4
installer in question: PHP 5.2.1 installer [19,568Kb] - 12 Feb 2007

best regards


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-30 01:54 UTC] jmertic@php.net
This is a known issue; due to the many ways PHP can be configured in the httpd.conf file, we do not attempt to remove or replace current configuration, but instead add what is needed for PHP to work assuming there is no PHP currently configured in the file.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 27 12:01:22 2020 UTC