Download
php7:http://windows.php.net/download#php-7.0
Download extract to specified directory: C:/SOFT/PHP/PHP7
mysql5.7:http://dev.mysql.com/downloads/mysql/
Download extract to specified directory: c:/soft/php/mysql5.7
Apache2.4:http://www.apachehaus.com/cgi-bin/download.plx
Download extract to specified directory: ... \php\mysql5.7
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/1C/wKiom1c37qryelilAAAc-nNeYX0290.png "title=" 2016-05-15_113553.png "alt=" Wkiom1c37qryelilaaac-nneyx0290.png "/>
General configuration
PHP Configuration
Copy the Php.ini-development file from the PHP directory and rename it to php.ini as the default configuration for PHP.
Add extension- Remove ";"
Extension=php_curl.dll; used to support SSL and zlib
extension=php_gd2.dll; user processing pictures
Extension=php_mbstring.dll; string encoding and string processing libraries
Extension=php_mysqli.dll; Mysql
Extension=php_pdo_mysql.dll; Try a variety of database drivers
Extension=php_pdo_odbc.dll; ODBC driver
Extension=php_xmlrpc.dll integration of XML-RPC and soap two co-
Configuration directory
Apache Configuration
Open apache2.4/conf/httpd.conf
Root directory: Define srvroot "C:/soft/php/apache24"
Port: Enter Netstat-ano on the command line to view Port 80, and if it is occupied, modify it to another port (I choose Listen 8082, which can be based on your own situation)
Load support module for PHP7: LoadModule php7_module "C:/soft/php/php7/php7apache2_4.dll"
Installing Apache Services
On the cmd command line, enter:
Httpd-k Install-n Apache24
The installation was successful, but there is an error message for ServerRoot must be a valid directory:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/20/wKiom1c4bs2yEq9bAAANgq9AHnQ308.png "title=" 2016-05-15_204137.png "alt=" Wkiom1c4bs2yeq9baaangq9ahnq308.png "/>
To the error prompt line 39, the results found that the directory Apache24 in the middle of a little bit: apache2.4, modified and restarted, normal operation.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/20/wKiom1c4cASC_TiTAADaWOycjjE211.png "title=" 2016-05-15_204753.png "alt=" Wkiom1c4casc_titaadawoycjje211.png "/>
MySQL Configuration
Copy a My-default.ini in mysql5.7 and rename it to My.ini as the default profile.
Uncomment Basedir, DataDir, and port and modify the path:
Basedir = "c:/soft/php/mysql5.7" DataDir = "c:/soft/php/mysql5.7/data" port = 3306
Add MySQL to environment variable:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/20/wKiom1c4cwLjixLkAADFsmdf5F4567.png "title=" 2016-05-15_210035.png "alt=" Wkiom1c4cwljixlkaadfsmdf5f4567.png "/>
To install the MySQL service:
>MYSQLD--installservice successfully installed.
Initialize MySQL:
>mysqld--initializ-insecure
Start MySQL:
>net start mysqlthe MySQL service is starting. The MySQL service was started successfuly.
Test MySQL:
>mysqlerror 1045<28000>: Access denied for user ' ODBC ' @ ' localhost ' <using password:no>
Execute the following command to resolve this issue:
>CD c:\soft\php\mysql5.7\bin>mysqladmin-u root passwordnew password: ********confirm new password: ******** Warning:since password is sent to server in plain text, use SSL connection to ensure password safety.
Try again:
>mysql-u root-penter Password: ********welcome to the MySQL monitor. Commands End With; Or \g ....
This indicates success and found that some files were generated in the data directory:
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/80/1E/wKioL1c4mNuiKac4AAAiqdqaqTg989.png "title=" 2016-05-15_233818.png "alt=" Wkiol1c4mnuikac4aaaiqdqaqtg989.png "/>
This article is from the "lybing" blog, make sure to keep this source http://lybing.blog.51cto.com/3286625/1773755
PHP7 + Apache2.4 + MySQL 5.7 + Windows7