Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install Websvn in CentOS

Shulou Source: shulou.com Published: 2022-06-01 18:33:48 09月23日 Update

This article shows you how to install Websvn in CentOS. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

1. Download WebSVN

First go to / var/www/html/ and download the installation package here.

The code is as follows:

$sudo-s

Please execute the above command in shell or terminal, because we need to switch to root permissions to have access to the restricted area of the system.

The code is as follows:

# cd / var/www/html

# wget http://websvn.tigris.org/files/documents/1380/49057/websvn-2.3.3.zip

Here, I downloaded the latest version 2.3.3 of websvn. You can find the download link from the above website and replace the link above with a link that is appropriate for your package.

two。 Extract the downloaded zip

The code is as follows:

# unzip websvn-2.3.3.zip

# mv websvn-2.3.3 websvn

3. Install php

The code is as follows:

# yum install php

4. Edit WebSVN configuration

Now we need to copy the distconfig.php at / var/www/html/websvn/include as config.php and then edit the configuration file.

The code is as follows:

# cd / var/www/html/websvn/include

# cp distconfig.php config.php

# nano config.php

Now we need to change the file as follows. When you are finished, please save and exit.

The code is as follows:

/ / Configure these lines if your commands aren't on your path.

/ /

$config- > setSVNCommandPath ('/ usr/bin'); / / e.g. C:\\ program files\\ subversion\\ bin

$config- > setDiffPath ('/ usr/bin')

/ / For syntax colouring, if option enabled...

$config- > setEnscriptPath ('/ usr/bin')

$config- > setSedPath ('/ bin')

/ / For delivered tarballs, if option enabled...

$config- > setTarPath ('/ bin')

/ / For delivered GZIP'd files and tarballs, if option enabled...

$config- > setGZipPath ('/ bin')

/ /

$config- > parentPath ('/ svn/')

$extEnscript [".pl"] = "perl"

$extEnscript [".py"] = "python"

$extEnscript [".sql"] = "sql"

$extEnscript [".java"] = "java"

$extEnscript [".html"] = "html"

$extEnscript [".xml"] = "html"

$extEnscript [".thtml"] = "html"

$extEnscript [".tpl"] = "html"

$extEnscript [".sh"] = "bash"

5. Start WebSVN

Now, we are almost finished. Now you need to restart the Apache service. You can use the following command.

The code is as follows:

# systemctl restart httpd.service

Then we open WebSVN in the browser and enter the http:// IP address / websvn, or if you are local, you can type http://localhost/websvn.

The above is how to install Websvn in CentOS. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Code links faceted content commands skills files knowledge input configuration concise concise area address that is copy article more permissions browser Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Docker macOS Shulou Technology Shulou Tech Info