如何配置XAMPP在Windows中,如果项目文件不在根目录 [英] how to configure xampp in windows if project files are not in root directory

查看:356
本文介绍了如何配置XAMPP在Windows中,如果项目文件不在根目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Windows。我的XAMPP是安装在C盘,首先,我在这里工作在我的文件

  C-> xampp-> htdocs-> SVN数据 - > php_clients-> trunks->的myproject

但比 SVN 我在这里复制粘贴我的所有文件SVN现在这里配置

  D-GT&; SVN数据 - > php_clients-> trunks->的myproject

我正在本地测试项目中,我的意思是在本地主机,首先它是在

  C-> xampp-> htdocs-> SVN数据 - > php_clients-> trunks->的myproject

所以我能工作,测试,更新现在我想在工作其中就设在这里的文件

  D-GT&; SVN数据 - > php_clients-> trunks->的myproject

但问题是XAMPP的是什么好的和简单的方式让我在这里工作和当地的工作,为localhost

  D-GT&; SVN数据 - > php_clients-> trunks->的myproject


解决方案

 去这里是C:\\ XAMPP的\\ apache的\\的conf \\ httpd.conf文件
开放的httpd.conf
找到这个的DocumentRootC:/ XAMPP / htdocs中编辑本
的DocumentRootD:/ SVN数据/ php_clients /中继/ myproject的
之后发现这个标签
<名录及GT;并使其像这样
<目录D:/ SVN数据/ php_clients /中继/ myproject的>
重新启动Apache的去写浏览器的http://本地主机地址栏,看看您的应用程序

i am using windows .my xampp is install in drive C ,firstly i worked here in my files

 C->xampp->htdocs->SVN data->php_clients->trunks->myproject

but than for SVN i copy paste my all files here now SVN Is configured here

D->SVN data->php_clients->trunks->myproject

i am testing my project locally i mean in localhost,firstly it was in

 C->xampp->htdocs->SVN data->php_clients->trunks->myproject

so i was able to work ,test,update now i am suppose to work in files which is located here

 D->SVN data->php_clients->trunks->myproject

but problem is of xampp what is the nice and easy way so that i work here and work locally that is localhost

D->SVN data->php_clients->trunks->myproject

解决方案

go  here that is C:\xampp\apache\conf\httpd.conf 
open httpd.conf
Find This DocumentRoot "C:/xampp/htdocs" Edit this to 
DocumentRoot "D:/SVN data/php_clients/trunks/myproject"
after that find this tag
<Directory> and make it like this 
<Directory "D:/SVN data/php_clients/trunks/myproject">
Restart Your Apache go to browser write http://localhost in address bar and see your app

这篇关于如何配置XAMPP在Windows中,如果项目文件不在根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆