Installation instructions for APACHE + PHP + MYSQL + PHPMYADMIN in windows

Source: Internet
Author: User

Original article: http://www.cnblogs.com/xyxiong/archive/2011/05/13/2045579.html

Download the relevant installation file:

PHP http://windows.php.net/download/

Apache http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.9-win32-x86-no_ssl-r2.msi

MySQL http://dev.mysql.com/downloads/mysql/

Phpmyadmin3.3.10 Fina http://www.crsky.com/soft/4190.html

My installation directory is as follows:

Php d:/PHP

Apache D:/Apache

MySQL D:/MySQL

PhpMyAdmin D:/www/PMA

Site program Directory: D:/www

Session storage directory D: \ session_tmp

(1) install Apache

You only need to install Apache by default step by step. You can select the relevant installation path during the installation process.

After installation, enter "http: // 127.0.0.1" in the IE Address Bar and click "go" to "it work! ", Indicating that the Apache server has been installed successfully.

After installation, open D:/Apache/httpd. conf.

1. Modify the keyword "DocumentRoot" to "DocumentRoot" D:/www"

2. Search for keywords

<Ifmodule dir_module>
Directoryindex index.html

</Ifmodule>

Change

<Ifmodule dir_module>
Directoryindex index.html index. php

</Ifmodule>

3. Search for keywords

<Directory/>
Options followsymlinks
AllowOverride none
Order deny

</Directory>

Change

<Directory/>
Options followsymlinks
AllowOverride none

Allow from all

</Directory>

4. Modify ServerRoot "D:/apache"

(2) install php

1. Decompress PHP to the relevant directory and modify php. ini-dist to php. ini.

2. Modify doc_root to doc_root = "D: \ www" to remove the previous one. This is the site directory.

3. Modify extension_dir = "D: \ php \ ext" to remove the previous one;

4. Modify session. save_path = "D: \ session_tmp"

5. Modify the extension list enabling status based on your choice.

Modify the apache configuration file httpd. conf

1. Singapore

LoadModule php5_module D:/php/php5apache2_2.dll
PHPIniDir "D:/php"

2. Xinjia

AddType application/x-httpd-php. php
AddType application/x-httpd-php. html

(3) install MYSQL

Install

(4) install phpmyadmin

1. Decompress phpmyadmin to D:/www/pma phpmyadmin and place it in the site directory.

2. Modify D:/www/pma/libraries/config. default. php

$ Cfg ['pmaabsoluteuri '] = "http:/127.0.0.1/pma /';

$ Cfg ['servers'] [$ I] ['auth _ type'] = 'http ';

$ Cfg ['servers'] [$ I] ['host'] = 'localhost ';

$ Cfg ['servers'] [$ I] ['user'] = 'root ';

$ Cfg ['servers'] [$ I] ['Password'] = '000000 ';

$ Cfg ['defaultlang '] = 'en-UTF-8 ';

$ Cfg ['ultconnectioncollation'] = 'utf8 _ general_ci ';

Download the relevant installation file:

PHP http://windows.php.net/download/

Apache http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.9-win32-x86-no_ssl-r2.msi

MySQL http://dev.mysql.com/downloads/mysql/

Phpmyadmin3.3.10 Fina http://www.crsky.com/soft/4190.html

My installation directory is as follows:

Php d:/PHP

Apache D:/Apache

MySQL D:/MySQL

PhpMyAdmin D:/www/PMA

Site program Directory: D:/www

Session storage directory D: \ session_tmp

(1) install Apache

You only need to install apache by default step by step. You can select the relevant installation path during the installation process.

After installation, enter "http: // 127.0.0.1" in the IE Address Bar and click "go" to "It work! ", Indicating that the Apache server has been installed successfully.

After installation, open D:/apache/httpd. conf.

1. Modify the keyword "DocumentRoot" to "DocumentRoot" D:/www"

2. Search for keywords

<IfModule dir_module>
DirectoryIndex index.html

</IfModule>

Change

<IfModule dir_module>
DirectoryIndex index.html index. php

</IfModule>

3. Search for keywords

<Directory/>
Options FollowSymLinks
AllowOverride None
Order Deny

</Directory>

Change

<Directory/>
Options followsymlinks
AllowOverride none

Allow from all

</Directory>

4. Modify serverroot "D:/Apache"

(2) install PHP

1. Decompress PHP to the relevant directory and modify PHP. ini-Dist to PhP. ini.

2. Modify doc_root to doc_root = "D: \ www" to remove the previous one. This is the site directory.

3. Modify extension_dir = "D: \ PHP \ Ext" to remove the previous one;

4. Modify session. save_path = "D: \ session_tmp"

5. Modify the extension list enabling status based on your choice.

Modify the Apache configuration file httpd. conf

1. Singapore

Loadmodule php5_module D:/PHP/php5apache2_2.dll
Phpinidir "D:/PHP"

2. Xinjia

Addtype application/X-httpd-PHP. php
Addtype application/X-httpd-PHP. html

(3) install MySQL

Install

(4) install phpMyAdmin

1. Decompress phpmyadmin to D:/www/pma phpmyadmin and place it in the site directory.

2. Modify D:/www/pma/libraries/config. default. php

$ Cfg ['pmaabsoluteuri '] = "http:/127.0.0.1/pma /';

$ Cfg ['servers'] [$ I] ['auth _ type'] = 'http ';

$ Cfg ['servers'] [$ I] ['host'] = 'localhost ';

$ Cfg ['servers'] [$ I] ['user'] = 'root ';

$ Cfg ['servers'] [$ I] ['Password'] = '000000 ';

$ Cfg ['defaultlang '] = 'en-UTF-8 ';

$ Cfg ['ultconnectioncollation'] = 'utf8 _ general_ci ';

Download the relevant installation file:

PHP http://windows.php.net/download/

Apache http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.9-win32-x86-no_ssl-r2.msi

Mysql http://dev.mysql.com/downloads/mysql/

Phpmyadmin3.3.10 FINA http://www.crsky.com/soft/4190.html

My installation directory is as follows:

Php d:/php

Apache D:/apache

Mysql D:/mysql

Phpmyadmin D:/www/pma

Site program Directory: D:/www

Session storage directory D: \ session_tmp

(1) install apache

You only need to install apache by default step by step. You can select the relevant installation path during the installation process.

After installation, enter "http: // 127.0.0.1" in the IE Address Bar and click "go" to "It work! ", Indicating that the Apache server has been installed successfully.

After installation, open D:/apache/httpd. conf.

1. Modify the keyword "DocumentRoot" to "DocumentRoot" D:/www"

2. Search for keywords

<IfModule dir_module>
DirectoryIndex index.html

</IfModule>

Change

<IfModule dir_module>
DirectoryIndex index.html index. php

</IfModule>

3. Search for keywords

<Directory/>
Options followsymlinks
AllowOverride none
Order deny

</Directory>

Change

<Directory/>
Options followsymlinks
AllowOverride none

Allow from all

</Directory>

4. Modify serverroot "D:/Apache"

(2) install PHP

1. Decompress PHP to the relevant directory and modify PHP. ini-Dist to PhP. ini.

2. Modify doc_root to doc_root = "D: \ www" to remove the previous one. This is the site directory.

3. Modify extension_dir = "D: \ PHP \ Ext" to remove the previous one;

4. Modify session. save_path = "D: \ session_tmp"

5. Modify the extension list enabling status based on your choice.

Modify the Apache configuration file httpd. conf

1. Singapore

Loadmodule php5_module D:/PHP/php5apache2_2.dll
Phpinidir "D:/PHP"

2. Xinjia

Addtype application/X-httpd-PHP. php
Addtype application/X-httpd-PHP. html

(3) install MySQL

Install

(4) install phpMyAdmin

1. Decompress phpMyAdmin to D:/www/PMA phpMyAdmin and place it in the site directory.

2. Modify D:/www/PMA/libraries/config. Default. php

$ Cfg ['pmaabsoluteuri '] = "http:/127.0.0.1/PMA /';

$ Cfg ['servers'] [$ I] ['auth _ type'] = 'http ';

$ Cfg ['servers'] [$ I] ['host'] = 'localhost ';

$ Cfg ['servers'] [$ I] ['user'] = 'root ';

$ Cfg ['servers'] [$ I] ['Password'] = '000000 ';

$ Cfg ['defaultlang '] = 'en-UTF-8 ';

$ Cfg ['ultconnectioncollation'] = 'utf8 _ general_ci ';

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.