# 环境搭建
下载: [PHPSTUDY2016
](http://www.php.cn/xiazai/gongju
)
一、服务器端包含(ssi)
Apache下开启SSI配置使html支持include包含的方法
```
<VirtualHost *:80>
DocumentRoot "D:\phpStudy\WWW\cmstop.info"
ServerName cmstop.info
ServerAlias cmstop.info
<Directory "D:\phpStudy\WWW\cmstop.info">
Options Indexes FollowSymLinks Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
```
二、magic_quotes_gpc函数关闭:
在`php.ini`文件内找到
```
magic_quotes_gpc = On
```
将其改为
```
magic_quotes_gpc = Off
```
三、支持index.shtml索引页
```
<IfModule dir_module>
DirectoryIndex index.html index.shtml index.php index.htm l.php
</IfModule>
```
## 参考资料
win7x64+PHPStudy2018安装redis扩展
https://blog.csdn.net/leejianjun/article/details/79555026
https://windows.php.net/downloads/pecl/releases/redis/3.0.0/
https://windows.php.net/downloads/pecl/releases/igbinary/
Windows安装Redis
http://www.runoob.com/redis/redis-install.html
>启动Redis Server后不要关闭窗口
https://windows.php.net/downloads/pecl/releases/redis/2.2.7/