Need to download a few packages: 1. PHP5 RC3 2. Apache 2.0.49 3. MySQL 4.0.20 Download Package: 1. PHP5 RC3 PHP download address is: http://www.php.net/downloads.php , Find the two packages in the following image, download two packages in the box. Among them, PHP 5.0.0RC3 Zip packages are PHP5 software packages, and Collection of PECL MODULES for PHP 5.0.0RC3 is a PHP5 PECL extension module set package.
After the download is complete, put it on the C disk. 2. Apache 2.0.49 Apache official download address is: http://httpd.apache.org/download.cgi, find the following graph position, download the for Windows MSI installation package, saved in the C disc.
3. MySQL 4.0.20 mysql official download address is: http://dev.mysql.com/downloads/mysql/4.0.html, find the Windows Downloads section, download the WITHOUT Installer package and save it in the C drive, as shown below:
Install PHP5: Suppose your system is installed in the C drive, otherwise the following directory must be changed to the directory of the corresponding disk. Unzip the downloaded PHP5 RC3 (PHP-5.0.0.0RC3-WIN32.ZIP) to the C: / PHP5 / directory. Unzip all files in the PECL extension module package to the C: / PHP5 / EXT / Directory. Copy the php5ts.dll file under the C: / PHP5 / directory to C: / Windows / (if it is a Windows 2000 operating system, it is a C: / WinNT / Directory, the same, no repeated instructions). Copy the following DLL files in the C: / PHP5 / directory in 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
Where libMysql.dll is extended by MYSQL 4.1, libmysqli.dll is the extension support for the version of MySQL 4.1. Because I downloaded mySQL 4.0.20 above, it is actually replicating libmysql.dll. Copy the php.ini-dist file in the C: / PHP5 / directory to the C: / Windows / Directory, and renamed PHP.INI, and open the editor with Notepad: Nearly two lines:
Directory In Which The Loadable Extensions (Modules) Reside.
Extension_dir = "./"
Modify the following line points to the C: / PHP5 / EXT / directory, then modified as follows:
Directory In Which The Loadable Extensions (Modules) Reside.
EXTENSION_DIR = "C: / PHP5 / EXT /"
Located to the following two lines:
Windows Extensions
Note That ODBC Support is Built IN, SO NO DLL IS NEEDED for IT.
It can be seen that all of the following supporting extensions are listed below, we can remove the previous semicolons to support PHP support the corresponding extension. I tested it, support the following extensions, or you can configure it according to the selection. EXTENSION = php_bz2.dll
EXTENSION = php_cpdf.dll
EXTENSION = php_curl.dll
EXTENSION = php_dba.dll
EXTENSION = php_dbase.dll
EXTENSION = php_dbx.dll
; extension = php_exif.dll
EXTENSION = php_fdf.dll
EXTENSION = php_filepro.dll
EXTENSION = php_gd2.dll
EXTENSION = php_gettext.dll
EXTENSION = php_iconv.dll
EXTENSION = php_ifx.dll
EXTENSION = php_iisfunc.dll
EXTENSION = php_imap.dll
(extension = php_interbase.dll
EXTENSION = php_ldap.dll
Extension = php_MBString.dll
EXTENSION = php_mcrypt.dll
EXTENSION = php_mhash.dll
EXTENSION = php_mime_magic.dll
EXTENSION = php_ming.dll
EXTENSION = php_mssql.dll
EXTENSION = php_msql.dll
EXTENSION = php_mysql.dll
EXTENSION = php_oci8.dll
Extension = php_openssl.dll
EXTENSION = php_oracle.dll
EXTENSION = php_pdf.dll
; extension = php_pgsql.dll
EXTENSION = php_shmop.dll
EXTENSION = php_snmp.dll
EXTENSION = php_sockets.dll
EXTENSION = php_sybase_ct.dll
EXTENSION = php_tidy.dll
EXTENSION = php_w32api.dll
Extension = php_xmlrpc.dll
EXTENSION = php_xsl.dll
EXTENSION = php_yaz.dll
EXTENSION = php_zip.dll
Save file exits and exit. Install Apache 2.0.49 Ready to download Apache_2.x.x-Win32-x86-NO_ssl.msi. Start the installation after double-click. One step next, agree to the license agreement, there will be a page that fills in the server information, local debugging, two input localhost. as follows:
All the way next, install the default path - Of course, you can also choose the path you need. Apache will automatically install and launch relevant services. And run an Apache monitor in the lower right corner of the task bar:
We can restart, stop, start Apache service from this monitor. Double-click the small icon to open the control interface:
Next, the Apache's configuration file is configured, and the C: / Program files / apache group / apache2 / conf / Apache group / apache2 / conf / (I am using the default installation path), and the back settings will be changed according to their own installation path) The httpd.conf file under the directory, positioned below: DirectoryIndex index.html index.html.var
Add a PHP default page later, usually index.php, as follows:
DirectoryIndex index.html index.html.var index.php
In order to make APACHE identification
PHP related extensions, search and positioning below:
ALLOWOVERRIDE NONE
Options none
ORDER ALOW, DENY
ALLOW FROM ALL
Directory>
Add the following two lines later:
AddType Application / X-httpd-php .php .phtml.php3 .php4addtype application / x-httpd-php-source .phps
Specify the PHP module and locate it to the following line:
#LoadModule SSL_Module Modules / Mod_ssl.so Add a line below:
LoadModule PHP5_MODULE C: /PHP5/PHP5APACHE2.DLL makes it point to PHP5APache2.dll files under the PHP5 directory, and the path must be accurate.
In order to specify Apache recognition Chinese, we specify that GB2312 is the default code. Should be found and positioned below this line
AddDefaultCharset ISO-8859-1
Modify it to:
AdddefaultCharset GB2312
Also, if you want to ban directory browsing, find and locate it below:
# ......
# Some comments
# ......
Options Indexes FollowSymlinks
Remove a few lines of INDEXES that follows the row below, modify:
# ......
# Some comments
# ......
Options Followsymlinks
OK, save the httpd.conf file and follow the Apache server.
Installation of mysql 4.0.20
Compress MySQL-4.0.20-WIN-NOINSTALL.ZIP folder to the root directory of the C drive (note: Use this version of Mysql must put the decompression file folder in the root directory of the C drive), can decompress it can be in C Find a folder called MySQL-XXX under the root directory. The name is named mysql.
Enter the bin directory, find the winmysqladmin.exe file, open it. The first run will prompt to enter a new username and password. Here you can choose the username and password input you need, as the default user name and password of My.ini. As shown below:
After clicking OK, WinMysqladmin will narrow down to the taskbar of the lower right corner:
Let's take a look at whether the mysql service is started. Open "Control Panel" and open "Management Tool" and open "Service". If everything goes well, we will see information that mysql has started, as shown below:
It is very simple to go here. Test whether PHP is configured successfully: Open Notepad, enter this line code: Php phpinfo ();?>>
Saved as a phpinfo.php file, stored in the apache2 / htdocs / directory, remember to save the type "All Files", as shown below:
Ok, open your browser, type in the address bar: http://localhost/phpinfo.php and Enter, if everything goes well, you will see the following page, to this PHP5 configuration is very good:
Note: This article does not discuss the configuration of the server from security and performance. For a corresponding security configuration, please refer to other manuals. This article briefly introduces the configuration of the PHP5 environment. As a premise of learning PHP5, this article cannot be read as a server configuration article. For example, there is no Mysql root user password here, which will lead to a large security hazard, so readers will be set up. (Full text) deeply spaced from the Elder Dragon Boat Festival
Author: deep space. Home: http://www.openphp.cnhttp://www.openphp.cn/index.php? Module = Article & ID = 12