|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
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 <labservices> <helpdesk> 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) |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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> </TD> |
|
#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. |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
RE: SEEKING HELP WITH PHP AND IIS
No, the acton is set to all verbs. still the same thing
|
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > SEEKING HELP WITH PHP AND IIS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|