1.Apache
下载地址:http://httpd.apache.org/download.cgi
下载之后进入CMD,/Apache/bin/httpd.exe -k install 进行安装
提示安装成功就行
如果test出错重启下apache就行
httpd -k stop
httpd -k start
httpd -k restart
2.PHP
进入官网下载PHP
Non Thread Safe 一直报错不能加载php7_module
修改apache的conf
添加
LoadModule php7_module D:/PHP/php7apache2_4.dll
AddType application/x-httpd-php .php .html
AddType application/x-httpd-php-source .phps
PHPIniDir "D:/PHP"
修改php.ini(没有的话复制php.ini-development)
extension_dir = "d:\PHP\ext"
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll
修改之后重启apache
3.mysql
下载地址:http://dev.mysql.com/downloads/
复制my-default.ini重命名为my.ini
并且修改
basedir = "D:\mysql"
datadir = "D:\mysql\data"
修改结束后修改环境变量path
然后执行
mysqld --initialize-insecure --user=mysql
这句会执行安装,并且初始化data文件夹
net start mysql # 启动mysql