Iis + php prompts Anerroroccurredontheserverwhenprocessingthe_PHP tutorial

Source: Internet
Author: User
Iis + php prompts anerroccurredontheserverwhenprocessingthe. Iisphp prompts anerroccurredontheserverwhenprocessingtheurl error frequently when using the iis + php environment, but no good solution can be found on the php official website. When using the iis + php environment a few days ago, I often encounter An "An error occurred on the server when processing the URL" error in iis php, but I cannot find a good solution on the php official website.

A few days ago, I helped my friend solve the MSSQL database connection problem after the website was migrated. then I set up its code locally to test the environment and found an ASP problem and solved it, it also helped my friend solve the problem. So today I would like to tell you a mistake in ASP. although ASP programs are rarely used, there are still a lot of errors.

Okay. go to our topic. First, let's take a look at the demo environment. First, I used the 32bit and IIS7.5 Windows 7 flagship versions. The program uses a simple CMS system with the language ASP.

The error is:
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

In fact, it is very easy to solve this problem. today we will take it as a class to discuss with you.

Step 1: Start IIS and open the site. Find ASP in the function View list]

Step 2: change the value of "send error to browser" 【TrueAnd application.

After modification, you can preview the effect. It is not possible because it is not configured yet.

The following error occurs::
Active Server Pages error 'asp 0131'
The parent path is not allowed.
/Admin/login. asp, row 1
The file "../Inc/Const. Asp" cannot use ".." to indicate the parent directory.

Step 3: at this time, I need to set 【Enable parent path], Also set 【True] And apply

Let's see how it works?

By the way, I will also explain it here, but I will introduce it based on my understanding. what should I do in simple words? Sending errors to the browser is to display program error messages in a user-friendly manner, mainly to facilitate debugging. enabling the parent path means that "... the path is the same as Windows permission inheritance. The following content is from Microsoft's official description:
Send the error to the browser [scriptErrorSentToBrowser]:
Specify whether the Web server writes debugging details (file name, error, row number, and description) to the IIS request log to the client browser. The default value is True.
Enable the parent path [enableParentPaths]:
Specifies whether the ASP page allows the path relative to the current directory (using the "..." notation), that is, the path above the current directory. The default value is False.

Tisp:
1. if a problem occurs when the browser opens any website, you can enable "show Friendly http error information" in IE to view the error information of this website.

2. users of the VM space can ask the service provider to solve this problem.

When warn php prompts An error occurred on the server when processing the URL error, but no good solution can be found on the php official website. Help a few days ago...

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.