IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 9th, 2006, 04:58 PM
JackSparrow's Avatar
JackSparrow JackSparrow is offline
Don't shoot, we're not a tiger
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: Merry Old England
Posts: 254 JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 18 h 38 m 11 sec
Reputation Power: 18
Send a message via MSN to JackSparrow
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:
<?php
$name
$_REQUEST["name"];
$message$_REQUEST["message"];
$email$_REQUEST["email"];
$subject$_REQUEST["subject"];
mail("notmyaddress@fakedomain.com""Subject: $subject""Message: $message""From: $email");
echo 
"Thank you for using our feedback form!";
?>


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.

Reply With Quote
  #2  
Old November 9th, 2006, 06:14 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 13th Plane (11000 - 11499 posts)
 
Join Date: Jun 2003
Posts: 11,118 Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 12 h 59 m 42 sec
Reputation Power: 830
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

Reply With Quote
  #3  
Old November 10th, 2006, 02:25 AM
JackSparrow's Avatar
JackSparrow JackSparrow is offline
Don't shoot, we're not a tiger
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: Merry Old England
Posts: 254 JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 18 h 38 m 11 sec
Reputation Power: 18
Send a message via MSN to JackSparrow
Quote:
Originally Posted by Doug G
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.


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.

Reply With Quote
  #4  
Old November 10th, 2006, 02:00 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 13th Plane (11000 - 11499 posts)
 
Join Date: Jun 2003
Posts: 11,118 Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 12 h 59 m 42 sec
Reputation Power: 830
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.

Reply With Quote
  #5  
Old November 10th, 2006, 04:05 PM
JackSparrow's Avatar
JackSparrow JackSparrow is offline
Don't shoot, we're not a tiger
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: Merry Old England
Posts: 254 JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 18 h 38 m 11 sec
Reputation Power: 18
Send a message via MSN to JackSparrow
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.

Reply With Quote
  #6  
Old November 11th, 2006, 09:38 AM
JackSparrow's Avatar
JackSparrow JackSparrow is offline
Don't shoot, we're not a tiger
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: Merry Old England
Posts: 254 JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level)JackSparrow User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 18 h 38 m 11 sec
Reputation Power: 18
Send a message via MSN to JackSparrow
Bump up to the top

Reply With Quote
  #7  
Old November 11th, 2006, 12:02 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 13th Plane (11000 - 11499 posts)
 
Join Date: Jun 2003
Posts: 11,118 Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 12 h 59 m 42 sec
Reputation Power: 830
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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Installing PHP v5.2.0 on IIS 5.1


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT