Use iis to build a php environment in WIN7 (on)

Source: Internet
Author: User
: This article mainly introduces how to use iis to build a php environment (on) in WIN7. if you are interested in the PHP Tutorial, refer to it. Use iis to build a php environment in Windows 7
Build a php environment in win7, because I recently learned php by myself. I encountered a lot of problems when setting up the php environment, and I also checked a lot of information on the Internet to learn how to build the environment, however, I still cannot solve my problem well, so I decided to record the problems I encountered when setting up the php environment and share them with you, it is also to find it when you forget it in the future. if you don't talk nonsense, let's get started.
I used iis for configuration, but I didn't use apache for configuration. why? (Because I have not yet learned how to build apache, I am joking that iis is easier to configure than apache. apache will be added to my blog later ).
Preparation tools:
1. php-5.2.17-Win32-VC6-x86.zip download Web site: http://windows.php.net/download/ (can not find my qq I send you a copy );
2. Mysql5.0.83.rar: http://dev.mysql.com/downloads/ (QQ no. 1009326465)
3. mysql-gui-tools-5.0-r17-win32 this is the mysql management tool, amount, I am also in charge of others to this did not find;
Let's do it as soon as we prepare for the work. I started to configure the php environment. I am also a self-taught php. I still haven't figured out many things. I have made a mistake. thank you for your advice!
Step 1: configure the iis server
1. first, enable iis server in win7, start menu → control panel → programs and functions, enable or disable windows function (left side) → internet information service → select iis 6 in the red box in the figure! (After the check box is selected, iis 6 is easily configured and iis7 is configured );

Click "OK" and wait a few minutes until the installation is complete. after the iis server is installed, you can start setting up the php environment;
Step 2 configure php
1. decompress php-5.2.17-win32-vc6-x86.zip to a new folder, rename the folder to php52iis, and put php52iis to the c:/Program Files (x86)/folder;

2. open the decompressed folder php52iis and find the php. ini-dist file, rename the file to php. ini, and double-click to open php. in the ini configuration file, ctrl + f find extension_dir and set extension_dir = ". /"to extension_dir =" C:/Program Files (x86)/php52iis/ext/"(note: spaces must be added in the middle of Program Files (x86, otherwise, an error will be reported during subsequent tests );
,
3. copy the php. ini configuration file to the window on the drive C. This step is now complete. you need to modify the file later when configuring mysql;
4. open the iis information service manager and choose "Start Menu"> "control panel"> "administrative tools"> "iis information service manager;
5. configure isapi filter and handler ing in the root directory;

6. first, configure the isapi filter and select php5isapi. dll as the executable file.

7. configure the program ing using the formula of FastCgiModule. the executable file here is the. exe file instead of the. dill file.

After selecting the file, the. exe file is displayed, and the php-cgi.exe executable file is selected.

8. configure the application pool and add a new application pool named php;

Then, set the default settings for the newly added php program pool to change the option of starting a 32-bit application from false to true.

9. modify the isapi filter and handler ING on the default website.

Add a new isapi filter to the isapi filter, and select php5isapi. dll as the running file.

Add module ing to the handler ING to configure the module ing in the same root directory;


After completing these steps, restart one server in the root directory, and set up the php environment. this is only accessible to some php pages that do not involve databases, I will write down the steps for installing the mysql database in the next chapter, and write a blog on some server problems after the installation. if something is wrong, please help me to point it out, I am also studying php by myself. I hope you can tell me more about my misunderstanding. thank you!

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above introduces how to use iis to build a php environment (on) in WIN7, including some content, and hope to help friends who are interested in PHP tutorials.

    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.