我们用PHP写了个Release界面用来做svn up及rsync操作,之前运行正常,今早发现报错如下:
warning: Can’t open file ‘/root/.subversion/servers’: Permission denied
svn
编译安装LAMP+SVN+Trac+Memcached
Standard编译 apache2.2.11 php5.2.9 subversion1.6.2 trac0.11.4 mysql5.1.34 memcached1.4.10 APC-3.0.19 xdebug-2.0.4
yum安装svn+trac+apache
Standard安装过程,直接贴到命令行中运行即可
svn+trac install for window
Standard下载地址:
http://www.python.org/download/
Python 2.6.2 Windows installer
http://genshi.edgewall.org/wiki/Download
Genshi-0.5.1.win32-py2.6.exe
http://oss.itsystementwicklung.de/trac/pysqlite/
pysqlite-2.5.5.win32-py2.6.exe
http://trac.edgewall.org/wiki/TracDownload
Trac-0.11.4.win32.exe
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100
Setup-Subversion-1.6.2.msi
svn-python-1.6.1.win32-py2.6.exe
http://trac.edgewall.org/wiki/TracOnWindows#Setuptools
ez_setup.py
setuptools-0.6c9-py2.6.egg
python ez_setup.py setuptools-0.6c9-py2.6.egg #这一步很重要,否则trac-admin操作时会报错
SVN update in post-commit hook
Standard修改SVN库中post-commit文件 操作如: cd /var/www/svn/repos/hooks/ cp post-commit.tmpl post-commit chown apache:apache post-commit chmod a+x post-commit vi post-commit
SVN on CentOS
Standard1) Installation: The first thing to do is to install the packages I mentioned above. If you don't have Apache installed already, it'll go ahead and drag that down as well. [root@lucifer ~]# yum install mod_dav_svn subversion 2) Configurations: a) Apache: ... b) Subversion's Apache configs: