在Apache和mod_python运行颠覆 [英] Running subversion under apache and mod_python

查看:131
本文介绍了在Apache和mod_python运行颠覆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Apache服务器上的一些非默认(未根)帐户运行。当它试图运行一个python脚本反过来执行颠覆退房命令,'svn签'失败,出现以下错误信息:

My Apache server runs on some non-default (not-root) account. When it tries to run a python script which in turn executes a subversion check-out command, 'svn checkout' fails with the following error message:

svn: Can't open file '/root/.subversion/servers': Permission denied

目前运行与命令行内颠覆结帐命令python脚本在相同的用户帐户的推移得很清楚同一时间。

At the same time running that python script with subversion checkout command inside from command line under the same user account goes on perfectly well.

Apache服务器2.2.6与3.2.8的mod_python的Fedora Core 6的机器上运行。

Apache server 2.2.6 with mod_python 3.2.8 runs on Fedora Core 6 machine.

任何人可以帮助我吗?非常感谢。

Can anybody help me out? Thanks a lot.

推荐答案

这听起来像你的Apache进程正在运行下是有点不寻常的环境。无论出于何种原因,SVN似乎认为它需要用户配置文件在/根。你可以避免SVN使用这些文件的根目录版本通过指定命令行上使用的config目录下,就像这样:

It sounds like the environment you apache process is running under is a little unusual. For whatever reason, svn seems to think the user configuration files it needs are in /root. You can avoid having svn use the root versions of the files by specifying on the command line which config directory to use, like so:

svn --config-dir /home/myuser/.subversion checkout http://example.com/path

虽然没有固定的enviornment,它至少会允许你有你的脚本运行正常...

While not fixing your enviornment, it will at least allow you to have your script run properly...

这篇关于在Apache和mod_python运行颠覆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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