Home >Backend Development >PHP Problem >How to solve the problem that iis cannot access the php folder permissions
IIS (Internet Information Services) is a web server software developed by Microsoft, commonly used on Windows operating systems to host ASP.NET websites. At the same time, IIS also supports the PHP environment, but in the process of building a PHP website, you will encounter the problem of not being able to access the PHP folder permissions.
This is a very common problem. In this article, we will delve into the problem that IIS cannot access the PHP folder permissions. We hope it can help you.
1. Problem Description
When we build a PHP website in IIS, we sometimes encounter the following problems:
When accessing a PHP file through a browser, the web page displays 403 Forbidden (Access Denied) prompt
Unable to use FTP client to upload PHP files to the server
Unable to access the PHP folder in IIS configuration
These error prompts are It shows the same problem, that is, IIS cannot access the permissions of the PHP folder. So, how to solve this problem in IIS? This will be described in detail below.
2. Check the folder permissions
When we encounter the permission problem that IIS cannot access the PHP folder, the first step should be to check the permissions of the folder. We can view and modify folder permissions through the following steps.
The above steps are to set the permissions of the PHP folder. Below we will discuss how to configure PHP extensions in IIS.
3. Configuring the PHP extension in IIS
Before configuring the PHP extension, please make sure that you have installed PHP on the server. If PHP has not been installed, please refer to the relevant information first and install the latest version of PHP.
Request path: *.php
Module: FastCgiModule (if not, please make sure FastCgiModule is installed on the server)
Executable file: D:\php\php-cgi.exe (in this example, PHP is installed on the D drive php folder under The IIS website can already access the PHP folder successfully.
Summary
The above is the detailed content of How to solve the problem that iis cannot access the php folder permissions. For more information, please follow other related articles on the PHP Chinese website!