XAMPP +颠覆+乌龟SVN +蚀

发布于 2024-09-16 11:16:44 字数 1361 浏览 2 评论 0原文

我已经花了足够的时间试图解决这个问题并让它发挥作用,我希望有人能够对这个问题有所启发。

本质上,我试图在我的 Windows XP 机器上安装带有 XAMPP 的 Subversion 作为虚拟主机,并通过 http:// 访问我的 MacBook 上安装的 TortoiseSVN 和 Ecplise 的存储库。

我已经下载安装了以下文件:

  • XAMPP Windows 1.7.3
  • Subversion 1.6.6

安装 XAMPP 后,我设置了正确的 DNS 路由,以便我可以在外部看到该网站并能够通过 http:// web 访问它。 mydomain.com。

现在我想设置 http://svn.mydomain.com 通过 apache 通过虚拟主机访问我的存储库。

首先,我编辑了 C:\WINDOWS\system32\drivers\etc\hosts 并添加了以下内容:

127.0.0.1 svn.mydomain.com

然后,按照有关如何使用 apache 安装 Subversion 的教程进行操作我执行了以下操作:

创建了位于 C:\xampp\svn 中的存储库。

将 mod_authz_svn.so 和 mod_dav_svn.so 复制到 C:\xampp\apache\modules。

编辑 C:\xampp\apache\conf\httpd.conf 并将 LoadModule dav_svn_modulemodules/mod_dav_svn.so 和 LoadModule authz_svn_modulemodules/mod_authz_svn.so 添加到 LoadModules 列表的末尾。

编辑 C:\xampp\apache\conf\extra\httpd-vhosts.conf 修改并添加以下内容:

NameVirtualHost *

< VirtualHost * >
    ServerName svn.mydomain.com

    <Location />
       DAV svn
       SVNParentPath "C:/xampp/svn"
    </Location>
< /VirtualHost >

然后我重新启动 Apache,没有任何问题。

我可以通过浏览器以及 TortoiseSVN 通过 http://svn.mydomain.com/repository 访问存储库,到目前为止一切顺利。

真正的问题是当我尝试通过 TortoiseSVN 将新项目导入到存储库时。我收到以下错误:“无法打开请求的 SVN 文件系统。”

我希望有人能帮忙!谢谢!!!

I've suffered enough hours trying to figure this out and get it working and I hope someone can shine some light on this issue.

In essence, I'm trying to install Subversion with XAMPP on my Windows XP machine as a Virtual Host and access the repository with TortoiseSVN and Ecplise installed on my MacBook via http://.

I've downloaded installed the following files:

  • XAMPP Windows 1.7.3
  • Subversion 1.6.6

After installing XAMPP, I've setup the proper DNS routing so that I can see the website externally and able to access it through http:// web.mydomain.com.

Now I want to setup http:// svn.mydomain.com to access my repository via virtual host through apache.

First, I edited the C:\WINDOWS\system32\drivers\etc\hosts and added the following:

127.0.0.1 svn.mydomain.com

Then, following the tutorials on how to install Subversion with apache and I did the following:

Created the repository located in C:\xampp\svn.

Copied the mod_authz_svn.so and mod_dav_svn.so to C:\xampp\apache\modules.

Edited the C:\xampp\apache\conf\httpd.conf and added LoadModule dav_svn_module modules/mod_dav_svn.so and LoadModule authz_svn_module modules/mod_authz_svn.so to the end of the LoadModules list.

Edited the C:\xampp\apache\conf\extra\httpd-vhosts.conf modified and added the following:

NameVirtualHost *

< VirtualHost * >
    ServerName svn.mydomain.com

    <Location />
       DAV svn
       SVNParentPath "C:/xampp/svn"
    </Location>
< /VirtualHost >

Then I restarted Apache with no problems.

I was able to access the repository through http:// svn.mydomain.com/repository through a browser and also through TortoiseSVN, so far so good.

The real problem is when i try to import a new project to the repository through TortoiseSVN. I get the following error: "Could not open the requested SVN filesystem."

I hope someone can help! Thanks!!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

深爱成瘾 2024-09-23 11:16:44

很可能是权限问题。但是您需要查看 apache 错误日志以获取有关此错误的更多具体信息。
能够通过浏览器访问仅确认读取访问,而导入是写入操作。所以你需要检查访问权限。
如果您可以添加有关错误日志内容的更多信息,也许有人可以提供更多信息和帮助。谢谢。

Its likely to be permissions problem. But you will need to look in your apache error log for more specific information on this error.
Being able to access via a browser only confirms read access, while an import is a write operation. So you need to check on the access permissions.
If you can add more information on what the error logs say, perhaps someone may be able to provide more information and help. Thanks.

治碍 2024-09-23 11:16:44

我在svn中也遇到了这个问题,但我已经解决了。通常,当您创建存储库而未指定 fs-type 时,就会出现此问题。因此,在创建 svn 存储库时定义 fs-type,例如:

svnadmin.exe create --fs-type fsfs C:/xampp/svn

I was also facing this issue in svn but I have solved it. Generally this problem happens when you have created repo without specify the fs-type. So define the fs-type at the time when you create your svn repository like:

svnadmin.exe create --fs-type fsfs C:/xampp/svn

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文