I know this isn't a code question so MODS feel free to bump this to where you think it is best located.
I recently got a new computer and installed Zend Studio Client 5.1 and Zend Studio Server 5.1. When I was installing the software (which also installs PHP) I was asked if I wanted to use PHP 4 or PHP 5. At first I chose PHP 5 but IIS was not rendering PHP scripts at all using PHP 5. I am not sure why. So I uninstalled and reinstalled Studio Server using PHP 4 and all is good and right with the world. Except...
I want to run PHP 5! How do I upgrade my PHP setup to run PHP 5.X instead of 4.4.1? I am also using MySQL 5 and I am planning on using this same setup on a dedicated server as soon as I can get my apps running correctly. Right now I am developing on a development machine.
Thanks in advance for your input and direction. All comments and assistance are welcome.
[SOLVED] - Installing PHP5 over PHP4.4 on IIS
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
[SOLVED] - Installing PHP5 over PHP4.4 on IIS
Last edited by RobertGonzalez on Wed Feb 01, 2006 11:24 am, edited 2 times in total.
Your topic title is a little bit misleading...
Anyway, I suggest using Apache as a development server. More than 70% of web servers out there run it and PHP is an Apache sister project, so you can be assured PHP will work on it, as it does for both PHP 4 and PHP 5.
I am not sure about IIS, but with Apache, running both verions of PHP side-by-side is a piece of cake. You'll need to install it as a CGI or Apache module, and then simply dedicate an extension to each version, such as .php4 for PHP 4 applications and .php for PHP 5 or vice versa. Or simply use .php for one, and if you'd like to switch, go into the Apache configuration, switch it, and then there you are, your scripts now run the other version.
Linkage:
Installing PHP under Apache 1.3.x on Windows
http://www.php.net/manual/en/install.wi ... pache1.php
Installing PHP under Apache 2.0.x on Windows
http://www.php.net/manual/en/install.wi ... pache2.php
Other platforms and general help:
http://www.php.net/manual/en/install.php
Anyway, I suggest using Apache as a development server. More than 70% of web servers out there run it and PHP is an Apache sister project, so you can be assured PHP will work on it, as it does for both PHP 4 and PHP 5.
I am not sure about IIS, but with Apache, running both verions of PHP side-by-side is a piece of cake. You'll need to install it as a CGI or Apache module, and then simply dedicate an extension to each version, such as .php4 for PHP 4 applications and .php for PHP 5 or vice versa. Or simply use .php for one, and if you'd like to switch, go into the Apache configuration, switch it, and then there you are, your scripts now run the other version.
Linkage:
Installing PHP under Apache 1.3.x on Windows
http://www.php.net/manual/en/install.wi ... pache1.php
Installing PHP under Apache 2.0.x on Windows
http://www.php.net/manual/en/install.wi ... pache2.php
Other platforms and general help:
http://www.php.net/manual/en/install.php
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Sorry Sami about the title. I edited to make it more relevant (I hope).
The reason I am using IIS is because I develop in .NET as well as PHP. Since PHP is a platform-friendly processor it made sense to use IIS since Micro$oft won't let their crap run on open platforms.
I downloaded PHP5.1.2 from php.net and am reading the E-X-H-A-U-S-T-I-V-E documentation on the difference between 4 and 5. Sometime next week when I get through it all I will see where it has lead me and post my results if I have some.
PS I suppose this thread has moved out of the scope of PHP - Code. Perhaps it would be best in General Discussion? Just a suggestion. Thanks for your initial reply and for the links.
The reason I am using IIS is because I develop in .NET as well as PHP. Since PHP is a platform-friendly processor it made sense to use IIS since Micro$oft won't let their crap run on open platforms.
I downloaded PHP5.1.2 from php.net and am reading the E-X-H-A-U-S-T-I-V-E documentation on the difference between 4 and 5. Sometime next week when I get through it all I will see where it has lead me and post my results if I have some.
PS I suppose this thread has moved out of the scope of PHP - Code. Perhaps it would be best in General Discussion? Just a suggestion. Thanks for your initial reply and for the links.
Thanks feyd.
Everah: If usage of IIS is essential, I'd suggest checking out this page:
http://www.php.net/manual/en/install.windows.iis.php
It's the PHP installation on IIS help page. By running through it, you should be able to uncover and find the configuration settings for the older version installed, so you can remove that and add the new settings for the fresh install.
Also, a great resource for learning about PHP 5 and the differences is Zend's PHP 5 Info Center. I think they make it simplistic yet very informative.
They break it down into sections, but here is the most important ones:
New PHP 5 Functions: http://www.zend.com/manual/migration5.functions.php
New PHP 5 Directives: http://www.zend.com/manual/migration5.newconf.php
New PHP 5 OO Model: http://www.zend.com/manual/migration5.oop.php
Backward Incompatible Changes: http://www.zend.com/manual/migration5.incompatible.php
Full site: http://www.zend.com/php5/
Everah: If usage of IIS is essential, I'd suggest checking out this page:
http://www.php.net/manual/en/install.windows.iis.php
It's the PHP installation on IIS help page. By running through it, you should be able to uncover and find the configuration settings for the older version installed, so you can remove that and add the new settings for the fresh install.
Also, a great resource for learning about PHP 5 and the differences is Zend's PHP 5 Info Center. I think they make it simplistic yet very informative.
They break it down into sections, but here is the most important ones:
New PHP 5 Functions: http://www.zend.com/manual/migration5.functions.php
New PHP 5 Directives: http://www.zend.com/manual/migration5.newconf.php
New PHP 5 OO Model: http://www.zend.com/manual/migration5.oop.php
Backward Incompatible Changes: http://www.zend.com/manual/migration5.incompatible.php
Full site: http://www.zend.com/php5/
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Thanks Sami and Feyd. After I started to dig a little bit last night I found that when I installed Zend studio server it kinda modified my PHP installation. It made it's own php.ini file and changed my IIS applications mapping (for my default web site) so that .php, .phtml and .php3 all ran through the Zend WinEnabler DLL instead of php-cgi.exe. After searching through the Zend KB I found out that WinEnabler configures itself to use the most recently released version of PHP4 regardless of what is on your system OR what you tell Studio Server to install during the load process. They also included instructions on how to modify the Windows registry to make WinEnabler use the version of PHP's cgi executable you want.
Quick note to other users considering this operation. WinEnabler only works with PHP 4.3.6 and up.
Quick note to other users considering this operation. WinEnabler only works with PHP 4.3.6 and up.