|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Installing PHP v5.2.0 on IIS 5.1
Hi,
I'm trying to set up PHP v5.2.0 on IIS (version 5.1 (Windows XP)). So far I have run into a fair few problems but have worked past them and I'm one step away from getting it to function properly. I downloaded the installer from php.net and ran it. I chose '4+ (ISAPI)' or something to that effect and clicked install. So far so good. After this, I recieved a 'HTTP 405' error when I tried to access one of my .php pages and so I Googled this and followed a short tutorial on how to fix this error. This was successful - I could now access the page. However, though the page actually loads, it is just a blank document. The <title> of the document loads fine but there is nothing visible in the <body> of the document. The code on this page is the handler for a HTML form, which should post the results to me: PHP Code:
I personally diagnose this as a bad setup of PHP on my part. Here are the changes I made when installing PHP: php.ini -> Set error_reporting to E_ALL & ~E_NOTICE and set register_globals to on Note: These are the only changes that I made To deal with the Error 405: Control Panel | Administrative Tools | Internet Information Services | Websites (properties) | Home Directory | Configuration... And from there, I added the .php extension (from asp.dll), with 'verbs' set to 'all'. I think I've listed all of the important information here, but if you require anymore, please ask Any help is greatly appreciated (Seeing as this took me forever to list all the details =P)Liam. Last edited by JackSparrow : November 9th, 2006 at 05:11 PM. |
|
#2
|
|||
|
|||
|
Why don't you start with something simpler than an email script for testing your php installation? You have to make some php.ini configuration settings to get mail to work in windows.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
||||
|
||||
|
Quote:
Ah right I see. Well, I'll create a simple script and try that on there then . I'll let you know how I get on (might be a while, gotta go to work )Thanks for your help, Liam. |
|
#4
|
|||
|
|||
|
I used the manual isapi installation steps from the php install documentation for php 5.1 on XP, and as I recall other than adding some IIS permissions to c:\php, and discovering the active php.ini file was the one in c:\windows, everything was pretty easy. The first test is to put a <?php phpinfo(); ?> page in the web and see if you get the php info page back.
|
|
#5
|
||||
|
||||
|
Hi Doug G,
Thanks again for your help However, its still not working. I tried a simple PHP script, and also the phpinfo() function but still to no avail, unfortunately. Its reading the <head> of the document still, but not the <body>. I have two php.ini files - the one which I modified was in the exact directory that I installed PHP 5.2 to, and the other is in C:/Program Files/PHP. However, I think that the one in Program Files may just be from a past installation (I installed the wrong version and had to uninstall). Reckon its worth trying the one in Program Files? Note: Here is the tutorial that I followed to set it up. Thanks again, Liam. |
|
#6
|
||||
|
||||
|
Bump up to the top
![]() |
|
#7
|
|||
|
|||
|
What are you bumping this for?
Why don't you follow the installation documentation included with your php download instead of someone's 4 year old forum post? |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Installing PHP v5.2.0 on IIS 5.1 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|