- 系统环境安装
Microsoft .NET framework4.5
Microsoft Visual C++ 2015 Redistributable
随便找个游戏运行库合集就可以安装 - php7安装
php下载地址:http://windows.php.net/download#php-7.1
使用apache24服务器需要选择Thread Safe
最好选用zip包, 这样可以知道对php的改动
解压到D:\webserver\php
将php写入环境变量D:\webserver\php;D:\webserver\php\ext
将php根目录下的php.ini-development复制重命名为php.ini
修改php.ini文件(一定要用正斜杠‘/’)
//修改,前面有注释的去掉注释
extension_dir = "D:/webserver/php/ext"
session.save_path = "D:/webserver/temp"
session.cookie_path = "D:/webserver/temp"
upload_tmp_dir = "D:/webserver/temp"
date.timezone = Asia/Shanghai
//取消注释
extension=php_curl.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_xmlrpc.dll
- Apache24安装
apache24下载地址http://www.apachelounge.com/download/
解压到D:\webserver\apache24
将apache写入环境变量中D:\webserver\apache24
修改apache24\conf\httpd.conf文件
//在最后添加,一定要使用正斜杠
LoadModule php7_module "D:/webserver/php/php7apache2_4.dll"
//php7apache2_4.dll在php目录下
PHPIniDir "D:/webserver/php"
//修改文件,前面有注释的去掉注释
ServerRoot "D:/webserver/apche24"
//
ServerName 127.0.0.1:80
//
DocumentRoot "D:/webserver/apache24/htdocs"
<Directory "D:/webserver/apache24/htdocs">
//
<IfModule dir_module>
DirectoryIndex index.html index.php index.htm
</IfModuel>
//
<Directory "D:/webserver/Apache24/cgi-bin/">
AllowOverride None
Options None
Require all granted
</Directory>
//修改
ScriptAlias /cgi-bin/ "c:/webserver/Apache24/cgi-bin/"
<Directory "c:/webserver/Apache24/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
//添加类型支持,找到下面两个
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
//在之后添加
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
修改完conf文件之后打开cmd进入apache/bin路径中
httpd -k install
- MySQL57安装
直接使用exe - phpstorm安装
官网下载