[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How to have multiple php version in one machine

Posted on 2006-04-09
Medium Priority
Last Modified: 2006-11-18
Our net administrator currently has php 4.1.2 installed. I want to add some contents which require php 4.3+ version. Provide our administrator cannot upgrade for me, how can I have two php version installed in the same machine ***without*** bringing any negative effects to existed websites (they work properly in php 4.1.2).

Our admin told me the include_path of our php.ini is:

include_path = ".;f:\php42\includes;f:\php42\pear"

and php.ini is in C:\WINNT\system32\.

Question by:tiger0516
1 Comment

Accepted Solution

tdterry earned 2000 total points
ID: 16414557
I think you'll need some help from your admin on this, but you can install PHP 4.3 in a separate folder, and use CGI invocation.  Also, the setup depends on your web server, which you didn't specify.

Install PHP 4.3 in f:\php43
In f:\php43\php.ini, set your include path to ".;f:\php42\includes;f:\php43\pear", etc
Configure the web server's virtual host for your domain name to run .PHP files as CGI scripts using f:\php43\php.exe

If you aren't using virtual hosts, then you'll have to name your scripts something else (like .PHP43), and use CGI based on that extension.  I don't recommend this as you will have a hard time hosting on other servers, which surely won't know about the .PHP43 extension.


Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month18 days, 15 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question