Solved

Multiple Versions of php

Posted on 2004-03-22
4
369 Views
Last Modified: 2013-12-13
Hi,

I need to run 2 versions of php (4.3.1 and 4.3.4) on the same server at the same time.  
I have downloaded and installed both versions.  I have create 2 virtual directories.
One virtual directory for each of the versions of php that I have installed.  I have
a php.ini file in each of the versions directories (C:\php4  and C:\php434) that I have installed.

However, I get an error message when I attempt to bring up the phpinfo.html page for the php434 version.
Please note that the page DOES display.  However, it appears that the 'href's are not handled
properly.  I receive the following message: "Unknown():Unable to load dynamic library 'c:\php434\extensions\php_openssl.dll' - The operating system cannot run %1. "

How do I know that it is the hrefs?  I noticed the php and zend images would be displayed as soon as I clicked ok on the message box.  So I simply commented out the href part of the code and then I stopped getting the error.

Thanks in advance for any and all help.

cheers
knel




Environment:
Windows 2000 server
IIS 5.1
Please note my environment cannot change.  I cannot switch to another web server (ie apache) or another OS (ie linux) so please do not recommend this.  I did not pick this environment nor am I allowed to change it.

0
Comment
Question by:knel1234
4 Comments
 
LVL 4

Accepted Solution

by:
Georgiana Gligor earned 63 total points
ID: 10675355
I did the same thing (2 versions of php) on my machine, and I only created one virtual directory (which I named php434), for the version which was not default (in my case, 4.3.4); the php.ini was inside c:\php434
the configuration of IIS in this case is:
php434->properties->virtual directory->configuration... ->mappings an entry for extension .php uses the executable found at c:\php434\php.exe

for 4.0.6, i left the installation intact, and had the ini file in c:\windows, so that it was handled as default; the configuration of IIS is:
defaultwebsite->properties->home directory->configuration... ->mappings an entry for extension .php uses the executable found at c:\php\php.exe


when i needed to use 434 version of php, i only had to write http://localhost/php434/[the_url] instead of http://localhost/[the_url]

never had any problems with it

my environment is Win XP, IIS 5, so it would almost match yours

hope this helps,
Georgiana
0
 
LVL 10

Assisted Solution

by:Havin_it
Havin_it earned 62 total points
ID: 10703035
I don't know if this would be workable for you, but possibly you could specify mappings to the two executables for different extensions, say .PHP and .PHP4, and apply those to which files you want processed by which version.  I've done it that way on Sambar and Åpàchè (on Win32) so I guess it should work with IIS too...

HTH
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now