php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #44330 Apache with PHP 5+6
Submitted: 2008-03-04 19:49 UTC Modified: 2011-02-21 20:48 UTC
From: lunter at interia dot pl Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 6CVS-2008-03-04 (CVS) OS: only Win
Private report: No CVE-ID: None
 [2008-03-04 19:49 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-04 20:08 UTC] 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 20:21 UTC] 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:26 UTC] 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
 [2011-02-21 20:48 UTC] jani@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2011-02-21 20:48 UTC] jani@php.net
There is no PHP 6 anymore.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 19:01:34 2025 UTC