Edit report at http://bugs.php.net/bug.php?id=53696&edit=1

 ID:                 53696
 Comment by:         alvaro at demogracia dot com
 Reported by:        helge dot rowold at datendrexler dot de
 Summary:            erroneous automatic entry into httpd.conf
 Status:             Assigned
 Type:               Bug
 Package:            Apache2 related
 Operating System:   Windows 7
 PHP Version:        5.3.5
 Assigned To:        jmertic
 Block user comment: N
 Private report:     N

 New Comment:

Same symptoms here under Windows XP. Apache cannot find
php5apache2_2.dll even if at default location:



The Apache service named  reported the following error:

>>> httpd.exe: Syntax error on line 516 of C:/Archivos de
programa/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot
load C:/Archivos de programa/Apache Software
Foundation/Apache2.2/php5apache2_2.dll into server: No se puede
encontrar el m\xf3dulo     .



Copying settings from PHP/5.3.4 fixes the issue:



#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

PHPIniDir "C:/Archivos de programa/PHP/"

LoadModule php5_module "C:/Archivos de programa/PHP/php5apache2_2.dll"

#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL


Previous Comments:
------------------------------------------------------------------------
[2011-01-08 14:57:09] paj...@php.net

hi John,



Something went wrong in the last installer update.

------------------------------------------------------------------------
[2011-01-08 14:53:42] helge dot rowold at datendrexler dot de

Description:
------------
After having installed httpd-2.2.17-win32-x86-openssl-0.9.8o.msi
successfully, but NOT at the default path but at a separate HDD
partition with a non-default root directory, I was able to install the
php-5.3.5-Win32-VC6-x86.msi at the same partition in a non-default
directory, too. The installer echoed that everything would have been
done well.



But the Apache Service did not start, then!



At the end I was able to fix the issue:



In httpd.conf, the PHP installer had tried to add the default linkage
from HTTPD to PHP by adding the lines

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

PHPIniDir ""

LoadModule php5_module "php5apache2_2.dll"

#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL



  -  i. e., PHP was NOT able to set the correct (non-default) path to
its own directory (which would have been, by the way,
"D:/Programme/PHP535/").

Test script:
---------------
Please see above  -  addition of the correct path in httpd.conf did fix
the error.



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53696&edit=1

Reply via email to