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

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

问题描述

我正在使用 Windows.我的 xampp 安装在驱动器 C 中,首先我在我的文件中工作

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

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

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

但问题是 xampp 什么是好的和简单的方法,以便我在这里工作并在本地工作,即 localhost

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:xamppapacheconfhttpd.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

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

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