PHP quick start-install and configure Apache, PHP, and MySQL

Source: Internet
Author: User
: This article describes how to install and configure Apache, PHP, and MySQL. For more information about PHP tutorials, see. Win7 64-bit

Apache-2.4 64-bit VC11

PHP-5.5 64-bit VC11

MySQL-5.6 64-bit

1. Download

Apache: http://www.apachelounge.com/download/VC11/binaries/httpd-2.4.10-win64-VC11.zip

2, PHP: http://windows.php.net/downloads/releases/php-5.5.20-Win32-VC11-x64.zip

MySQL: http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.22-winx64.zip

4. VC11: http://www.microsoft.com/en-US/download/details.aspx? Id = 30679

II. configuration

Apache configuration

1. modify the ServerRoot "D:/apache24" and Apache installation directory.

2. modify ServerAdmin. optional.

3. remove the one before ServerName #

4. modify DocumentRoot "D:/www" and , Website root directory

5. modify DirectoryIndex index.html index. php index.htm to support more Upload pages.

6. modify ScriptAlias/cgi-bin/"D:/apache24/cgi-bin/" and

Start -- run, enter cmd, enter the apache24/bin directory, and run httpd. if the configuration is correct, no output is displayed. Otherwise, an error message is displayed.

The system service added to windows can be self-started: httpd.exe-k install-n "apache24"

Uninstall this service: httpd.exe-k uninstall-n "apache24"

PHP configuration

1. copy and paste php. ini-development and rename it to php. ini.

2. add

LoadModule php5_module "D:/php/php5apache2_4.dll"

AddHandler application/x-httpd-php. php

PHPIniDir "D:/php"

3. enable extension_dir = "D:/php/ext"

4. enable extension = php_mysql.dll and extension = php_mysqli.dll.

MySQL configuration

Run the installation directly.

The above introduces the PHP quick start-Apache, PHP, MySQL installation and configuration, including some content, hope to be helpful to friends who are interested in PHP tutorials.

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.