Notes for configuration of PHP environment and ThinkPHP environment in IIS7.x

Source: Internet
Author: User
I have been configuring the PHP environment under iis7.5 to meet thinkphp framework development requirements since I changed the Windows 7 operating system over the past few days. I have consulted a lot of materials online, it is found that Microsoft provides many convenient php configuration methods, and iis7.5 makes it easier to configure the php environment.

I have been configuring the PHP environment under iis7.5 to meet thinkphp framework development requirements since I changed the Windows 7 operating system over the past few days. I have consulted a lot of materials online, I found that Microsoft has provided many convenient php configuration methods, and iis7.5 is more convenient to configure the php environment. at the beginning, many problems occurred during the configuration. I would like to consult with you in the ThinkPHP technical group, most people answer this question by using Apache or Appserver-like integration packages. this method is not a trial, but can be used for both considerations. net development, IIS must be installed. in this case, if I install another Apache or integrated environment, it is necessary to change the http service port, which is troublesome, besides, I am only engaged in Development rather than Server. in order to facilitate and improve efficiency, I started my research. The following are some experiences I have summarized during the configuration process for your reference:

1. Microsoft launched the Web Platform installation method for iis7.x:

Http://www.microsoft.com/web/platform/phponwindows.aspx

Web Platform is very convenient.

2. you can also install a PHP Manager (which I just installed). you can configure the php development environment in one step. FastCGI is used.

After installation, restart the iis management tool to view it.

3. The third method is to use ISAPI, which is not much different from the IIS5.1 or IIS6 method. I will not introduce it here. There are many online tutorials, according to some data, FastCGI is used to configure the PHP environment more efficiently. Therefore, ISAPI is not recommended in IIS7.x.

In addition, ThinkPHP3.0 requires less support for PHP5.3 and above. when using the built-in case test, pay attention to restoring examlpes. SQL coding problem (the Form table contains Chinese characters. if garbled characters occur, the table cannot be created successfully, which will cause the Form and Ajax cases to be unable to write data.

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.