Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running subversion under apache and mod_python

Tags:

python

svn

apache

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

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 server 2.2.6 with mod_python 3.2.8 runs on Fedora Core 6 machine.

Can anybody help me out? Thanks a lot.

like image 275
victorz Avatar asked Sep 25 '08 15:09

victorz


1 Answers

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

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

like image 123
Douglas Mayle Avatar answered Oct 24 '22 01:10

Douglas Mayle