Link to home
Start Free TrialLog in
Avatar of RunForrestRun
RunForrestRunFlag for United States of America

asked on

Http Error 405.0 - method not allowed iis 7.5 module staticfilemodule

I have ran into an issue here that I can not seem to find a solutions for. I have a form that I am trying to deploy in IIS 7.5 and when I execute my script I get the following error...


    Error Summary
    HTTP Error 405.0 - Method Not Allowed
    The page you are looking for cannot be displayed because an invalid method    
    (HTTP verb) is being used.
    Detailed Error Information
    Module      StaticFileModule
    Notification      ExecuteRequestHandler
    Handler      StaticFile
    Error Code      0x80070001
    Requested URL      http://localhost:80/Address.php
    Physical Path      C:\inetpub\wwwroot\Address.php
    Logon Method      Anonymous
    Logon User      Anonymous

I have tried everything under the sun. I have deleted the WebDavmodule....I have added the POST verb to the StaticFile Module....I have selected all verbs under the verbs tab. I have enabled the CGI.exe file...also I enabled the ISAPI module. I have read numerous articles on the issue and it seems a lot of people are having these issues and they didn't find a real fix for it. If there is any information someone could provide to help me get passed this I would be more than thankful. In addition, I checked the server log files. They are as follows...

    #Software: Microsoft Internet Information Services 7.5
    #Version: 1.0
    #Date: 2015-04-08 13:33:24
    #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
    2015-04-08 13:33:24 ::1 GET /validation_data.js 233 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/41.0.2272.118+Safari/537.36 200 0 0 171
    2015-04-08 13:33:48 ::1 POST /Address.php - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/41.0.2272.118+Safari/537.36 405 0 1 3
    #Software: Microsoft Internet Information Services 7.5
    #Version: 1.0
    #Date: 2015-04-08 13:48:12
    #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
    2015-04-08 13:48:12 ::1 GET /indv/ - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/41.0.2272.118+Safari/537.36 403 14 0 17
    2015-04-08 13:48:54 ::1 GET /Address.html - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/41.0.2272.118+Safari/537.36 304 0 0 1
    2015-04-08 13:48:54 ::1 GET /validation_data.js 341 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/41.0.2272.118+Safari/537.36 200 0 0 25
    2015-04-08 13:49:21 ::1 POST /Address.php - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/41.0.2272.118+Safari/537.36 405 0 1 2
    2015-04-08 13:49:48 ::1 GET /validation_data.js 787 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/41.0.2272.118+Safari/537.36 200 0 0 33
    2015-04-08 13:50:12 ::1 POST /Address.php - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/41.0.2272.118+Safari/537.36 405 0 1 3
Avatar of Dan McFadden
Dan McFadden
Flag of United States of America image

Couple of questions:

1. What features of IIS are installed?  (past the defaults)
2. Is Request Filtering installed?
3. Have you installed FastCGI?
4. What version of PHP?
5. What does phpInfo() report?

Dan
Avatar of RunForrestRun

ASKER

Features:
Remote Server Administration Tools
Role Administration Tools
Web Server IIS Tools
Windows Process Activation Services
Process Model
.NET Enviroment
Configuration APIs
.,NET Framwork 3.5 Features
.NET Framework 3.5.1
WCF Activation
HTTP Activation
Non-HTTP Activation

Yes...Requst Filtering is installed.

I tried to install FastCGI using the steps here (could not locate php-cgi.exe) :http://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/using-fastcgi-to-host-php-applications-on-iis#Configure_handler_mapping

PHP 5.6

I tried to run php -info in the command prompt and I could not get anything.
ASKER CERTIFIED SOLUTION
Avatar of Dan McFadden
Dan McFadden
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No I have not. I will do that now!
Ok I've made progress. I have installed PHP Manager....tested it...everything is working fine. After that I had to install Visual C++ Redistributable for Visual Studio 2012 Update 4. Now when I try to post my form I see a blank screen. That said thank your recommending PHP Manager.
Thru PHP manager for IIS, you can test your PHP installation.  It displays the web output from phpinfo.  It is useful to verify that your PHP install is function correctly.

Can you build a test page to post to that displays the info that you just posted>?

Dan