473,395 Members | 1,726 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,395 software developers and data experts.

Installing PHP onto IIS

Frinavale
9,735 Expert Mod 8TB
I'm starting to really go crazy with this.

I've downloaded PHP 5.2.11.
I unzipped it into C:\PHP\php5211\
I copied the php.ini (recommended) file to c:\windows\
I made sure that the php.ini file was renamed so that it's "php.ini"
I edited the php.ini file to include the extensions etc that I need
In IIS7 I installed the php5isapi.dll
I edited the Script Handlers to point to the php5isapi.dll and made sure that it is allowed to be executed

I even changed the system environment's path to include C:\PHP\php5211\

I cannot get PHP to run.
I have a test script on the server right now (<?php phpinfo(); ?>) to test with but whenever I try to run it I get a 404 error. I also have an index.html file on the server that has "hi" in it...I can access it fine.

So PHP's not running.

But there's one other problem, the w3wp.exe (the worker process) keeps crashing whenever the php5isapi is activated (if I disallow it I don't see this problem).

I even tried installing PHP 5.3.0 but didn't get very far with it because it seems to be missing some key components....

Does anyone have any suggestions on how to get this to work?

Thanks!

-Frinny
Sep 23 '09 #1
10 2812
Dheeraj Joshi
1,123 Expert 1GB
Is your test script file is in document root??????

Regards
Dheeraj Joshi
Sep 23 '09 #2
Markus
6,050 Expert 4TB
Hold on - I'll draw CodeGecko's attention to this thread - I know he's successfully installed PHP on his IIS server.
Sep 23 '09 #3
JamieHowarth0
533 Expert 512MB
I've already spent about 8 hours helping Frinny in the evenings using remote desktop :-)
We've isolated it down - PHP5 on IIS7 runs in ISAPI mode, which is fine.
The problem is that the PHP5 ISAPI crashes, which then kills the application pool worker process, when PHP tries to connect to MySQL.

Funnily enough, Frinny's looking at installing Joomla... wanna deter her Markus? :-D

codegecko
Sep 23 '09 #4
Frinavale
9,735 Expert Mod 8TB
It's definitely the ISAPI that crashes the worker process. You were right, it's not MySQL.

Everything works fine as long as that ISAPI isn't being used....last night it was even crashing the ASP.NET website's worker process. I removed it from that website and everything worked fine again.

I tried removing the ASP.NET stuff from the (supposed to be) PHP site thinking that there might be some sort of conflict but it still just crashes.

I'm not sure what is going on with PHP 5.30....it doesn't even have an ISAPI and it's missing the encryption/hashing stuff in the php.ini file.

Maybe I'll go one step backwards instead....
Sep 23 '09 #5
JamieHowarth0
533 Expert 512MB
I've thought about switching to FastCGI mode instead - you'll have performance problems compared to the ISAPI but at least it might just work. Drop me a line on Skype when you hit home this evening and we'll walk it through (I'll put up a tutorial on it afterwards).
Sep 23 '09 #6
Frinavale
9,735 Expert Mod 8TB
I'm not going to be able to get online until late my time (early your time...)
How do you configure the Fast CGI?
I'll give it a try tonight.

Thanks for all your help

-Frinny
Sep 23 '09 #7
JamieHowarth0
533 Expert 512MB
Remove the Handler Mapping and add a new one for *.php to map to the FastCGI handler (which I think is php-cgi.exe but not sure - check the Readme in the install directory for installation instructions on IIS).
Sep 23 '09 #8
Frinavale
9,735 Expert Mod 8TB
Thanks :)
I'll check it out tonight. I really want to get this up by the end of the week...
I have other stuff to work on!
Sep 23 '09 #9
Atli
5,058 Expert 4TB
Hey.
Your PC doesn't happen to be running a 64 bit Windows, does it?

IIS7 application pools running in 64 bit mode will only apply 32 bit ISAPI modules to 32 bit "enabled" Application Pools.
Try locating the application pool your site is running under, go into the advanced settings and set the "Enable 32-Bit Applications" to true.

For some reason this is disabled by default.
Sep 24 '09 #10
Frinavale
9,735 Expert Mod 8TB
Yeah I learned my lesson on trying to run 64bit servers a while ago.
The FastCGI seems to have fixed the problem with php (along with reinstalling php again...) Now I have other things to debug.

Thanks for your help :)
Sep 24 '09 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: jason | last post by:
I have various small html websites on my windows server 2003 pc, these function quite happily from directories under D:\websites via ports 81, 8081, 8091, 8082 and of course there is the dafault...
4
by: Barry Newberger | last post by:
Wanted to install Python 2.3.2 for Windows onto a CD-ROM. Problem, my high-speed connection is on PC with no CD burner. My solution: install onto USB removable cartridge, move the cartridge to...
5
by: JamesW | last post by:
Dear All, I need to install wxPython to run some programs that interest me. I have had numerous problems, probably due to knowing little about the packages and python, and taking the computer...
2
by: Jon Monteleone | last post by:
Greetings, Does anybody have a website where I can download a copy of Tkinter to install onto knoppix? Is it a pretty straightforward install? Cheers -Jon
4
by: Claire | last post by:
Hi, I know this isn't strictly C# language related, but my service IS written in c# and I checked out the list of microsoft newsgroups for win2000 and couldn't really see one that applies. I'm...
5
by: Alexander Walker | last post by:
Hello I have downloaded the VB.NET 2003 iso from MSDN and tried to install it onto a virtual pc but the installation doesn't get far at all because it asks me for a prerequisites disk that I...
1
by: Aaron | last post by:
Not sure if this is the best spot to post this question, but I am not going to pay money to ask an installation question.... Anyways I am trying to install C# standard 2003 and it analyzes the...
1
by: hazz | last post by:
I tried using the Visual Studio setup and deployment wizard to create an msi to install the .exe, config and .dll resource files from my winxp deve box onto a Windows 2003 server. I don't have...
7
by: Alan Silver | last post by:
Hello, I have a Windows 2003 Server machine, running the latest IIS. I have been asked to add a Wordpress blog to a site, but this is only available as a PHP. Are there any issues with...
7
by: fordie1000 | last post by:
hi, Anyone have advice on installing a linux distro on a new computer with no optical drive or network connection? I have heard you can put the live CDs onto a USB key and boot from that ......
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.