Windows64+PHP7+Apache24+MySQL57+PhpStorm环境

  • 系统环境安装
    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安装
    官网下载
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值