Centos6.4 install apache + ssl + svn vipyhd

Source: Internet
Author: User

Centos6.4 install apache + ssl + svn vipyhd book I. Installation: yum install httpd-devel mod_dav_svn subversion mod_ssl. confirm that the svn module has been installed: mod_dav_svn # cd/etc/httpd/modules # ls | grep svn mod_authz_svn.so mod_dav_svn.so if you want to confirm whether svn is successfully installed, run the following command for verification: svn -- version B. make sure that apache can be started normally. Test whether Apache can be started properly: # service httpd start access: http: // localhost in the browser. If you can see the Apache page, it indicates that Apache has started properly. Apache command: start: apachectl-k start/service httpd start close: apachectl-k stop restart: apachectl-k restart view log: tail-f/etc/httpd/logs/error-log 2. Configure/etc/httpd/conf. use vim to open subversion under the d directory. modify the options in the conf configuration file:. make sure that the following two statements exist in the configuration file for module configuration. Otherwise, it cannot be used in a module such as svn (if it is installed using YUM, the following two modules have been modified during installation ). LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so B. under the repository directory configuration, svnregister is used to configure Subversion # mkdir-p/data/svn/repo # cd/data/svn/repo # svnadmin create vipyhd # chown-R apache. apache vipyhd <Location/svn/> DAV svn SVNParentPath/data/svn/repo SVNListParentPath on AuthType Basic AuthName "www.vprisk.com" AuthUserFile "/data/svn/userfile" Aut HzSVNAccessFile "/data/svn/accessfile" Require valid_user </Location> RedirectMatch ^ (/svn) $1/Create accessible user files below # htpasswd-c/data/svn/userfile vipyhd to add users, run the following command # htpasswd/data/svn/userfile yhd to restart Apacheservice httpd restart and create a permission access control file. Fill in the following two lines in Red: # vi/data/svn/accessfile [/] * = rw restart apache. # service httpd restart 3. If seLinux is installed in your CentOS system, perform the following configurations. Otherwise, various "no permission" errors will be reported. Edit/etc/sysconfig/selinux and set SELINUX to disable. SElinux will not be automatically started the next time the system is started. [Root @ SVNMANAGER repo] # service iptables stop [root @ SVNMANAGER repo] # chkconfig -- level 345 iptables offSubversion is partially installed. Open a browser to access http: // localhost/svn/vipyhd to see the effect. 4. Set apache to start on/etc/rc. d/rc. add the command to start apache in local, for example:/usr/local/httpd/bin/apachectl start 5: # cd/etc/httpd/conf # openssl genrsa-out httpd. key 1024 generates a private key file # openssl req-new-key httpd. key-out httpd. pem-days 3650-x509: enter the country, province, city, company, department, network name, and email address in sequence. Modify apache to make ssl take effect # vim/etc/httpd/conf. d/ssl. conf ------------------------------- # Server Certificate: # Point SSLCertificateFile at a PEM encoded certificate. if # the certificate is encrypted, then you will be prompted for a # pass phrase. note that a kill-HUP will prompt again. A new # certificate can be generated using the genkey (1) command. SSLCertificateFile/etc/httpd/conf/httpd. pem # Server Private Key: # If the key is not combined with the certificate, use this # directive to point at the key file. keep in mind that if # you 've both a RSA and a DSA private key you can configure # both in parallel (to also allow the use of DSA ciphers, etc .) SSLCertificateKeyFile/etc/httpd/conf/httpd. key ---------------- vi/etc/httpd/conf/httpd. conf <Directory/> Options FollowSymLinks AllowOverride None SSLRequireSSL </Directory> Add to start chkconfig httpd onvim/etc/rc. local ---- svnserve-d-r/svn/repo

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.