Win2003 R2 SP2 64 bit server system configuration PHP+IIS6

  • 2020-05-07 20:39:26
  • OfStack

Some people will ask why I don't use Apache, because my server also runs a.NET website, and there is synchronous registration and login between the website and the forum.

FastCGI is a new thing to configure PHP under IIS, which is easy to configure and not affected by PHP's 32 or 64 bits. However, there is also a problem. Recently, the forum is always fast and slow, and the response time is more than 20 seconds. In recent days, there has been an explosion of php-cgi.exe process.

In this case, I want to run PHP in the original ISAPI mode. That is, I just finished the ISAPI running environment. Why?

1, ISAPI mode does not support 64-bit system, under IIS6 will prompt not 32 bit program, IIS7 script mapping is wrong.

2. ISAPI is a single process, so there will be no process explosion.

Now about my configuration experience:

I found three versions of PHP 64-bit program on the Internet, which were 5.2.5, 5.3.6 and 5.3.8 respectively. I can say that I tested the three versions back and forth.

Here's how I installed step 1:

1. Pressurize the PHP package into the PHP folder and configure the PHP.INI file.

2. Set up a website of PHP in iis 6 of win2003, click the right mouse button on the website, and add the property - home directory - configuration in the "map". The "executable file" is php5isapi.dll in PHP folder, with the extension php, ok.

3. Then in "Web service extension "" add a new Web service extension", "extension" is PHP, "required files" select php5isapi.dll under PHP folder, ok, restart IIS.

phpinfo() can run and see the running data when the 1-tangent is normal (I didn't have a problem here). But when we look at the running data, there's a problem.

1. Install discuz forum, GD library detection shows that noext, mysql_conntect() shows that mysql is not supported, that is to say, the forum cannot be installed properly.

Baidu 1, find a lot of reprint solution, basically useless, and are tentative talk, no basis, but there is data is better than no, I again carefully looked at 1 phpinfo() gave me the data. The following configuration was done.

1. Copy the configured php.ini file into c:\windows. phpinfo() shows that the configuration file has been read.

2, copy php5ts.dll, libmysql.dll to system C:\Windows\SysWOW64, because I am a 64-bit system. Some friends report that there is no libmysql.dll file, this is the library file of mysql, to install mysql folder has an lib folder, copy a copy of libmysql.dll out. Of course, my mysql is also 64-bit.

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

4. Restart the system is best. Having done this, my phpinfo() shows that mysql has been configured successfully.

Then install the forum, 1 cut OK.

However, the ultimate solution is not to run PHP under windows, or a little bit of a trick, now I have to replace the website to PHP development, keep the whole site code 1.

Above configuration, if a friend does not understand, can leave a message to me, 1 study.

Related articles: