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

 ID:                 44330
 Updated by:         j...@php.net
 Reported by:        lunter at interia dot pl
 Summary:            Apache with PHP 5+6
-Status:             Open
+Status:             Bogus
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   only Win
 PHP Version:        6CVS-2008-03-04 (CVS)
 Block user comment: N
 Private report:     N

 New Comment:

There is no PHP 6 anymore.


Previous Comments:
------------------------------------------------------------------------
[2008-03-04 20:26:34] lunter at interia dot pl

To switch beetwen PHP5 and PHP6 you must use .htaccess file:



1) AddType application/x-httpd-php .php

# for PHP5 (if not defined in httpd.conf)



2) AddType application/x-httpd-php6 .php

# for PHP6

------------------------------------------------------------------------
[2008-03-04 20:21:32] lunter at interia dot pl

Better idea - compile two dll's in future PHP6:



1) php6apache2_2.dll - current without changes;



2) php6apache2_2c.dll - corrected for admins who want to running
Apache2.x with PHP5 & PHP6 as module at the same time.

------------------------------------------------------------------------
[2008-03-04 20:08:44] lunter at interia dot pl

sorry - replace: 'application/x-httpd-php' =>
'application/x-httpd-php6'



Testes with modified php6apache2_2.dll.

Works very good.

------------------------------------------------------------------------
[2008-03-04 19:49:22] lunter at interia dot pl

Description:
------------
Only Windows php6apache2_2.dll



replace: 'PHPINIDir' => 'PHPINIDir6'

&

add second type: 'application/x-httpd-php6'



to able load both as Apache module:

1) php5apache2_2.dll

2) php6apache2_2.dll



with different Configuration File (php.ini) Path.

Expected result:
----------------


running Apache2.x with PHP5 & PHP6 as module at the same time



Actual result:
--------------


It is not able to load Apache2.x with PHP5 & PHP6 as module.




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



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

Reply via email to