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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
33 - 28 = ?
Subscribe to this entry?

 
 [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: Fri Apr 26 06:01:32 2024 UTC