发布于 2015-04-09 14:56:30 | 380 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

XAMPP PHP开发集成软件包

XAMPP(Apache+MySQL+PHP+PERL)是一个功能强大的建 XAMPP 软件站集成软件包。这个软件包原来的名字是LAMPP,但是为了避免误解,最新的几个版本就改名为 XAMPP 了。它可以在Windows、Linux、Solaris、M ac OS X 等多种操作系统下安装使用,支持多语言:英文、简体中文、繁体中文、韩文、俄文、日文等。


准备学习php框架Laravel,但PHP版本要求5.4+,目前用的wamp默认版本5.3,所以准备使用xampp,以下为记录

卸载wamp,略过
> ps:注意卸载wamp会删除PHP目前下的文件,因为PHP的扩展redis,memcache也会删除,记得备份,也可重下版本,还有MySQL数据库也记得备份

https://www.apachefriends.org/zh_cn/index.html点此下载软件

启动Apache,MySQL,打开localhost成功安装

配置,因为xampp默认根目录有新的www,因此需要为原来的wamp的www目录配置虚拟域名
编辑httpd.conf ,修改

<Directory />
  #AllowOverride none
  #Require all denied
  Options All
  AllowOverride All
  Order deny,allow
  Allow from all
</Directory>

编辑httpd-vhosts.conf

NameVirtualHost *:80
<VirtualHost *:80>
  ServerAdmin webmaster@dummy-host.example.com
  DocumentRoot "D:/soft/xampp/htdocs"
  ServerName localhost
</VirtualHost>
<VirtualHost *:80>
  ServerAdmin webmaster@dummy-host.example.com
  DocumentRoot "D:/soft/wamp/www"
  ServerName vhallapp.com
  ServerAlias www.vhallapp.com
  ErrorLog "D:/soft/wamp/apacheerror.log"
  CustomLog "D:/soft/wamp/apacheaccess.log" common
</VirtualHost>

编辑hosts


127.0.0.1 www.app.com

5. 下载redis

6. 编辑php.ini


extension=php_redis.dll

7. 打开xdebug

[XDebug]
zend_extension = "D:softxamppphpextphp_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "D:softxampptmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "D:softxampptmp"

8.打开www.app.com
 



最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务