... The purpose of writing this article is to return the two articles that webmasters of the guide wrote for you about installing PHP4.04 in win9x and linux. I also hope to help beginners a little bit. This document describes how to install PHP4.04 and mysql3.22.34 in IIS of win2000. All the software involved in this article can be SyntaxHigh.
... The purpose of writing this article is to return the two articles that webmasters of the guide wrote for you about installing PHP4.04 in win9x and linux. I also hope to help beginners a little bit. This document describes how to install PHP4.04 and mysql3.22.34 in IIS of win2000. All the software involved in this article can be downloaded from this site. Because it is a reply to the document of the guide, the article format is the same as that of the document. do not think it is plagiarism (of course there is also a little bit ,:))
... Required software
· Php4. 04 win 32-bit installer
· Mysql3. 22.34 win 32-bit shared edition
Step 1 download the required program and install and run the MYSQL3.22 installer.
....The downloaded package is a zip file that needs to be removed using the winziptool. run setup.exe to install the package. the default installation directory is c: mysql. Unpack the PHP4 file package to the c: php directory.
Step 2 install the database and php4.
.... First, check whether your system has IIS installed. if not, install IIS in the following method: :). IIS is not attached to the professional installation disk of Win200, therefore, you must first find an installation disk for Win2000 Server, open the Control Panel, and run Add/Remove Programs to select Add/Remove Windows Components to install Internet Information Services, step By Step as prompted. OK. Now IIS has been installed. install PHP below
After decompression, the following files are available in the PHP Directory:
· Php. ini-dist
· Msvcrt. dll
· Pws-php4.reg
· Libmysql. dll
· Php.exe
· Php4ts. dll
· Php4isapi. dll
· Php _ mysql. dll
... Copy all dll files to your system directory, for example, C: winntsystem32. php.exe is not a standard executable program, so you must copy the DLL files to system32.
Rename php. ini-dist to php. ini.
Modify extension_dir = ./
Extension_dir = c: winntsystem32
Modify; extension = php_mysql.dll
Remove ";" from the front
In the [mysql] bar, modify
Mysql. default_port = 3306
Mysql. default_host = localhost
Mysql. default_user = root
The original parameters in the three columns are empty.
Copy php. ini to the c: WINNT directory.
Open Control Panel again, open Administrative Tools, run Internet Services Manager, right-click the Web service, and select Properties, as shown in Figure 1:
Select ISAPI filter in the pop-up window, as shown in Figure 2:
Add a subkey named "PHP" and containing "php4isapi. dll", as shown in the following figure:
Select Configuration in the Home Directory and add an application ING. 4. see figure 4. Note that you must use php4isapi. dll instead of php.exe!
As shown in
The following is simple. you only need to restart the iis service once and you can use PHP.
Step 3 test
... Run the c: mysqlinmysqld-shareware.exe to start the number of libraries, or load mysql as a service using the c: mysqlinmysqld-shareware.exe -- install Command. If you don't want to load it, you can use c: mysqlinmysqld-shareware.exe -- remove to unmount mysql.
... You can also create a new php file as follows, and then run the info. php file in IE. if it can run, it indicates that the entire system can work normally.
File name info. php
// View the system status file.
// End the file
When you access this page in IE, you will get the PHP running information.
Note. all content in this article is run on the relevant platform in this article. different PHP versions may be different when php is installed in WINNT. ini and dll files are stored in c: winnt and c: winntsystem32 respectively.