SunQuest
           PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

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 Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old January 26th, 2004, 03:59 PM
vulzan vulzan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 vulzan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SEEKING HELP WITH PHP AND IIS

SEEKING HELP WITH PHP AND IIS

Hello,


I have an application written in PHP (a help desk application) that I originally deployed to a Linux box. Our company is Microsoft centric, so I ended up trying to port the application over to IIS 5. This is where I am having trouble.

The directory structure for the site is as follows:

<wwwroot> (on d
&nbsp;&nbsp;<labservices>
&nbsp;&nbsp;&nbsp;&nbsp;<helpdesk>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index.php (this is the login page to the help desk system)

I have installed PHP properly and configured it with IIS to run as ASPI. I have added the extension .php to the list of extensions as well as defined index.php to be a default page.

The symptom is that if I put this path in the broswer: http://10.21.2.105/labservices/helpdesk/ the page does load. However after entering the user name and password and clicking on the button to log in, the following page is returned:






The page cannot be displayed
The page you are looking for cannot be displayed because the page address is incorrect.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, check that it is entered correctly.

Open the 10.21.2.105 home page and then look for links to the information you want.
HTTP 405 - Resource not allowed
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

More information:
Microsoft Support




In contrast, if I put this path into my browser: http://10.21.2.105/labservices/helpdesk/index.php the page still loads, but logging in with the user name and password actually works and allows me access to the application.

To summarize, it seems that I am required to include the filename in the url string in order for the login page to authenticate and allow access t the rest of the application. Why is this. How can I get IIS to load the index.php page so I do not have to include it in the url? Before you give a canned response to this question, consider that I have already added (as explained above)



Reply With Quote
  #2  
Old January 27th, 2004, 12:40 AM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: SEEKING HELP WITH PHP AND IIS

the first thing to do is view the source of the login page. Check the ACTION property of the form tag and see where it is pointing.

Reply With Quote
  #3  
Old January 28th, 2004, 06:22 PM
vulzan vulzan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 vulzan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: SEEKING HELP WITH PHP AND IIS

There is no action property, only:

}
</script>
</head>
<body bgcolor=#ffffff onload="setfocus()">
<form name=login method=post>
<TABLE class=border cellSpacing=0 cellPadding=0 width=90% align=center border=0>
<TR>
<TD>
<TABLE cellSpacing=1 cellPadding=5 width="100%" border=0>
<TR>
<TD class=hf align=left>&nbsp;</TD>

Reply With Quote
  #4  
Old January 29th, 2004, 07:33 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: SEEKING HELP WITH PHP AND IIS

Add an action tag to the form that calls index.php...

<form name=login method=post action="index.php">

see if that corrects the problem. I am not quite sure why IIS is reacting this way when no action tag is specified, but I have a feeling that when a default document is set in the Virtual Directory and then no action property is specified in the form tag, IIS loses track of what page it is actually on! Thats my best guess.

Reply With Quote
  #5  
Old February 29th, 2004, 08:20 AM
valgevali valgevali is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Estonia
Posts: 10 valgevali User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: SEEKING HELP WITH PHP AND IIS

it seems to me that You placed the "verbs" line to the application extension mapping properties of you php-isapi. And did not include POST method.
The easiest way to resolve it in this case, is to set the property to "all verbs". You could aslo add ",POST" to the line.

Reply With Quote
  #6  
Old March 1st, 2004, 01:20 PM
vulzan vulzan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 vulzan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: SEEKING HELP WITH PHP AND IIS

No, the acton is set to all verbs. still the same thing

Reply With Quote
  #7  
Old March 1st, 2004, 01:48 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: SEEKING HELP WITH PHP AND IIS

do you have index.php set up as a default document in IIS? If it is not then that is probably causing what is going on.

open up the IIS Service Manager and right click on the default website and select properties. Then click on the Documents tab and see if index.php is listed...if not, add it

Reply With Quote
  #8  
Old March 1st, 2004, 02:59 PM
vulzan vulzan is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 vulzan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: SEEKING HELP WITH PHP AND IIS

Yes I do. I have even removed other entries and tried it with just index.php being the top most type. Still, it does not work properly.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > SEEKING HELP WITH PHP AND IIS


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 6 hosted by Hostway