当前位置: 首页 >> 榆树网-系统 >> 文章正文

解决:Can’t open file ‘/root/.subversion/servers’: Permission denied错误

This problem occurs as an effect of apache beeing run as root.
Though commands are still issued by the apache 'http' user, the home
directory are for some reason still '/root'.

This results in the error
"svn: warning: Can't open file '/root/.subversion/servers':
Permission denied"
beeing logged in /var/log/http/error_log, and no svnrepo are
created.

The obvious workaround to this, is to issue a command like 'export
HOME=/srv/svn/' or 'export HOME=/home/svn/' before svnadmin is
called.

My current workaround is the stupid simple:
$cfg['svnadmin_path'] = 'export HOME=/srv/svn; '.'svnadmin';

A sufficient fix for this issue migth be just to mention this in the
SyncSvn documentation. (I'll be happy to compile a small patch for
this)

I have read about similar issues taking place on Redhat and Fedora
with php scripts trying to call svnadmin.

From: http://projects.ceondo.com/p/indefero/issues/155/

相关文章

发表评论