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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: MishaSoft3D at gmail dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 13:01:30 2024 UTC