Apache+PHP+Mysql+Zend installation configuration method in xp system

  

Many users need to install and configure Apache+PHP+Mysql+Zend in xp system because of work or personal needs, but I don't know how to install and configure. Today, Xiaobian teaches Apache+PHP+Mysql+Zend installation and configuration. Methods.

Required Software:

apache_2.0.58-win32-x86-no_ssl.msi >>>>>>>>>>>> ;>>http://archive.apache.org/dist/httpd/Each version has

php-5.1.6-Win32.zip

ZendStudioServer-5.1.0a- Windows-i386.exe

mysql-5.0.19-win32

phpMyAdmin-2.9.1

Installation:

Apahce+PHP+MySQL Installation and Configuration

1. Install apache_2.0.58-win32-x86-no_ssl and follow the prompts to set the program installation path (my path is d:/usr/). After the installation is complete, if you move the APACHE directory, the parameters under apache2 must be changed. Modify the configuration file httpd.conf under the apache configuration directory CONF, in this case d:/usr/apache2/conf/httpd.conf< Br>

(1) ServerRoot: apche program directory (in this case d:/usr/apache2)

(2) ServerAdmin: server administrator's E-mail

( 3) port: service port, default 80

(4) ServerName: the network ID of the computer, must be consistent with the actual, otherwise there may be some unexpected problems

(5) DocumentRoot: default Web file directory (in this case d:/usr/www)

(6) DirectoryIndex: default page, add php support, (this example below)

DirectoryIndex index.html index. Htm index.php index.php3 index.php4

(7)ScriptAlias ​​(script alias), directory of CGI programs

ScriptAlias ​​/cgi-bin “d:/usr/apache2/cgi -bin”

2. Install php-5.1.6-Win32 and extract the path of the decompression (in this case d:/usr/php5).

3. Configure PHP and Apache to parse the php program.

PHP Configuration:

Rename the “php.ini-dist” in the PHP directory to “php.ini” and modify the

php.ini as follows:

(1) doc_root: Consistent with ATPOW's HTDOCS, this example is d:/usr/www

(2) extension_dir This example is d:/usr/php5/ext

(3) include_path This example is d:/usr/php5/includes

(4) Remove the semicolon before the extension=php_mysql.dll and copy the LIBMYSQL.DLL file in the php directory to c :winntsystem32下

Apache configuration:

Add the following statement at the end of the APACHE configuration file to support the php program:

ADDlanguage zh-cn .cn

defaultlanguage zh-cn

AddDefaultCharset GB2312

ScriptAlias ​​/php/"d:/usr/php5/"

LoadFile d:/usr/php5/php5ts. Dll

LoadModule php5_module d:/usr/php5/php5apache2.dll

PHPINIDir d:/usr/php5/php.ini

AddType application/x-httpd-php .php .php3 .php4 .phtml

AddType appl Ication/x-httpd-php-source .phps

The above add content directory part and the actual inconsistency of self-modification

Copyright © Windows knowledge All Rights Reserved