Subversion & WHM/Cpanel 11
Thought I'd store this here too as I spent the last four hours trying to figure out how to make WHM's Apache 2.x install work with subversion.
With a little help from this thread:
I managed to re-work the information into something a bit more usable and easier to understand... Oh and get it all to work! :)
mkdir -p /usr/local/src/subverison
tar xfj subversion-1.5.2.tar.bz2
./configure --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apache/bin/apr-1-config --with-apr-util=/home/cpeasyapache/src/httpd-2.2.9/srclib/apr-util
NB: You can ignore the warning about berkleydb that comes at the end of the ./configure command.
Create the svn_custom.conf using the new EA3 feature as described here:
cPanel - The Easy Apache Configuration System - Adding Custom Directives to httpd.conf
.. the www is required or can be any subdomain but note the exception to wildcard sub-domains in the reference above.
The <IfModule.. > call helps avoid your apache falling over if there's a problem with the conf file so don't get rid of it!
AuthName "[Repository Label]"
TEST the custom configuration before you commit it!
Assuming all is well... commit the svn_custom.conf and restart the apache server:
You also need to do the following
WHM > Apache Setup > Include Editor > Pre-Main Include
Add the lines:
.. then restart apache.
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
One thing to watch out for... if you get an error like this:
... it's because you forgot to add the LoadModule command for the authz_svn_module
Invalid command 'AuthzSVNAccessFile', perhaps mis-spelled or defined by a module not included in the server configuration"
... that little oversight caused me 45 minutes of head scratching so hopefully this will save some other poor s*d from the same fate.
Anyhoo... hope that's useful and obviously this is a guide for NIX systems only. YMMV for Win32 systems.