win7-----xampp结合php5.6安装redis扩展

来源:互联网 发布:js date对象方法 编辑:程序博客网 时间:2024/05/23 19:56

第一步

下载redis扩展

redis扩展

解压后将–php_redis.dll 放到 xampp安装目录>php>ext

这里写图片描述


第二步

xampp安装目录>php>php.ini

这里写图片描述

修改内容如下

这里写图片描述


第三步

路径:
C:\xampp\apache\conf\extra\httpd-vhosts.conf

追加内容如下

<VirtualHost *:80> ServerName phpinfo.com DocumentRoot "C:/xampp/htdocs"<Directory "C:/xampp/htdocs">  Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.html index.htm index.php AllowOverride all  Order Deny,Allow  Allow from all  Require all granted</Directory></VirtualHost>

第四步

路径:

C:\xampp\htdocs\

新建文件》》》》》》》》》index.php

文件内容如下

<?php    phpinfo();

第五步

在hosts文件加入路径:127.0.0.1 phpinfo.com

重启xampp

浏览器输入地址:phpinfo.com

即可看到安装完成

原创粉丝点击