Installing apache2 and subversion in ubuntu
Installing apache2
$ sudo apt-get install apache2
Installing subversion
$ sudo apt-get install subversion
Installing libapache2-svn
$ sudo apt-get install libapache2-svn
Creating SVN directory
$ sudo mkdir /home/svn
$ cd /home/svn
$ sudo mkdir project
$ sudo svnadmin create /home/svn/project
$ cd /home/svn
$ sudo chown -R www-data:subversion project
$ sudo chmod -R g+rws project
$ sudo gedit /etc/apache2/mods-available/dav_svn.conf
<Location /svn>
DAV svn
SVNParentPath /home/svn
SVNListParentPath On
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/subversion/passwd
# To enable authorization via mod_authz_svn
AuthzSVNAccessFile /etc/apache2/svn_access_control
# <LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
# </LimitExcept>
</Location>
$ sudo /etc/init.d/apache2 restart
if it's first time use this:
$ sudo htpasswd -c /etc/subversion/passwd user_name
else
$ sudo htpasswd /etc/subversion/passwd second_user_name
$ cat /etc/subversion/passwd
$ sudo touch /etc/apache2/svn_access_control
$ sudo gedit /etc/apache2/svn_access_control
Editing:
[groups]
admin = bob, bill
developers = bob, barry, brett
[/]
@admin = r
bob = rw
[/wowapp/trunk]
@admin = r
@developers = rw
brenda = rw
$ sudo /etc/init.d/apache2 restart
Add ssl
:
sudo mkdir /etc/apache2/ssl
sudo openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pe
It prompts you to enter the some informations
$ sudo a2enmod ssl
$ sudo gedit /etc/apache2/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
</IfModule>
$ sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/myown-ssl
$ sudo gedit /etc/apache2/sites-available/myown-ssl
change to
<VirtualHost *:443>
Add before </VirtualHost>:
Code:
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLProtocol all
SSLCipherSuite HIGH:MEDIUM
$ sudo a2ensite myown-ssl
$ sudo /etc/init.d/apache2 restart
When I tried to do a re-start from Terminal, I got:
$ sudo /etc/init.d/apache2 restart
* Forcing reload of web server (apache2)...
apache2: Could not reliably determine the server's fully qualified domain name, using
127.0.0.1 for ServerName
httpd (no pid file) not running
apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.0.1 for ServerName
To fix it up:
$ sudo netstat -anp | grep '^tcp.*LISTEN'
$ sudo /etc/init.d/apache2 restart
https://127.0.0.1:443/svn/project/
http://127.0.0.1/svn/project/
Installing SVN client:
sudo apt-get install rapidsvn
Done with it!
分享到:
相关推荐
This book is designed as an Ubuntu 15.04 server reference, covering the Ubuntu servers and their support applications. Server tools are covered as well as the underlying configuration files and system...
2. 安装驱动程序,按照提示进行安装。 3. 重启计算机,以确保驱动程序生效。 知识点2:安装 CUDA 10.0 CUDA 10.0 是 NVIDIA 公司推出的并行计算框架,旨在帮助开发者更好地利用 NVIDIA 显卡的计算能力。安装 CUDA ...
Prepare for Microsoft Exam 70-410 – and help demonstrate your real-world mastery of implementing and configuring core services in Windows Server 2012 R2. Designed for experienced IT professionals ...
While Apache Spark 1.x gained a lot of traction and adoption in the early years, Spark 2.x delivers notable improvements in the areas of API, schema awareness, Performance, Structured Streaming, and ...
这个压缩包包含Subversion的源代码以及其依赖的Apache Portable Runtime (APR) 和 APR Util库,还有SQLite数据库引擎的集成代码。 Apache Portable Runtime (APR) 是一个C语言库,它是Apache HTTP服务器项目的基础...
OpenERP Installing Ubuntu9.04
• Apache2 Configuration • Databases • Windows Networking This manual is divided into the following main categories: • Installation • Package Management • Networking • Windows Networking This ...
You will start off by successfully installing Apache Maven on your favorite OS, and then you will create your first working project. Furthermore, the book walks you through setting up and using Maven...
在Ubuntu 10.04环境下安装NS2(网络模拟器2.34)是一个涉及多个步骤的过程,这个过程对于那些需要进行网络模拟和性能分析的IT专业人员来说至关重要。NS2是一个开源的网络模拟软件,它允许用户模拟各种网络环境,测试...
Installing Ubuntu—Getting started 11 Finishing Installation 16 2 The Ubuntu Desktop 19 Understanding the Ubuntu desktop 19 Unity 19 The Launcher 21 The Dash 21 Workspaces 24 Managing windows 24 Unity...
Administer, install, and configure the 5–year Hardy–Heron Ubuntu Server Long Term Support Edition of the most popular Linux distribution in the world. Use the new installation and GUI tools. ...
**Chapter 2 - Installing Ubuntu Linux** - **Prerequisites for Installation**: Detailed information on hardware requirements, including minimum and recommended specifications for a smooth installation ...
Chapter 1: Installing Apache Karaf Chapter 2: Commanding the Runtime Chapter 3: System Configuration and Tuning Chapter 4: Provisioning Chapter 5: Deploying Applications Chapter 6: Deploying ...
根据提供的文档信息,本文将详细介绍如何在Linux系统上安装并配置加速版OpenSSL(OCF)及Apache服务器,这是英特尔官方发布的技术文档,主要应用于基于Intel® QuickAssist Technology的安全应用开发环境中。...
Chapter 2 Preparing to Install Ubuntu Chapter 3 Installing Ubuntu Chapter 4 Post-Installation Configuration Chapter 5 First Steps with Ubuntu Chapter 6 The X Window System Chapter 7 Managing ...
2. **服务器升级路径**: - 当企业计划将现有的服务器统一升级到Windows Server 2012 R2时,需要为每台服务器推荐一个升级路径。 - 在可能的情况下升级现有操作系统,并尽可能减少硬件采购。 - 如果一台计算机...