CentOS 6.6 Install lamp and Subversion server

Source: Internet
Author: User

Target: Install lamp on CentOS 6.6 and install the latest version of the 1.8.* Subversion server, and subversion Rights management front-end if.svnadmin.

Installation steps: Install some new versions of lamp Step 1. Configure the firewall to turn on 80 port, 3306 Port vi/etc/sysconfig/iptables-a input-m State--state new-m tcp-p TCP--dport 80-j accept-a input-m s Tate--state new-m tcp-p tcp--dport 3306-j accept:wq!  #保存退出/etc/init.d/iptables restart  #重启防火墙使配置生效2. Close selinuxvi/etc/selinux/config#selinux=enforcing  #注释掉 #selinuxtype=targeted  #注释掉SELINUX =disabled   #增加:wq!  #保存退出3. Add a third-party yum source default Yum source software version is too low, to install the latest version of lamp, you need to use third-party yum source wget http://www.atomicorp.com/installers/atomic  #下载, First use the default Yum source to install the wget command yum install wgetsh ./atomic  #安装yum clean all  #清除当前yum缓存yum makecache # Cache the package information from the Yum source Yum repolist  #列出yum源中可用的软件包4. Installing apache,mysql,php with yum Install the Apacheyum install httpd  #根据提示, enter y installation to successfully install/ETC/INIT.D/HTTPD start # Launch Apache NOTE: Apache will prompt for error after booting: Httpd:httpd:Could not reliably determine the server's fully qualif domain name, using:: 1 for ServerName Solution:vi/etc/httpd/conf/httpd.conf  #编辑ServerName www.example.com:80  #去掉前面的注释: wq! # Save Exit Chkconfig httpd on  #设为开机启动/etc/init.d/httpd restart  #重启Apache二, installing MySQL1, installing Mysqlyum install MySQL mysql-server # Ask if you want to install, enter Y to install automatically until the installation is complete/etc/init.d/mysqld start  #启动MySQLchkconfig mysqld on  #设为开机启动cp/usr/share/mysql/ my-medium.cnf/etc/my.cnf  #拷贝配置文件 (Note: If the/etc directory by default has a my.cnf, directly overwrite can) 2, set the password for the root account mysql_secure_installation Enter , enter the password 2 times according to the prompt input Y, enter the last occurrence according to the hint: Thanks for using mysql! MySQL Password Setup Complete, restart Mysql:/etc/init.d/mysqld restart  #重启/etc/init.d/mysqld stop  #停止/etc/init.d/mysqld start   #启动三, installing PHP1, installing Phpyum install php  #根据提示输入Y直到安装完成2, installing PHP components, enabling PHP support Mysqlyum install php-mysql PHP-GD libjpeg* Php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath Php-mhash Libmcrypt here Select the above installation package to install according to the prompt input y enter/etc/init.d/mysqld restart  #重启MySql/etc/init.d/httpd restart # Restart Apache to install a new version of Subversion1. Install the new suversion server using the WANdisco source

Create a source file in/etc/yum.repos.d/Wandisco-svn1.8.repo

[WANdisco]

Name=wandisco SVN Repo 1.8

Enabled=1

baseurl=http://opensource.wandisco.com/rhel/6/svn-1.8/rpms/

Gpgcheck=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-wandisco

Then import Gpg-key

wget Http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco

RPM--import Rpm-gpg-key-wandisco

To install again:

Yum Update

Yum-y Install Subversion MOD_DAV_SVN

2. Configuring Subversion

Modify the configuration file/etc/httpd/conf.d/subversion.conf content to the appropriate path, for example:

<Location/svn>

DAV SVN

Svnlistparentpath on

Svnparentpath/data/svn

AuthType Basic

AuthName "Subversion Repository"

Authuserfile/data/svn/passwd.conf

Authzsvnaccessfile/data/svn/authz.conf

Require Valid-user

</Location>

Installing If.svnadmin

If.svnadmin is a PHP-written Subversion Rights Management Web frontend that directly reads and writes subversion permissions files without a database. can be installed in accordance with the official instructions to install the configuration can be relatively simple.

http://sourceforge.net/projects/ifsvnadmin/

Reference Documentation:

Http://www.111cn.net/sys/CentOS/68941.htm

Http://www.111cn.net/sys/linux/80004.htm

CentOS 6.6 Install lamp and Subversion server

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.