Ruben Laguna’s blog

How to Install Trac 0.10.4 and XmlRpcPlugin on a Non-standard Directory Location

First you need setuptools/EasyInstall:

cd $HOME/opt
mkdir -p $HOME/opt/easyinstall/lib/python2.4/site-packages
PYTHONPATH=$HOME/opt/easyinstall/lib/python2.4/site-packages python --prefix=$HOME/opt/easyinstall

Next, trac:

cd $HOME/opt
tar xvzf trac-0.10.4.tar.gz
cd trac-0.10.4
python install --prefix=$HOME/opt/trac
cd ..
rm -rf trac-0.10.4
cd trac
PYTHONPATH=$HOME/opt/easyinstall/lib/python2.4/site-packages/:$HOME/opt/trac/lib/python2.4/site-packages/  bin/trac-admin $HOME/testtracenv initenv

Then the xmlrpcplugin:

cd $HOME/opt
wget -O  ''
cd xmlrpcplugin/0.10/
PYTHONPATH=$HOME/opt/easyinstall/lib/python2.4/site-packages/ python bdist_egg
cp dist/*.egg $HOME/testtracenv/plugins
cat <<EOF >>$HOME/testtracenv/conf/trac
> [components]
> tracrpc.* = enabled

And now you can test your installation:

cd $HOME/opt/trac
PYTHONPATH=$HOME/opt/easyinstall/lib/python2.4/site-packages/:$HOME/opt/trac/lib/python2.4/site-packages/  bin/tracd -p 8080 $HOME/testtracenv

And point your browswer to http://localhost:8080/testtracenv/xmlrpc if it returns a Forbidden: XML_RPC privileges are required to perform this operation then the installation is complete.


You start using XML_RPC only need to do assign permissions for users using trac-admin, to enable xml_rpc for the anonymous user type this:

PYTHONPATH=$HOME/opt/easyinstall/lib/python2.4/site-packages/:$HOME/opt/trac/lib/python2.4/site-packages/  bin/trac-admin $HOME/testtracenv permission add anonymous XML_RPC

Hope this helps