search
HomeBackend DevelopmentPHP Tutorialiis+php提示An error occurred on the server when processing the_PHP教程

When using the iis+php environment, I often encounter the iis php prompt An error occurred on the server when processing the URL error, but I can't find a good solution on the php official website.

A few days ago, I helped a friend deal with the MSSQL database link problem that occurred after the website moved. Later, I tested the code in a local environment and found an ASP problem and solved it. It also helped my friend solve the problem. So today I will tell you about an error that occurs in ASP. Although few people use ASP programs, there are still many.

Okay, let’s get into our topic. First, let’s understand the demonstration environment. First of all, I am using Windows 7 Ultimate 32bit and IIS7.5 versions. The program uses a simple CMS system, language: ASP.

An error occurred on the server when processing the URL. Please contact the system administrator.

The error that occurred 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 simple to solve this problem. Let’s talk about it as a lesson today.

Step one: Start IIS and open the site. Find [ASP] in the list of [Function View]

iis+php提示An error occurred on the server when processing the_PHP教程

Step 2: Find the value of [Send error to browser] and change it to [True] and apply it.

iis+php提示An error occurred on the server when processing the_PHP教程

If you modify it, preview it directly to see the effect. It probably won't work because it hasn't been set up yet.

Active Server Pages 错误 'ASP 0131'

The error that occurred is as follows:
Active Server Pages error 'ASP 0131'
Not allowed parent path
/admin/login.asp, line 1
The included file "../Inc/Const.Asp" cannot use ".." to represent the parent directory.

Step 3: At this time, I also need to set [Enable parent path], also set it to [True] and apply

iis+php提示An error occurred on the server when processing the_PHP教程

Let’s see how it works?

iis+php提示An error occurred on the server when processing the_PHP教程

By the way, let me explain it here, and I will introduce it based on my understanding. In simple terms? Sending errors to the browser means that the program error information is not displayed in a friendly way, mainly for the convenience of debugging; enabling the parent path is the path method where "..." etc. appears in the code, which is the same as Windows permission inheritance. . The following content is from Microsoft’s official description:
Send error to browser [scriptErrorSentToBrowser]:
Specifies whether the web server writes debugging details (file name, error, line number, description) to the client browser in addition to logging them to the IIS request log. The default value is True.
Enable ParentPaths:
Specifies whether the ASP page allows paths relative to the current directory (using the "..." notation), i.e. paths above the current directory. The default value is False.

Tisp:
1. If there is a problem with the browser opening any website, you can uncheck IE's [Show friendly http error messages] to view the error message of this website.

iis+php提示An error occurred on the server when processing the_PHP教程

2. Users of virtual hosting space can ask the service provider to solve this problem.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/633927.htmlTechArticleWhen using the iis+php environment, I often encounter the iis php prompt An error occurred on the server when processing the URL. , but I can’t find a good solution on the php official website. Helped a few days ago...
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
谷歌浏览器提示此标签页的内容正在被共享怎么办?谷歌浏览器提示此标签页的内容正在被共享怎么办?Mar 13, 2024 pm 05:00 PM

  谷歌浏览器提示此标签页的内容正在被共享怎么办?我们在使用谷歌浏览器打开新标签的时候有时候会遇到提示此标签页的内容正在被共享,那么这是怎么回事?下面就让本站来为用户们来仔细的介绍一下谷歌浏览器提示此标签页的内容正在被共享的问题解析吧。  谷歌浏览器提示此标签页的内容正在被共享解决方法  1、打开谷歌浏览器,在浏览器右上角可以看到三个点“自定义和控制Googlechrome”用鼠标点击图标进行图标。  2、点击后,谷歌浏览器的菜单窗口将弹出到下面,鼠标将移动到“更多工具

PHP Fatal error: Call to undefined method PDO::prepare() in的解决方法PHP Fatal error: Call to undefined method PDO::prepare() in的解决方法Jun 22, 2023 pm 06:40 PM

PHP作为一种流行的Web开发语言,已经被使用了很长时间。PHP中集成的PDO(PHP数据对象)类是我们在开发Web应用程序过程中与数据库进行交互的一种常用方法。但是,一些PHP开发者经常遇到的问题是,当使用PDO类与数据库进行交互时,他们会收到这样的错误:PHPFatalerror:CalltoundefinedmethodPDO::prep

在Vue应用中使用axios时出现“Uncaught (in promise) Error: Request failed with status code 500”怎么办?在Vue应用中使用axios时出现“Uncaught (in promise) Error: Request failed with status code 500”怎么办?Jun 24, 2023 pm 05:33 PM

在Vue应用中使用axios是十分常见的,axios是一种基于Promise的HTTP客户端,可以用于浏览器和Node.js。在开发过程中,有时会出现“Uncaught(inpromise)Error:Requestfailedwithstatuscode500”的错误提示,对于开发者来说,这个错误提示可能有些难以理解和解决。本文将会探讨这

0271:real time clock error开不开机怎么办0271:real time clock error开不开机怎么办Mar 13, 2023 am 11:30 AM

“0271:real time clock error”开不开机的解决办法:1、按一下F1,在出现的界面中,将选项栏转到第三项“Date/Time”;2、将系统时间手动修改成现在的时间;3、按F10,在弹出的对话框中,选择yes;4、重新打开笔记本即可正常开机。

试用新的铃声和文本提示音:在 iOS 17 的 iPhone 上体验最新的声音提醒功能试用新的铃声和文本提示音:在 iOS 17 的 iPhone 上体验最新的声音提醒功能Oct 12, 2023 pm 11:41 PM

在iOS17中,Apple彻底改变了其全部铃声和文本音调选择,提供了20多种可用于电话、短信、闹钟等的新声音。以下是查看它们的方法。与旧铃声相比,许多新铃声的长度更长,听起来更现代。它们包括琶音、破碎、树冠、小木屋、啁啾、黎明、出发、多洛普、旅程、水壶、水星、银河系、四边形、径向、清道夫、幼苗、庇护所、洒水、台阶、故事时间、戏弄、倾斜、展开和山谷。反射仍然是默认铃声选项。还有10多种新的文本提示音可用于传入短信、语音邮件、传入邮件警报、提醒警报等。要访问新的铃声和文本铃声,首先,请确保您的iPh

PHP Fatal error: Call to undefined function mysqli_connect()的解决方法PHP Fatal error: Call to undefined function mysqli_connect()的解决方法Jun 23, 2023 am 09:40 AM

在使用PHP编写Web应用程序时,经常会使用MySQL数据库来存储数据。PHP提供了一种与MySQL数据库进行交互的方法,称为MySQLi。然而,有时在使用MySQLi时,会遇到一个错误信息,如以下所示:PHPFatalerror:Calltoundefinedfunctionmysqli_connect()这个错误信息意味着PHP无法找到my

PHP Fatal error: Call to a member function fetch()的解决方法PHP Fatal error: Call to a member function fetch()的解决方法Jun 23, 2023 am 09:36 AM

在使用PHP进行web应用开发时,很多时候会需要使用数据库。而在使用数据库时,错误提示是非常常见的事情。其中,PHPFatalerror:Calltoamemberfunctionfetch()是一种比较常见的错误,它会在使用PDO查询数据库时出现。那么,这个错误是怎么引起的,以及如何解决呢?本文将为大家详细阐述。一、错误产生原

Vue中如何处理用户输入的校验和提示Vue中如何处理用户输入的校验和提示Oct 15, 2023 am 10:10 AM

Vue中如何处理用户输入的校验和提示在Vue中处理用户输入的校验和提示,是前端开发中常见的一个需求。本文将介绍一些常用的技巧和具体的代码示例,帮助开发者更好地处理用户输入的校验和提示。使用计算属性进行校验在Vue中,可以使用计算属性来监测和校验用户输入。可以定义一个计算属性来代表用户输入的值,并在该计算属性中进行校验逻辑。下面是一个示例:data(){

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.