473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

v4 and v5 on the same machine

We want to set up a PHP server for instructors to teach PHP, but
different instructors have different needs. Is it possible to install
PHP 4.3.8 *and* PHP 5 on the same machine? Perhaps using different
ports or something to keep them separated? I have a Windows 2003
Server running IIS6.

Thanks.
Jul 17 '05 #1
5 2281
Mike wrote:
We want to set up a PHP server for instructors to teach PHP, but
different instructors have different needs. Is it possible to install
PHP 4.3.8 *and* PHP 5 on the same machine? Perhaps using different
ports or something to keep them separated? I have a Windows 2003
Server running IIS6.

Thanks.


I have php 4.3.8 and 5.0.0 running great on windows xp pro.
Although it's with Apache 2.0.50, this shouldn't be a big deal with ISS.

I've installed PHP4 as CGI and PHP5 as an apache module.

There are some tutorials out there that show how you can do it, never
searched for IIS though, but i'm sure some geek managed it.

If you need more info.

HTH,
Sebastian
Jul 17 '05 #2
"Sebastian Lauwers" <da***********@nospam.9online.fr> wrote in message
news:41***********************@news.free.fr...
Mike wrote:
We want to set up a PHP server for instructors to teach PHP, but
different instructors have different needs. Is it possible to install
PHP 4.3.8 *and* PHP 5 on the same machine? Perhaps using different
ports or something to keep them separated? I have a Windows 2003
Server running IIS6.

Thanks.


I have php 4.3.8 and 5.0.0 running great on windows xp pro.
Although it's with Apache 2.0.50, this shouldn't be a big deal with ISS.

I've installed PHP4 as CGI and PHP5 as an apache module.

There are some tutorials out there that show how you can do it, never
searched for IIS though, but i'm sure some geek managed it.

If you need more info.

HTH,
Sebastian


On Apache 2 I managed to get both running as modules with the following:

LoadModule php4_module c:/php/sapi/php4apache2.dll
LoadModule php5_module c:/php5/php5apache2.dll

AddType application/x-httpd-php .php
AddHandler php-script .php5

..php5 files are handled by the PHP5 Apache handler, while .php are handled
by the PHP4 Apache filter (because php4_module is loaded first). Couldn't
get them to use different php.ini though. Even though PHP4 is running as a
filter, it still thinks the SAPI type is apache2handler.

Maybe the behavior is different on Linux. Anyone?
Jul 17 '05 #3
Hi,
We want to set up a PHP server for instructors to teach PHP, but
different instructors have different needs. Is it possible to install
PHP 4.3.8 *and* PHP 5 on the same machine? Perhaps using different
ports or something to keep them separated? I have a Windows 2003
Server running IIS6.


Not sure if this will apply to you, but we've had PHP4 and 5 running on
multiple sites on our IIS5 server (different versions on different sites
tho, no one site had both), and we needed different php.ini files.

The easiest way of doing this I found was to hex edit php5ts.dll and
replace all instances of "php.ini" to "ph5.ini", thus allowing different
php.ini files to exist in the WINNT folder

Andrew
Jul 17 '05 #4
Thanks to everyone who responded. We have worked out our political
differences and decided to use PHP5 for everyone!

Andrew Crowe <an****@adaptivetechnologies.com> wrote in message news:<41**********************@news.easynet.co.uk> ...
Hi,
We want to set up a PHP server for instructors to teach PHP, but
different instructors have different needs. Is it possible to install
PHP 4.3.8 *and* PHP 5 on the same machine? Perhaps using different
ports or something to keep them separated? I have a Windows 2003
Server running IIS6.


Not sure if this will apply to you, but we've had PHP4 and 5 running on
multiple sites on our IIS5 server (different versions on different sites
tho, no one site had both), and we needed different php.ini files.

The easiest way of doing this I found was to hex edit php5ts.dll and
replace all instances of "php.ini" to "ph5.ini", thus allowing different
php.ini files to exist in the WINNT folder

Andrew

Jul 17 '05 #5
Chung Leong wrote:
On Apache 2 I managed to get both running as modules with the following:

LoadModule php4_module c:/php/sapi/php4apache2.dll
LoadModule php5_module c:/php5/php5apache2.dll

AddType application/x-httpd-php .php
AddHandler php-script .php5

.php5 files are handled by the PHP5 Apache handler, while .php are handled
by the PHP4 Apache filter (because php4_module is loaded first). Couldn't
get them to use different php.ini though. Even though PHP4 is running as a
filter, it still thinks the SAPI type is apache2handler.

Maybe the behavior is different on Linux. Anyone?


If i'm not mistaking, it is possible to specify the php.ini when you
compile a module. Thus, you can have both php4 and php5 as modules
loaded. This isn't possible under MS-Win.
Sebastian

--
The most likely way for the world to be destroyed,
most experts agree, is by accident.
That's where we come in; we're computer professionals.
We cause accidents.
--Nathaniel Borenstein
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Adrian Parker | last post by:
I wrote a VB program on my Windows XP machine. It does multi table queries, you can add/delete and edit records, it all worked very beautifully. I was very careful to validate data, and on my...
9
by: Marina Anufreichik | last post by:
Hi, After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm...
12
by: Oliver Knoll | last post by:
Ok, I've searched this group for Big/Little endian issues, don't kill me, I know endianess issues have been discussed a 1000 times. But my question is a bit different: I've seen the follwing...
3
by: | last post by:
This question references to KB articles: http://support.microsoft.com/default.aspx?scid=kb;EN-US;315158 http://support.microsoft.com/default.aspx?scid=kb;EN-US;317012 I'm running Advanced Server...
6
by: Mikey_Doc | last post by:
Hi We are running cms 2002, Framework 1.0 with Visual studio 2002. We have just upgraded to Framework 1.1 and visual studio 2003. All of our database connection strings are stored within the...
27
by: Javier Martinez | last post by:
Hi I have asp application in a machine with a virtual directory referring a shared directory in another machine When I try to load any aspx page of my portal I get the following error: ...
0
by: sameer | last post by:
Environment: OS of sql server 2000 server: windows 2003 standard server , .NEt framework 1.1 , sql server does not have any service pack, machine has the latest Windows service pack. Personal...
11
by: TARUN | last post by:
Hello All I need to ask about the configuration file in .NET, There are Two config File 1. Web Config 2. Machine config I understand the the usage of Web config , but not able to understand...
4
by: Shawnk | last post by:
This post is intended to verify that true value semantics DO NOT EXIST for the Enum class (relative to boolean operations). If this is true then (thus and therefore) you can not design state...
5
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a app that uses several membership/role providers. I can list these Providers with the code: Dim rootWebConfig1 As Configuration rootWebConfig1 =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.