Centos6.4x64 installation of apache + ssl + svnvipyhd

Source: Internet
Author: User
Centos6.4x64 bit system installation apache + ssl + svnvipyhd Book I, installation: yuminstallhttpdhttpd-develmod_dav_svnsubversionmod_ssla. confirm that the svn module has been installed: mod_dav_svn # cd/etc/http... 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. confirm apac He can start normally. Test whether Apache can be started normally: # service httpd start access in the browser: http://localhost 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 DAV svn SVNParentPath/data/svn/repo SVNListParentPath on AuthType Basic AuthName "www.vprisk.com" AuthUserFile "/data/svn/userfile" AuthzSVNAccessFile "/data/svn/accessfile" Require valid_userRedirectMatch ^ (/svn) $1/create accessible user files under # 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 your browser to access http://localhost/svn/vipyhd You can 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 Options FollowSymLinks AllowOverride None SSLRequireSSLStart chkconfig httpd onvim/etc/rc. local ---- svnserve-d-r/svn/repo
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.