Installation of PHP4.04 under English Win2000

Source: Internet
Author: User
The main purpose of this article is to return a guide to the webmaster for everyone to write two introduction under the Win9x and Linux installation PHP4.04 under the article. Also hope to be able to give beginners a little help. This article mainly introduces the installation of PHP4.04 and mysql3.22.34 under the English Win2000 system IIS. The software in this paper can be downloaded from this website. Because it is a reply to the Guide's article, so the article format and its same, do not think it is plagiarism yo (of course there is a little bit,:))

.... The required software

php4.04 Win 32-bit installer
mysql3.22.34 Win 32-bit version share
The first step is to download the program you want to install and run MYSQL3.22 Setup.

.... The download package is a ZIP file package required WinZip and other tools to unlock, run Setup.exe installation, the default installation directory is c:mysql. Unpack the PHP4 package into the c:php directory.

The second step is to install the database and PHP4.

.... First determine if your system has IIS installed, and if not, install IIS in the following way: Win200 's professional version of the installation disk does not come with IIS, so you first need to find a Win2000 server version of the installation disk, Then open the control Panel and run Add/remove Programs select add/remove Windows Components install Internet Information Services, and then follow the prompts step by Step.ok, now that IIS is installed, the following PHP installation

.... The following files are available in the PHP directory after decompression

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:winntsystem32, notice yo, Php.exe is not a standard executable, so you have to copy those DLL files to System32

Rename Php.ini-dist to PHP.ini

Modify Extension_dir =./
For extension_dir = C:winntsystem32

to modify; Extension=php_mysql.dll.
To remove the front ";" Resolution

Modify under the [MySQL] bar
Mysql.default_port = 3306
Mysql.default_host = localhost
Mysql.default_user = root
The three column original parameters are empty.
Copy php.ini to c:winnt directory

Then open the control Panel again, open administrative Tools run Internet services Manager, click the right mouse button on the Web service, and select Properties as shown in Figure one:



Figure I

Then select ISAPI Filter in the pop-up window, as shown in Figure two:



Figure II

Add a subkey with PHP as the name, including Php4isapi.dll, as shown in Figure three:



Figure Three

Then select configuration in Home directory and add an application mapping. As shown in Figure four, figure five: But note that yo need to use php4isapi.dll instead of php.exe!



Figure Four



Figure Five shows

The following is simple, you just reboot once IIS service can use PHP

Third Step Test

.... Run the C:mysqlbinmysqld-shareware.exe startup library or use the C:mysqlbinmysqld-shareware.exe--install command to load MySQL as a service. If you do not want to load, you can use C:mysqlbinmysqld-shareware.exe--remove to uninstall MySQL.
.... You can also create a new PHP file below, and then IE run this info.php file if it is able to run, which indicates that the entire system is working properly.

FileName info.php

To view the system health file start



End of File

When you visit this page in IE, you will get information about the running of PHP.

Note. All content in this article is run through the relevant platform in the text, and different versions of PHP may vary under Winnt installation php.ini and DLL files are placed under C:winnt and C:winntsystem32 respectively.

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.