Windows + IIS7.5 Access PHP site 403, the specific exception is as follows

Source: Internet
Author: User
Windows + IIS7.5 Access PHP site 403, the specific error is as follows
Error summary
HTTP Error 404.3-not Found
The page you requested could not be supplied due to an extended configuration issue. If the page is a script, add a handler. If you should download the file, add a MIME map.
Detailed error information
Module StaticFileModule
Notify Executerequesthandler
Handler Staticfile
Error code 0x80070032
The requested URL http://www.594jj.com:80/index.php
Physical path F:\allweb\594jj.com\index.php
Login Method Anonymous
Login User Anonymous
The most probable cause:

The handler mappings may be missing. By default, the static file handler processes all content.
The feature you are using may not be installed.
No corresponding MIME mappings are enabled for the Web site or application. (Warning: Please do not download for users.) Create MIME mappings for content such as ASPX pages or. config files. )
If you do not install ASP.

Actions you can try:

In the System.webserver/handlers:
Ensure that the handler required for the current page is mapped.
Please pay special attention to the premises (for example, RuntimeVersion, Pipelinemode, bitness) and compare these prerequisites to the settings of the application pool.
Pay particular attention to the writing errors in the desired handler line.
Make sure the feature you want to use is already installed.
Verify that MIME mappings are enabled, or use the command-line tool Appcmd.exe to add MIME mappings for your Web site.
To set the MIME type, use the following syntax:%systemroot%\windows\system32\inetsrv\appcmd set config/section:staticcontent/+[fileextension= ' String ', mimetype= ' string ']
The variable fileextension string is the file name extension, and the variable MimeType string is a file type description.
For example, to add a MIME map for a file with an extension of ". XYZ": Appcmd set Config/section:staticcontent/+[fileextension= '. xyz ', mimetype= ' Text/plain ']
Warning: Please confirm that your WEB server requires this MIME mapping before adding it to the list. Configuration files, such as. CONFIG) or a dynamic script page, such as. ASP or. ASPX) should not be downloaded directly, and should always be handled through handlers. Sometimes other files are used, such as database files or. XML or. MDF, for storing configuration files) to store configuration information. Verify that the client can download these types of files before you enable them.
Install ASP.
Create a trace rule to track failed requests for this HTTP status code. For more information about creating a trace rule for a failed request, click here.




I have already installed the PHP environment on my server, and the mapping is added. Other PHP sites are good, this site is the case. And ask the great gods to explain them.

Share to: more


------Solution--------------------
Check your site properties to see if PHP related settings work for this site
Each site can be configured separately, can't think of other sites can, this site should be able to
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.