Configure IIS and PHP support for Windows 7 to make your PC a small server

Source: Internet
Author: User
Tags install wordpress

 

Because of the work needs, we often need to provide the design prototype for everyone to access, but some of the designs that are being modified are difficult to upload to the server every time, so it is difficult to configure your own notebook (Windows 7 System) IIS and PHP support, so that other people can directly access the prototype generated by Axure. The configuration steps are as follows;

The steps are simple because the database installation is not required here. follow these steps:

1. Install IIS for Windows 7

Go to Control Panel programs and functions to enable or disable Windows, and findInternet Information Service, Click the box above to fill it, as shown in:

 

After the installation is successful, open the browser and enter http: // 127.0.0.1 (open in a new window). If you enter the following interface, the installation is successful;

If you only need to access some html pages or use asp, you do not need to configure PHP. You can enter the control panel, administrative tools, and Inter Information Service (IIS) manager for simple settings, change the physical location of the website directory, and then place the page under the directory to access it (firewall needs to be disabled). You can also leave the directory unchanged. The default directory is in the corresponding location under drive C.

 

2. Download and configure PHP

1. Download PHP. Click here to download PHP5.3 from the official website. You can also go to the official website to view and download it → PHP For Windows.

2. decompress the downloaded zip package to drive C: \ php;

3. Go to control panel, administrative tools, and Inter Information Service (IIS) manager;

4. For example, double-click to enter the page.ISAPI filter:

 

5. Right-click in the center and select Add, such as fill in, select the corresponding file, and click OK:

 

6. Go to the 4 Page and double-click to enterHandler ing, Right-click in the center, selectAdd script ing, Such as entering, selecting the corresponding file, and confirming:

 

7. ClickApplication pool, Right-click in the center, selectAdd application pool, Such as entering, selecting the corresponding value, and confirming:

 

8. Go to the 4 page again and double-clickDefault documentClick Add in the middle, as shown in and OK:

9. Enter the C: \ php Directory, rename the php. ini-list file to php. ini, and copy it to the c: \ windows directory;

10. Modify the c: \ windows \ php. ini file (use NotePad to open the file), search extension = php, find the entry in the picture box, and;Delete;

Search extension_dir = and change itExtension_dir = "c: \ php \ ext \", Save the modification and check;

11. Open the C: \ php Directory and findLibmcrypt. dll,Libmysql. dll,Php5ts. dllCopy the three files to the F:/windows/System32 directory;

Contents), write content <? Php phpinfo ();?> Then, access http: // 127.0.0.1/index. php to check whether the configuration is successful;

Note: You can also learn how to install Xampp. It is convenient to automatically configure the Apache service, and support PHP, MySQL, and phpMyAdmin, the reason why I don't install it on my computer is that I want my system to be simpler and better, and I don't use database and database management, and IIS services do not need to be started manually, you only need to connect to other users in the same LAN (The premise is that the firewall is disabled.).

PS: If you need to install WordPress, Discuz, and other site programs on your computer, the database is essential. You need to install the database or choose to install Xampp, which is not described in detail, there are many tutorials on the Internet. You can also ask me (I am a cainiao and can only learn together ).

From: dboy ~ Xiao zhengrong, 365 days

Related Article

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.