IIS+php configuration tutorial under Windows 7

黄舟
Release: 2017-05-27 09:53:49
Original
1564 people have browsed it

This article mainly introduces the IIS+php configuration tutorial under Windows 7 in detail. It has certain reference value. Interested friends can refer to it

WINDOWS 7 IIS+ PHP configuration tutorial, the specific content is as follows

Open Start-> Control Panel-> Programs and Features-> Turn Windows functions on or off

IIS+php configuration tutorial under Windows 7

##Check Select Internet Information Services, click the plus sign in front, and check World Wide Web Services-> Application Development Function-> CGI

IIS+php configuration tutorial under Windows 7##Click OK

PHP download,

InstallationDownload the corresponding version as needed


IIS+php configuration tutorial under Windows 7

IIS+php configuration tutorial under Windows 7Download php-5.6.30-Win32-VC11-x64.

zip

##Create the php56 file in the root directory of drive C folder, unzip it to this directory IIS+php configuration tutorial under Windows 7

Enter the php56 folder on the C drive, find php.ini-development, rename it to php.ini, and open it with the text

editor

Find

; extension_dir = "./"
Copy after login

, remove the previous;, and replace the content in double quotes with

extension_dir = "C:/php56/ext"
Copy after login

find

;cgi.force_redirect = 1
Copy after login

, remove; and change it to

cgi.force_redirect = 0
Copy after login

find

;cgi.fix_pathinfo=1
Copy after login

Remove the previous one;

Find

;fastcgi.impersonate = 1
Copy after login

Remove the previous one;

Save

Exit

Click to start , enter iis, open Internet Information Services Manager

Click Handler Mapping, then click Add Module MappingIIS+php configuration tutorial under Windows 7

Enter the following informationIIS+php configuration tutorial under Windows 7

Enter the folder directory where iis opens port 80 by defaultIIS+php configuration tutorial under Windows 7

##Create

phpinfoIIS+php configuration tutorial under Windows 7.php, open it with a text editor and enter the following content

<?php
 phpinfo();
?>
Copy after login

Save and exit Enter

localhost/phpinfo.php# in the browser

##If you see the following content, the configuration is successful

The above is the detailed content of IIS+php configuration tutorial under Windows 7. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!