Win2003 R2 SP2 64-bit Server System configuration Php+iis6_win server

Source: Internet
Author: User
Tags configuration php phpinfo
Someone will ask why I don't use Apache to configure, because my server still has to run one. NET, and the Web site and the forum to achieve synchronous registration and landing.

FastCGI is a new thing that configures PHP under IIS, and is easy to configure, and is not affected by PHP's 32 or 64 bits. But the problem also exists, the recent forum is always fast and slow, when the response time is more than 20 seconds, in recent days there have been php-cgi.exe process explosion, one out of more than 30 processes, causing the server to die, only the recycling program pool can be processed, this is very bad.

Because of this situation I would like to use the original ISAPI way to run PHP, that is, I just put the ISAPI's operating environment completely finished, why?

1,isapi mode does not support 64-bit system, under IIS6 will be prompted is not a 32-bit program, IIS7 under the hint script mapping is not correct.

2,isapi is a single process, there will be no process explosion, first of all to ensure stability.

Now let's talk about my configuration experience:

On the Internet to find 3 versions of PHP 64-bit program, is 5.2.5,5.3.6,5.3.8, can say 3 versions I am testing back and forth.

Here's how I install the first step:

1, compression PHP package to the PHP folder, configure the php.ini file, this step I will not say more.

2, in Win2003 IIS 6 to build a PHP site, the right mouse button on the site, properties-Home directory-configuration, in the "mapping" to add, "executable" for the PHP folder under the php5isapi.dll, extension of PHP, OK.

3, then "Add a new Web service extension" in "Web Service Extensions", "extension" for PHP, "requested files" select Php5isapi.dll under the PHP folder, OK, restart IIS.

Under normal circumstances (I have no problem here), phpinfo () is able to run and see the running data. But we looked closely at the running data and the problem came.

1, the installation of Discuz forum, the GD Library detection display noext,mysql_conntect () show does not support MySQL, is also that the forum can not be normal installation.

Baidu A, find a lot of reprinted solutions, basic useless, and are exploratory talk, no basis, but there is better than no information, I looked at the phpinfo () again carefully to my data. The following configuration is done.

1, copy the configured php.ini file to C:\Windows, at which point Phpinfo () shows that the configuration file has been read.

2, copy Php5ts.dll,libmysql.dll to the system C:\Windows\SysWOW64, because I am a 64-bit system. Some friends reflect no Libmysql.dll file, this is the MySQL library file, to install the MySQL folder under a Lib folder, copy a Libmysql.dll out is. Of course, my MySQL is also 64-bit.

3, configure PHP directory to the system environment variables, I configured 2, because my PHP in D disk, so configured as: D:\php;d:\php\ext;

4, reboot the system best. Having done the above work, my phpinfo () shows that MySQL has been configured successfully.

Then install the forum, all OK.

However, the ultimate solution is not to run PHP in Windows, or some pit dad, now I even have to change the site to PHP to develop, to maintain the unity of the whole station code.

Above configuration, if have a friend do not understand, can leave a message to me, study together.
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.