windows+apache2.4.10+php7.0+mysql5.6.21 Installation

Source: Internet
Author: User
Tags install php

First, the installation package download
apache2.4.10 http://www.apachelounge.com/download/win64/
PHP7.0.7 http://windows.php.net/download/VC14 x64 thread safe IIS is used with the non thread safe, and Apache and thread safe work together
mysql5.6.21 http://dev.mysql.com/downloads/mysql/

This version of PHP7, because it is vc14 compiled, means that the vc2015 (i.e. VC14) runtime environment needs to be installed, and Apache2.4 is required to run PHP7.

vc2015 http://www.microsoft.com/zh-cn/download/details.aspx?id=48145

Installation directory: D:\wamp

Second, install Apache

Unzip the Apache2.4.10 to the installation directory to open httpd.conf, change the "C:" Path to the installation path; customize as follows
ServerRoot "D:/wamp/apache24"
ServerName 127.0.0.1:80
DocumentRoot "D:/wamp/www"
<directory "D:/wamp/www" >
<directory "D:/wamp/apache24/cgi-bin" >

cmd command, enter into D:/wamp/apache24/bin to execute command httpd.exe, and then the browser accesses http://localhost, if the index of/is displayed is configured successfully

Third, install PHP

Copy Php.ini-development to PHP.ini, then open the file and make the following changes
; On Windows:
Extension_dir = "D:/wamp/php-7.0.7/ext"

Remove the following configuration comments to support MySQL
Extension=php_curl.dll
Extension=php_gd2.dll
Extension=php_mbstring.dll
Extension=php_mysql.dll
Extension=php_pdo_mysql.dll
Extension=php_pdo_odbc.dll

Support session
Session.save_path = "D:/wamp/temp"
Upload file directory Configuration
Upload_tmp_dir = "D:/wamp/temp"
Time zone configuration
Date.timezone =asia/shanghai

Apache configuration, open httpd.conf file
Add under #loadmodule vhost_alias_module modules/mod_vhost_alias.so
LoadModule php7_module "D:/wamp/php-7.0.7/php7apache2_4.dll"
Phpinidir "d:/wamp/php-7.0.7"
AddType application/x-httpd-php. php. html. htm

Iv. installation of MySQL

1. Extract the mysql-5.6.21-winx64.zip into the custom D:\Wamp\mysql-5.6.21 directory

2. My Computer--attribute--advanced--environment variable--system variable--new system environment variable
Variable name: mysql_home
Variable Value: D:\mysql-5.6.21

3. Add to the original system environment variable Path
;%mysql_home%\bin

4, copy My-default.ini to My-.ini file, and then cmd--into the D:\mysql-5.6.21\bin directory--Enter the service installation command:

Mysqld.exe install MySQL--defaults-file= "D:\Wamp\mysql-5.6.21\my.ini"

After a successful installation, the Service successfully installed is displayed.
Service Uninstall command: mysqld remove MySQL--defaults-file= "D:\Wamp\mysql-5.6.21\my.ini"

windows+apache2.4.10+php7.0+mysql5.6.21 Installation

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.