IIS is a Web (web page) service component, which includes Web server, FTP server, NNTP server and SMTP server, which are used for web browsing, file transfer, news service and email sending respectively. It makes the network ( It has become very easy to publish information on the Internet and LAN).
Under normal circumstances, the windows server system only supports IIS asp or IIS aspx by default, but sometimes our website program is PHP. Therefore, we need to configure IIS to support PHP. (Recommended study: PHP video tutorial)
I won’t go into details about how to install IIS. Today I will mainly talk about how to configure IIS to support PHP.
We first need to download the PHP compressed package. Here we use the php-5.2.5 64-bit version. And I have modified the configuration file inside, so you can just download it and use it.
Download it, unzip it to the C drive, and then change the folder name to php.
Open our server management and double-click the handler mapping.
Then add module mapping
Fill in the following content
Then click OK, we will be prompted whether to add it, we just choose OK.
Then add index.php to the default document
Then add it to our website Create a new index.php file in the root directory with the following content
<?php phpinfo(); ?>
. When accessed, if you see the following, it means that the configuration supports PHP successfully
The above is the detailed content of Does iis support php?. For more information, please follow other related articles on the PHP Chinese website!