warning: Can’t open file ‘/root/.subversion/servers’ …

Standard

我们用PHP写了个Release界面用来做svn up及rsync操作,之前运行正常,今早发现报错如下:
warning: Can’t open file ‘/root/.subversion/servers’: Permission denied

解决方法:
因为php以apache用户运行,所以最简单的办法就是直接把config-dir放到apache目录下
svn status –config-dir /etc/apache/.subversion;
svn info –config-dir /etc/apache/.subversion;

One thought on “warning: Can’t open file ‘/root/.subversion/servers’ …

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.