Black Apple SVN Server

Source: Internet
Author: User
Tags apache php php mysql

I purchased a new black apple as a development machine and added the svn server.

1. VNC remote connection

If I don't want to run around on two computers, I thought of using remote control to control the black apple. At first I thought of a lot of methods (affected by Windows), QQ remote, no, qq under MAC does not support remote connection, and it is not convenient to give up; Remote Desktop, find something similar, do not charge, or do not use, give up; the simplest is to use VNC, in Mac-system-sharing-screen sharing, you can enable the VNC server. Remember to set the password and then download a VNC view client from the win system.

 

2. SVN server settings (reference: http://purpen.iteye.com/blog/346990)

2.1 Apache

My black apple system is 10.6.8 and supports Apache PHP MySQL. In system-share-Web Sharing, if normal, enter HTTP in IE: // localhost/It wok will appear!

2.2 configure SVN

1) create a repository

$ Svnadmin create/path/to/SVN/Repository

2) Configure Apache to support SVN

"$ Sudo Vim/etc/apache2/httpd. conf

In httpd. conf, make sure there are no "#" in front of the following two lines "#"

Loadmodule dav_module libexec/apache2/mod_dav.so

Loadmodule dav_fs_module libexec/apache2/mod_dav_fs.so
Add two rows by yourself

# SVN Module

Loadmodule dav_svn_module libexec/apache2/mod_dav_svn.so

Loadmodule authz_svn_module libexec/apache2/mod_authz_svn.so

Then you need to get these two files to the mudule directory of Apache, Which is/usr/libexec/apache2 under leopard.

$ Sudo CP/opt/subversion/lib/SVN-Apache/*/usr/libexec/Apache/

If your SVN is not installed in/opt/, You need to replace it with your own path"

It won't be edited using vi, So the most important thing is to find the hidden file httpd. conf. After searching for it for a long time, you need to enter a command on the terminal to display the hidden file:

Defaults write com. Apple. Finder appleshowallfiles-bool true

Killall finder (this command is required, or restart the computer)

When I find httpd. conf, I find that all the things I want to add already exist.

3) configure the svn virtual directory in Apache

Enter the following content in the/etc/apache2/other/New SVN. conf directory:

<Location/SVN>

Dav SVN

Svnpath "/path/to/SVN/repository"

Authtype basic

# Authenticated user name

Authname "Admin"

# Authentication Password File Path

Authuserfile/path/to/SVN/Repository/DB/passwd

Require valid-user

</Location>

 

4) create a user and password for SVN Authentication

$ Htpasswd-C/path/to/SVN/Repository/CONF/passwd Admin
New password:
Re-type new password:
Adding password for user admin
The "-c" parameter is no longer required if you want to add a user later (in fact, the password file does not need to be placed in the svn directory, and other directories can be specified)

 

5) $ sudo apachectl restart Apache

 

Change http port 80 to 8000 and map port 8000 of the black apple to the Internet. Do not use port 80. Otherwise, the website will be banned because it has not been filed!

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.