Hi
Can anyone reply this thread with a simple how-to install subversion???
There are some threads around, but no one has instructions or has deprecated info (now that Cpanel has apache2) ......
Thanks in advance
Hi
Can anyone reply this thread with a simple how-to install subversion???
There are some threads around, but no one has instructions or has deprecated info (now that Cpanel has apache2) ......
Thanks in advance
yum install subversion
Maybe I wasn't specific enough, yes, subversion install is as simple as yum install, but apache modules for subversion aren't so easy to install. We are still trying to compile subversion modules with apache2 ... there is a thread that has some instructions, but we are not able to compile the modules with the instructions posted. (here is the post http://forums.cpanel.net/showthread.php?p=349890 )
When subversion will be officially supported by cpanel?
Thanks you,
We were only just actually wondering the same thing ourselves.
Is subversion and trac support going to be included in cPanel at all by default/compile into apache?
Hightek Hosting
Affordable cPanel & Plesk Website Hosting - 24/7 Sales & Support
Ph: 1300 85 34 30- Engin VoIP Users Free Call: (02) 5908 2370 Fax: (02) 6971 1189
Web: http://www.hightekhosting.com.au Email: sales@hightekhosting.com.au
Hi, hightekhosting
We don't think this wont be possible in the near future. I'm posting the answer from cPanel support when asking for help on writing a rule to include subversion for the EA3.
So, we did it manually. Here are the instructions we follow.I don't believe it's possible to add custom modules like this to easyapache at this time. While it's possible to specify custom configure flags or such, third-party modules like this will need to be built manually after easyapache is run or with a posteasyapache script.
mkdir -p /usr/local/src/subverison
cd /usr/local/src/subversion
wget http://subversion.tigris.org/downloa...-1.5.0.tar.bz2
tar xfj subversion-1.5.0.tar.bz2
cd subversion-1.5.0
./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
make
make install
/scripts/ensure_vhost_includes --user=username
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd
We create a custom conf for the account using the new EA3 feature:
/etc/httpd/conf/userdata/std/2/username/svn.domain.com
La siguiente info:
<Location /Smarty>
DAV svn
SVNPath /home/username/svn/test
AuthType Basic
AuthName "test Repository"
AuthUserFile /home/username/svn/passwd
Require valid-user
</Location>
Having looked through the instructions it seems some of this information is in the wrong order... I could be wrong... anyway.. re-written to be a bit clearer. Correction/comment welcome.
(snip stuff for installing subversion from source)
Create the svn_custom.conf using the new EA3 feature as described here:
http://www.cpanel.net/support/docs/e...irectives.html
/etc/httpd/conf/userdata/std/2/[username]/[subdomain?].[domain]
<IfModule mod_dav_svn.c>
<Location /[repos-folder]>
DAV svn
SVNPath /home/[username]/svn/[repos-name]
AuthType Basic
AuthName "[Repository Label]"
AuthUserFile /home/[username]/svn/passwd
Require valid-user
</Location>
</IfModule>
TEST the custom configuration before you commit it!
/scripts/verify_vhost_includes
Assuming all is well... commit the svn_custom.conf and restart the apache server:
/scripts/ensure_vhost_includes --user=[username]
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd
EDIT: One part left out completely...
You also need to do the following
WHM > Apache Setup > Include Editor > Pre-Main Include
Add the lines:
.. then restart apache... otherwise it just won't work.Code:LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so
As I said... comment / correction welcome...
Last edited by websnail.net; 11-04-2008 at 12:55 PM.
I have one problem though,
/home/cpeasyapache/src/httpd-2.2.9/srclib/apr-util
does not exist.
I got no httpd source in this src directory... The only thing I got there is PHP.
Also, when put the last 2 directives into the apache include file - it cannot find the .so files associated with them (which is most likely due to inability to compile SVN without the apr-util)...
I also tried installing svn via yum install svn - but the dav .so were not there.
Actually I figured out my previous problem, however this is the error I get when trying to Load modules into apache:
Any help is appreciatedCode:An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf Exit signal was: 0 Exit value was: 1 Output was: --- httpd: Syntax error on line 29 of /usr/local/apache/conf/httpd.conf: Syntax error on line 1 of /usr/local/apache/conf/includes/pre_main_2.conf: Cannot load /usr/local/apache/modules/mod_dav_svn.so into server: /usr/local/apache/modules/mod_dav_svn.so: undefined symbol: dav_register_provider ---![]()
I have the very same thing problem.
ERROR:
An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf Exit signal was: 0 Exit value was: 1 Output was: --- httpd: Syntax error on line 29 of /usr/local/apache/conf/httpd.conf: Syntax error on line 1 of /usr/local/apache/conf/includes/pre_main_2.conf: Cannot load /usr/local/apache/modules/mod_dav_svn.so into server: /usr/local/apache/modules/mod_dav_svn.so: undefined symbol: dav_register_provider ---
Internal Server Terror
I think you need to recompile Apache through Easy Apache 3 - and include mod_dav and mod_svn... Then it will know what they mean.
I've installed Neon and I am trying to install Subversion to allow for ra_dav connections to Subversion, but I cannot seem to get this to work. CentOS 5.3 with cPanel:
Can anyone tell me what I am doing wrong so that I can get the ra_dav to work?Code:cd /usr/local/src/ wget http://www.webdav.org/neon/neon-0.28.4.tar.gz tar xvf neon-0.28.4.tar.gz mv neon-0.28.4/ neon cd neon ./configure --with-ssl --with-pic --enable-shared make && make install cd ../subversion-1.5.0 make clean ./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.11/srclib/apr-util --with-ssl --with-neon=/usr/local make && make install /usr/local/bin/svn --version svn, version 1.5.0 (r31699) compiled Apr 3 2009, 10:16:27 Copyright (C) 2000-2008 CollabNet. Subversion is open source software, see http://subversion.tigris.org/ This product includes software developed by CollabNet (http://www.Collab.Net/). The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme
Unless it's your server and you're installing as an admin, you need the prefix. Otherwise make will attempt to install somewhere you don't have permission to write to. I'm surprised you're not seeing errors about that.
Try adding the prefix to all components of the installation and linking to the libraries you compiled in your own home folder.
Also, what you're doing here isn't installing Subversion for cPanel, you're installing a personal binary of Subversion that cPanel won't know anything about. There's nothing wrong with that, but this probably isn't the best place to be asking about it.
SOLVED. Required "subversion-deps" apparently, which took me much to long to figure out:
As root:
cd /usr/local/src/subversion
wget http://subversion.tigris.org/downloa...-1.5.0.tar.bz2
tar -xvjf subversion-deps-1.5.0.tar.bz2
cd subversion-1.5.0
pwd
/usr/local/src/subversion/subversion-1.5.0/
make clean
./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.11/srclib/apr-util --with-ssl
make
make install
root@server [/usr/local/src/subverison/subversion-1.5.0]# svn --version
svn, version 1.5.0 (r31699)
compiled Apr 6 2009, 10:58:39
Copyright (C) 2000-2008 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- handles 'http' scheme
- handles 'https' scheme
Just a little nugget that I learned the hard way today..
When you recompile Apache using Easy Apache you will need to do the following first:
In WHM go to:
- Main >> Service Configuration >> Apache Configuration
- In the "Pre Main Include" select your current version
- Replace:
with:Code:LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so(This disables the subversion repository)Code:# LoadModule dav_svn_module modules/mod_dav_svn.so # LoadModule authz_svn_module modules/mod_authz_svn.so
You can now recompile Apache successfully (remember to select "Dav" as one of the modules to include).
If you don't do this you get an error and your build will fail.
Once you've finished Easy apache successfully... Compile your Subversion against the new apache, etc...
ie:
** I've updated for the latest versions of Apache and Subversion so if your version of subversion is out of date now is a good time to update it.cd subversion-1.6.2
./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.11/srclib/apr-util
make
make install
Once that is done you can then return to Main >> Service Configuration >> Apache Configuration and return the "Pre Main Include" code to what is was before.
Works like a charm![]()