Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

再见wamp,你好xampp #17

Open
lovecn opened this issue Mar 28, 2015 · 0 comments
Open

再见wamp,你好xampp #17

lovecn opened this issue Mar 28, 2015 · 0 comments

Comments

@lovecn
Copy link
Owner

lovecn commented Mar 28, 2015

准备学习php框架Laravel ,但PHP版本要求5.4+,目前用的wamp默认版本5.3,所以准备使用xampp,以下为记录
1.卸载wamp,略过
ps:注意卸载wamp会删除PHP目前下的文件,因为PHP的扩展redis,memcache也会删除,记得备份,也可重下版本,还有MySQL数据库也记得备份
2.https://www.apachefriends.org/zh_cn/index.html点此下载软件
3.启动Apache,MySQL,打开localhost成功安装
4.配置,因为xampp默认根目录有新的www,因此需要为原来的wamp的www目录配置虚拟域名
#1 编辑httpd.conf ,修改

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

#2 编辑httpd-vhosts.conf

NameVirtualHost *:80
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "D:/soft/xampp/htdocs"
    ServerName localhost
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin [email protected]
    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>

#3 编辑hosts

127.0.0.1 www.vhallapp.com
5.下载redis
http://pecl.php.net/package/redis/2.2.7/windows下载5.6版本dll文件
6.编辑php.ini
extension=php_redis.dll
7.打开xdebug

[XDebug]
zend_extension = "D:\soft\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "D:\soft\xampp\tmp"
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:\soft\xampp\tmp"

8.打开www.vhallapp.com
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant