Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Websvn in CentOS system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces you how to install Websvn in the CentOS system, the content is very detailed, interested friends can refer to, hope to be helpful to you.

WebSVN provides various functions of Svbverion's operation of your warehouse through the Web interface. Through it, we can see the log of any file or directory for any given version, and we can see a list of all file changes, additions, and deletions.

Characteristics

WebSVN provides the following features:

Easy-to-use user interface

Customizable template system

A list of colored files

Retrospective view

Log information query

RSS support

1. Download WebSVN

You can download WebSVN from the official website http://www.websvn.info/download/. Let's first go to / var/www/html/ and download the installation package here.

Copy the code

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.

Copy the code

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

Copy the code

The code is as follows:

# unzip websvn-2.3.3.zip

# mv websvn-2.3.3 websvn

3. Install php

Copy the code

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.

Copy the code

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.

Copy the code

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.

Copy the code

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.

Note: if you encounter a problem like "Unable to find" enscript "tool at location" / usr/bin/enscript, you need to use "yum install enscript" to install enscript to fix the problem.

On how to install Websvn in the CentOS system to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report