Compile and configure apache + svn source code in ubuntu

Source: Internet
Author: User

Download source code
1. apache2 httpd-2.2.19.tar.gz
2. subversion -1.6.6.tar.gz
3.sqlite-amalgamation.tar.gz
4.apr-1.4.5.tar.gz
5.apr-util-1.3.12.tar.gz
6. zlib-1.2.5.tar.gz zlib
 
1. Install apache2
1. Unzip tar-zxvf httpd-2.2.19.tar.gz after unzipping the folder name for/soft/httpd-2.2.19
2. Go to the decompressed directory cd/soft/httpd-2.2.19 to execute
./Configure -- prefix =/soft/apache -- enable-module = so -- enable-dav -- enable-so -- enable-maintainer-mode -- enable-rewrite
Then make and sudo make install
 
Ii. subversion Installation
Go to the decompressed directory and run:
$./Autogen. sh
This script will tell you whether the system needs to install autoconf, libtool, etc. If these are missing, you can install them through apt-get. autoconf must be V2.58 or later, and libtool must be V1.4 or later.
Use apt-cache showpkg autoconf to view the version number and run the following command to install it:
$ Sudo apt-get install autoconf
$ Sudo apt-get install libtool
Then you can run the./configure script, which will tell you which dependent libraries are missing. In my system, sqlite, apr, apr-util are missing.
 
Decompress subversion: tar-zxvf subversion.tar.gz. After decompression, the folder name is subversion.
Decompress sqlite: tar-zxvf sqlite-amalgamation.tar.gz after unzipping, the folder name is sqlite-amalgamation leaving only sqlite3.c
Decompress apr: tar-zxvf apr-1.4.5.tar.gz after unzipping the folder name apr
Decompress apr-util: tar-zxvf apr-util-1.3.12.tar.gz after unzipping the folder name apr-util
Unzip zlib: tar-zxvf zlib-1.2.5.tar.gz unzip folder name zlib
Copy apr, apr-util, sqlite-amalgamation, and zlib to subversion.
The folder structure is
Subversion
-- Apr
-- Apr-util
-- Sqlite-amalgamatio
-- Zlib
Go to apr and execute
1../buildconf
2. configure
3. make
4. sudo make install
 
Go to apr-util
1../buildconf
2. configure -- with-prefix =/soft/subversion/apr
3. make
4. sudo make install
 
Enter zlib
1./configure
2. make
3 sudo make install
Go to subversion
1 .. /configure -- prefix =/soft/svn -- with-apxs =/soft/apache/bin/apxs -- with-apr =/soft/subversion/apr -- with-apr-util = /soft/subversion/apr-util -- with-ssl -- with-zlib =/soft/subversion/zlib -- enable-mailtainer-mode
2. make
3. sudo make install
 
3. Configure apache
Go to vi/soft/apache/conf/httpd. conf
ServerName 127.0.0.1: 8088 (Change listener: 80 to listener: 8088 if port 80 is occupied
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location/svn>
DAV svn
SVNParentPath/soft/repository/
AuthzSVNAccessFile/soft/repository/authz. conf
AuthType Basic
AuthName "Subversion. zoneyump"
AuthUserFile/soft/repository/authfile
Require valid-user
</Location>
 
Create a configuration Library
Mkdir/soft/repository/mac
./Svnadmin create/soft/repository/mac
Add users
# Htpasswd [-c]/soft/repository/authfile test
Permission allocation
# Vi/soft/repository/authz. conf
[Mac:/]
Test = rw
 
Start apache
/Soft/apache/bin/httpd-k start
 
Enter the address in the browser
Http://localhost: 8088/svn/mac

This is from "wjavahot"
 

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.