Solved

PHP on IIS

Posted on 2009-05-18
8
436 Views
Last Modified: 2012-05-07
We are trying to get PHP 5.2.9 to run on IIS 6.0 on our server.  Currently we can get PHP 5.1 to work on IIS 6.0 and we can get PHP 5.2.9 to work with Apache on the same server, any ideas?  Thanks.
0
Comment
Question by:sharkbot221984
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 17

Assisted Solution

by:Chris Harte
Chris Harte earned 500 total points
ID: 24417422
There is a windows build of 5.2.9 This (5.2.9-2) could be the one you are after.

http://www.php.net/archive/2009.php#id2009-04-08-1
0
 
LVL 8

Author Comment

by:sharkbot221984
ID: 24417436
Is 5.2.9-1 not for windows?

Also can I run 5.2.9-1 or 2 alongside 5.1.6?  Seems to me that it would be conflicting, we already have sites running on this webserver for 5.1.6.
0
 
LVL 8

Author Comment

by:sharkbot221984
ID: 24417464
Upon further inspection of the 5.2.9-1 setup looks like it wasn't fully configured, at least not according to this guide I've found:

http://www.iis-aid.com/articles/how_to_guides/installing_php_5_on_iis_in_5_simple_steps?page=0,0

Basically there was a C:\PHP directory (5.1.6) already set up, and someone setup C:\PHP-5.9.2-1 as well.  Environment Variables were not configured for the C:\PHP-5.9.2-1 folder, and neither was a web service extension.  Seems to me that adding these would conflict with the existing stuff, correct?  Or is it okay as long as we call the specific directory we want to actually use?


0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 17

Assisted Solution

by:Chris Harte
Chris Harte earned 500 total points
ID: 24417530
You can run multiple versions of php on the same server.
Each version must have its own PHP.ini.
The binaries must be in seperate directories.
Create FastCGI application process pools for each version.

This link has the code on how to create the process pool (search for multiple)

http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/
0
 
LVL 8

Author Comment

by:sharkbot221984
ID: 24417604
I believe the binaries are in 2 different directories, C:\PHP\ext and C:\PHP-5.2.9-1\ext.  I do also have 2 different php.ini files, one is in C:\Windows\php.ini, and the other is in C:\PHP-5.2.9-1\php.ini

The current version 5.1.6 is using ISAPI, can I configure the second version for FastCGI and leave the first, or should I change the first to FastCGI as well?
0
 
LVL 17

Assisted Solution

by:Chris Harte
Chris Harte earned 500 total points
ID: 24420690
Microsoft recommend the use of fastCGI with their servers.,
0
 
LVL 8

Author Comment

by:sharkbot221984
ID: 24424917
This site is more along the lines of what's needed for multiple versions side by side:

http://www.iis-aid.com/articles/how_to_guides/running_multiple_versions_php_iis

I have them isolated now, and my sites that use 5.1.6 are up and running and not effected by what i'm doing to my 5.2.9 settings.  I setup a new phpinfo.php page to use the 5.2.9 settings and it did not work (which is to be expected since the developers don't want me to restart the server yet).  So I pushed ahead to convert the 5.2.9 ISAPI to use FastCGI instead, configured my fcgiext.ini and php.ini files to reflect FastCGI settings, changed only the site I'm testing to use the fcgiext.dll and I get "No Input File Specified" HTTP 404 error.
0
 
LVL 8

Accepted Solution

by:
sharkbot221984 earned 0 total points
ID: 24425675
The above link was a big part of it.  I had everything right up to the "No Input File Specified" part, the final bit was editing the php.ini file to reflect the actual root directory of my phpinfo.php file, in the end I had it setup exactly the way that we wanted it, because as soon as I got it configured for my phpinfo.php file I undid it all to work for the development site already established but running under 5.1.6, just switched the php5isapi.dll file over to the fcgiext.dll and it works perfect.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…

717 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