Home >Backend Development >PHP Tutorial >Configuration of PHP5 and Apache server in Windows environment_PHP tutorial

Configuration of PHP5 and Apache server in Windows environment_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 16:54:22770browse

Currently, PHP5 has released its third candidate version, and it is estimated that the official version will be released soon. The installation process should not change. The following article will describe the configuration of the PHP environment under Windows2000/XP/2003 (it is not recommended to establish a PHP environment under Windows 98). Select Apache 2.0.49 for the server and MySQL 4.0.20 for the database. .
You need to download several software packages:
 1. PHP5 RC3
 2. Apache 2.0.49
 3. MySQL 4.0.20
Download software packages
1. PHP5 RC3
The download address of PHP is: http://www.php.net/downloads.php. Find the location as shown below and download the two software packages in the box. Among them, the PHP 5.0.0RC3 zip package is the PHP5 software package, and the Collection of PECL modules for PHP 5.0.0RC3 is the PECL extension module collection package for PHP5.
After downloading, put it on the C drive for later use.
2. Apache 2.0.49
The official download address of Apache is: http://httpd.apache.org/download.cgi. Find the location as shown below, download the MSI installation package for Windows, and save it on the C drive for later use. .
3. MySQL 4.0.20
The official download address of MySQL is: http://dev.mysql.com/downloads/mysql/4.0.html, find the Windows downloads section, download the Without installer package and save it on the C drive , as shown in the figure below:

Install PHP5
Assume that your system is installed on the C drive, otherwise the following directories must be changed to the corresponding drive directories.
Extract the downloaded PHP5 RC3 (php-5.0.0RC3-Win32.zip) to the C:PHP5 directory. Extract all files in the PECL extension module collection package to the C:PHP5ext directory.
Copy the php5ts.dll file in the C:PHP5 directory to the C:windows (if it is a windows 2000 operating system, it is the C:WINNT directory, the same below, no repeated instructions) directory.
Copy the following dll files in the C:PHP5 directory to the C:windowssystem32 directory:
fdftk.dll
fribidi.dll
gds32.dll
libeay32.dll
libintl-1 .dll
libmhash.dll
libmysql.dll
libmysqli.dll
ntwdblib.dll
ntwdblib.dll
yaz.dll

where libmysql.dll is MySQL Extended support for versions before MySQL 4.1, libmysqli.dll is extended support for versions after MySQL 4.1. Because what I downloaded above is MySQL 4.0.20, I can actually copy libmysql.dll.
Copy the php.ini-dist file in the C:PHP5 directory to the C:windows directory, rename it to php.ini, and open it for editing with Notepad:
Locate the following two lines:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631754.htmlTechArticleAt present, PHP5 has released the third candidate version, and it is estimated that the official version will be released soon. The installation process should not change. The following article will describe Windows2000/XP/2003 (not recommended...
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
Previous article:PHP Counter_PHP TutorialNext article:PHP Counter_PHP Tutorial