Installation and configuration of Apache + mysql + php + phpMyAdmin in windows

Source: Internet
Author: User
You can download related software here. baidu. coms1jGe1w1, download Apache (httpd-2.2.25-win32-x86-no_ssl.msi) httpd. apache. orgdownload. cgi # apache24 install it to the path as prompted (custom path is recommended), and both NetWorkDomain and ServerName enter localhost (Access

Related software can be downloaded here Oh http://pan.baidu.com/s/1jGe1w 1, download Apache (httpd-2.2.25-win32-x86-no_ssl.msi) http://httpd.apache.org/download.cgi#apache24 install as prompted to the path (recommended custom path), NetWork Domain and Server Name are entered localhost

Related software can be downloaded here Oh http://pan.baidu.com/s/1jGe1w


1, download Apache (httpd-2.2.25-win32-x86-no_ssl.msi)

Http://httpd.apache.org/download.cgi#apache24

Install it to the path as prompted (custom path is recommended). For both NetWork Domain and Server Name, enter localhost (the Domain Name used for access );

Open http: // localhost after installation


2. Download mysql (mysql-5.5.34-win32.msi)

Http://dev.mysql.com/downloads/mysql/5.5.html install to path as prompted (suggested custom path)

3. Download PHP (it is recommended to download the installation package rather than unzip the package: php-5.3.27-Win32-VC9-x86.msi)

Http://windows.php.net/download/#php-5.5 install to path as prompted (suggested custom path)

4. Download phpMyAdmin (phpMyAdmin-4.0.8-all-languages.tar.gz)

Unzip the http://www.phpmyadmin.net/home_page/downloads.php to the path to install;

5. Copy php. ini-production and rename it to php. ini.

Change extension_dir = "./" (approximately 819 rows) in php. ini to extension_dir = "D:/php5.3/ext" (ext in the php installation path );

6. Copy php.exe, php. ini, and php5ts. dll to C: \ Windows.

7. Modify the httpd. conf file in the Apache conf file, which contains approximately 242 rows.

DirectoryIndexindex.html is DirectoryIndex index.html index. jsp index. php

Locate many LoadModule locations (about 130 lines) and add:

LoadModulephp5_module D:/Develop/php5.3/php5apache2_2.dll (php5apache2_2.dll in the php installation path)

Find AddType (about 385 rows) and add AddType application/x-httpd-php. php.

8. Create an index. php file and write the following content:

 

Delete the index.html file under Apache htdocs (one can be backed up first ),

In this way, index. php is used to access http: // localhost;

9. Copy config. default. php in libraries under phpMyAdmin to phpMyAdmin and rename it config. inc. php;

Set config. inc. php $ cfg ['servers'] [$ I] ['auth _ type'] = 'cooker' at around 200 rows to $ cfg ['servers'] [$ I] ['auth _ type'] = 'http'

10. Modify the httpd. conf file in the conf file under Apache, and add it in about 310 rows.

Alias/phpMyAdmin "D:/phpMyAdmin" (pointing to the phpMyAdmin installation path );

11. Restart Apache and access http: // localhost/phpMyAdmin. the following error occurs:

Modify About 195 rows in httpd. conf and change Deny from all to Allow from all.

12. If the following error occurs,

You need to modify about 132 rows in the config. inc. php file of phpMyAdmin.

$ Cfg ['servers'] [$ I] ['Port'] = '': $ cfg ['servers'] [$ I] ['Port'] = '2016'; (MySQL port number)

13. Finally, you can access http: // localhost/phpMyAdmin correctly. Enter the database user name and password as prompted and enter:


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.