Installation and configuration of Apache + SVN servers in the Fedora14 System

Source: Internet
Author: User
Warning note: httpd-2.2.8.tar.gz is the core package of apache server 2. install apache service

1. Download the corresponding package

1. httpd-2.2.8.tar.gz

2. neon-0.29.5.tar.gz

3. subversion-1.5.6.tar.gz

4. subversion-deps-1.5.6.tar.gz

Note: httpd-2.2.8.tar.gz is the core package corresponding to apache server

Ii. Install the apache server

Use the root account to create the apache directory ----- # mkdir/usr/local/apache

Decompress the corresponding httpd-2.2.8.tar.gz ---- # tar-zvxf httpd-2.2.8.tar.gz

Enter the corresponding httpd-2.2.8 ---------- # cd httpd-2.2.8

./Configure

-- Prefix =/usr/local/apache

-- With-apr =/usr/local/apr/bin/apr-1-config

-- With-apr-util =/usr/local/apr/bin/apu-1-config

-- Enable-modules = so

-- Enable-dav

-- Enable-maintainer-mode -- enable-rewrite

# Make

# Make install

Start apache after installation

#/Usr/local/apache/bin/apachectl-k start

Check http: // localhost/in the browser. After you get it works, it indicates that apache has been configured successfully.

 

Iii. Install subversion-1.5.6

Decompress subversion-1.5.6.tar.gz ---- # tar-zvxf subversion-1.5.6.tar.gz

Decompress subversion-deps-1.5.6.tar.gz ---- # tar-zvxf subversion-deps-1.5.6.tar.gz

These two files will be decompressed to the same directory subversion-1.5.6 ----- # cd subversion-1.5.6

./Configure

-- With-apxs =/usr/local/apache/bin/apxs

-- Prefix =/usr/local/svn

-- With-apr =/usr/local/apache

-- With-apr-util =/usr/local/apache

-- With-ssl -- enable-maintainer-mode

Note: If the undefined reference to libraries error occurs during subora compilation and installation of subversion, this error occurs. According to the information on the Internet, this error has been fixed in the neon higher version, so go to the official website

Make

Make install

View the svn version after installation #/usr/local/svn/bin/svnserve -- version

4. start to build a version Library

Mkdir-p/svn/project/www

#/Usr/local/svn/bin/svnadmin create/svn/project/www/* create a repository "www"

Ls/svn/project/www/* check if any files have been created. If some files are added, the version library has been created.

Import the project file to the version Library

/Usr/local/bin/svn import/home/Oracle/qtproject/feiya1_1 file: // svn/project/www-m "init"

Modify the svn repository owner

# Chown-R apache. apache/svn/project

If no corresponding user or group exists, create one by yourself.

5. Configure apache to support svn

# Vim/usr/local/apache/conf/httpd. conf

The httpd. conf file contains the following content:

User daemon

Group daemon

Modify:

User apache

Group apache

Add

DAV svn

SVNParentPath/svn/project/* (configure the root directory of your version library here)

AuthType Basic/* (Basic verification of connection type settings)

AuthName "Hello welcome to here"/* (here, the string content is changed to the title of the prompt dialog box)

AuthUserFile/svn/passwd/* (access the user's file in the version library and generate it using apache's htpasswd command)

AuthzSVNAccessFile/svn/auth. conf/* (this is the file used to access the version library permission)

Require valid-user/* ("Require valid-user" tells apache that all users in authfile can access it)

Access http: // 192.168.0.225/svn/www in a browser, and you will be prompted to enter the user name and password to check whether the configuration is successful.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.