Home  >  Article  >  Backend Development  >  Installation of PHP4.04 under English win2000_PHP tutorial

Installation of PHP4.04 under English win2000_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:22:54955browse

....The purpose of writing this article is mainly to report back to the two articles written by the webmaster who introduced the installation of PHP4.04 under win9x and Linux. I also hope it can give some help to beginners. This article mainly introduces the installation of PHP4.04 and mysql3.22.34 under the English win2000 system IIS. All the software mentioned in this article can be downloaded from this site. Since it is a reply to the guide's article, the format of the article is the same as it. Don't think it is plagiarism (of course it is a little bit, :))
.... Required software
·php4. 04 win 32-bit installer
·mysql3.22.34 win 32-bit shared version
The first step is to download the required program, install and run the MYSQL3.22 installer.
.... The download package is a ZIP file package that needs to be unpacked with tools such as WINZIP and installed by running setup.exe. The default installation directory is c:mysql. Unpack the PHP4 file package to the c:php directory.
The second step is to install the database and php4.
.... First, make sure your system has IIS installed. If not, install IIS as follows:). The installation disk of the professional version of Win200 does not come with IIS, so you must first find it. A Win2000 Server version installation disk, then open the Control Panel, then run Add/Remove Programs, select Add/Remove Windows Components to install Internet Information Services, and then follow the prompts Step By Step. OK, now IIS has been installed, let’s proceed to PHP Installation
.... After decompression, there are the following files 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, such as C: Under WINNTsystem32, please note that php.exe is not a standard executable program, so you must copy those DLL files to system32


Rename php.ini-dist to php.ini
Modify extension_dir = ./
Modify extension_dir = c:winntsystem32
;extension=php_mysql.dll
Remove the ";" sign in front
Modify under the [mysql] column
mysql.default_port = 3306
mysql.default_host = localhost
mysql.default_user = root
The original parameters in these three columns are empty.
Copy php.ini to the c:WINNT directory
Then open the Control Panel again, open Administrative Tools, run Internet Services Manager, right-click on the Web service and select Properties, as shown in Figure 1:
Installation of PHP4.04 under English win2000_PHP tutorial
Figure 1
Then select ISAPI filter in the pop-up window, as shown in Figure 2:
Installation of PHP4.04 under English win2000_PHP tutorial
Figure 2
Add a file named PHP, including php4isapi.dll subkey, as shown in Figure 3:
Installation of PHP4.04 under English win2000_PHP tutorial
Figure 3
Then select Configuration in Home Directory and add an application mapping. As shown in Figure 4 and Figure 5: But be careful to use php4isapi.dll instead of php.exe!
Installation of PHP4.04 under English win2000_PHP tutorial
Figure 4
Installation of PHP4.04 under English win2000_PHP tutorial
As shown in Figure 5
The following is simple. You only need to restart the iis service once and you can use PHP
The third step is to test
.... Run c:mysql inmysqld-shareware.exe to start the database, or use c :mysql inmysqld-shareware.exe --install command loads mysql as a service. If you don't want to load it, you can use c:mysql inmysqld-shareware.exe --remove to uninstall mysql.
.... You can also create a new php file as follows, and then run the info.php file under IE. If it can run, it means that the entire system can work normally.
File name info.php
//Start of checking system status file
phpinfo();?>
//End of file
When you access this page in IE you will get the running information about PHP.
Note. All the content in this article has been run on the relevant platform. Different PHP versions may be different. When installing under WINNT, the php.ini and dll files are placed under c:winnt and c:winntsystem32 respectively. .

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532280.htmlTechArticle.... The purpose of writing this article is mainly to repay the two introductions written by the webmaster who led the way. Articles on installing PHP4.04 under win9x and linux. I also hope it can give some help to beginners. This article...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn