The following article describes the configuration of the PHP environment in Windows2000/XP/2003 (it is not recommended to create a PHP environment in windows98). select Apache2.0.54 for the server and MySQL4.1.14 for the database. Several software packages need to be downloaded: 1. PHP5.1.0RC12.
The following article describes the configuration of the PHP environment in Windows2000, XP, and 2003 (it is not recommended to create a PHP environment in windows 98). for the server, select Apache 2.0.54 and MySQL 4.1.14.
You need to download several software packages:
1. PHP 5.1.0RC1
2. Apache 2.0.54
3. MySQL 4.1.14
Download the software package:
1. PHP 5.1.0RC1
PHP:Http://www.php.net/downloads.phpTo download the two software packages in the box, such as status. The PHP 5.1.0RC1 zip package is the PHP5 package, while the Collection of PECL modules for PHP 5.1.0RC1 is the PECL expansion module aggregation package of PHP5.
After the download is complete, save it to drive C for backup.
2. Apache 2.0.54
Apache official website:Http://httpd.apache.org/download.cgiFind the position, download the MSI installation package For Windows, and keep it on the C drive For backup.
3. MySQL 4.1.14
Official MySQL:Http://dev.mysql.com/downloads/mysql/4.1.htmlFind the Windows downloads section, download the Without installer package and keep it on drive C, as shown in:
Install PHP5:
Assume that your system is installed on drive C, otherwise the following directories must be changed to the corresponding disk directory.
Decompress the downloaded PHP 5.1.0RC1 to the C: \ PHP5 \ directory. Decompress all the files in the PECL expansion module package to the C: \ PHP5 \ ext \ directory.
Copy the php5ts in the C: \ PHP5 \ directory. dll file to C: \ windows \ (if it is windows 2000 control system, it is the C: \ WINNT \ directory, the same below, no repeated clarification) directory.
Copy the following dll files in the C: \ PHP5 \ directory to the C: \ windows \ system32 \ directory:
Fdftk. dll
Fribidi. dll
Gds32.dll
Libeay32.dll
Libintl-1.dll
Libmhash. dll
Libmysql. dll
Libmysqli. dll
Ntwdblib. dll
Ntwdblib. dll
Yaz. dll
Among them, libmysql. dll is an extended support for MySQL 4.1 and libmysqli. dll is an extended support for MySQL 4.1 and later versions.
Copy the php. ini-dist file under the C: \ PHP5 \ directory to the C: \ windows \ directory, change the name to php. ini, and open the compilation in Notepad:
Locate the following two rows:
; Directory in which the loadable extensions (modules) reside.
Extension_dir = './'
Modify the following line to point it to the C: \ PHP5 \ ext \ directory. the correction is as follows:
; Directory in which the loadable extensions (modules) reside.
Extension_dir = 'C: \ PHP5 \ ext \'
Locate the following two rows:
We can see that all supported extensions are listed below. we can drop the semicolon above to enable PHP to support the corresponding extensions. I tested it and supported the following Extensions. you can also choose whether to configure them.