# 環境搭建
下載: [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/