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

 ID:                 53696
 User updated by:    helge dot rowold at datendrexler dot de
 Reported by:        helge dot rowold at datendrexler dot de
 Summary:            erroneous automatic entry into httpd.conf
 Status:             Closed
 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:

Hello masikwha,



in my opinion you should be able to fix the error on Vista, too, by
adding the following two lines to your httpd.conf file (in case you
would like to use PHP as Apache module and *not* via CGI):



PHPIniDir "php_partition_char:/php_program_path/php_dir_name/"



LoadModule php5_module
"php_partition_char:/php_program_path/php5apache2_2.dll"



The strings php_partition_char, php_program_path, and php_dir_name have
to be replaced with the real path to your PHP installation directory, of
course.


Previous Comments:
------------------------------------------------------------------------
[2011-03-16 04:48:04] masikwha at yahoo dot com

the problems discussed here for windows 7 seems to be far different than
what I am experincing on Vista. After successful installatioin of 
Apache 2.2.17 on Vista, php-5.3.5-Win32-VC9-x86 (Thread safe) installer
seems to add following lines on httpd.conf file,



#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

ScriptAlias /php/ ""

Action application/x-httpd-php "php-cgi.exe"

#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL



(Note there is no PHPIniDir  )

On restarting the apache it gives error saying,

ScriptAlias takes two names, fake name and real name...



I tried commenting  #CriptAlias /php/ "" , Apache runs ok but it doesn't
php is not working. 

For proper installation of PHP 5.3.5 is that all the changes necessary
?? (which however is not working )?

------------------------------------------------------------------------
[2011-01-19 21:57:49] jmer...@php.net

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------
[2011-01-10 11:18:51] alvaro at demogracia dot com

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

------------------------------------------------------------------------
[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