Posted under Uncategorized
Before proceeding make a backup of your VPS because this is a work in progress , In few situations you can receive some errors even after you have followed all these steps. We will work with you to solve them and hopefully produce a firm guide with a list of potential errors.
These are the following steps:-
1) Install subversion : It’s very easy to install subversion on centos, just a use Yellow dog Updater Modified
2) Now check if “perl-URI” is installed or not. If in case it is not installed than you can install it by using YUM install perl-URI.
3) After that create a repository.
cd /var/
mkdir -p repo/source/
svnadmin create /var/repo/source
Note:By using above commands you can create a subversion repo named source. You can check inside the directory if lot of files are created. If created subversion works fine.
4) Now you can proceed with Apache 2 installation. We have chosen Apache 2.0.59
wget the location of Apache
tar -zxvf httpd-2.0.59.tar.gz
cd httpd-2.0.59
./configure –prefix=/usr/local/apache2 –with-port=2080 –enable-dav –enable-dav-fs –enable-proxy –enable-rewrite –enable-so
make
make install
/usr/local/apache2/bin/apachectl start
==
Apache2 installed at port 2080 with dav , proxy and rewrite and started
5) After this we have to compile mod_svn for apache 2. For this you have to download the SVN source from the subversion site, first please check the version of subversion using yum
Next you have to download the same version of subversion source, untar it and need to compile mod_svn now:
./configure –with-apxs=/usr/local/apache2/bin/apxs
make
make install
Now mod_svn is installed and activated on apache2.
6) Configure Apache 2 for svn. For this change the settings httpd.conf of apache 2. This file will be located here /usr/local/apache2/conf/httpd.conf
<location>
DAV svn
SVNPath /var/repo/source
</location>
After making the above changes Restart Apache2. Now you should be able to see the svn files from this url http://localhost:2080/ or http://<serverip>:2080. You should be able to see the subversion files at revision 0. There will be nothing in it as we have not added any files.
7) Now Add proxy to apache 1.3 so that we can internally proxy the files between Apache 2 and Apache 1. You can download the source of currently installed apache 1.3 or you can find the same in /root/installd/buildapache/apache_1.3.xx/src/modules/proxy
Just goto that directory and run this command
/usr/local/apache/bin/apxs -i -c *.c
This will install mod_proxy to apache 1.3
You have add this setting to apache 1.3 conf file to proxy the http://localhost:2080/ in standard port 80 of some website.
Add these line to any virtual host present in the conf file.
LoadModule proxy_module modules/mod_proxy.so
AddModule mod_proxy.c
ProxyRequests Off
ProxyPass / http://locahost:2080/
