CentOS 6.5にApache 6.5にApache+SVNを構築する

1.依存パッケージをインストール
[root@localhost ~]# yum install gcc gcc-++ make pcre-develzlib-devel -y
[root@localhost ~]# tar zxvf apr-1.4.6.tar.gz
[root@localhost ~]# cd apr-1.4.6
[root@localhost apr-1.4.6]# ./configure –prefix=/usr/local/apr
[root@localhost ~]# make && make install
[root@localhost ~]# tar zxvf apr-util-1.4.1.tar.gz
[root@localhost ~]# cd apr-util-1.4.1
[root@localhostapr-util-1.4.1]# ./configure –prefix=/usr/local/apr-util–with-apr=/usr/local/apr
[root@localhost ~]# make && make install

2.Apacheのインストール
ダウンロード:
http://mirrors.cnnic.cn/apache/httpd/
[root@localhost ~]# tar zxvf httpd-2.4.7.tar.gz
[root@localhost ~]# cd httpd-2.4.7
[root@localhost httpd-2.4.7]#./configure –prefix=/usr/local/apache –enable-dav –enable-so–enable-rewrite –enable-maintainer-mode –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util/
[root@localhost ~]# cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
[root@localhost ~]# sed -i’s/#ServerName.*/ServerName localhost/’ /usr/local/apache/conf/httpd.conf

3.SVNのインストール
SQLiteのインストール
http://www.sqlite.org/download.html
[root@localhost ~]# tar zxvf sqlite-autoconf-3080200.tar.gz
[root@localhost ~]# cd sqlite-autoconf-3080200
[root@localhostsqlite-autoconf-3080200]# ./configure
[root@localhostsqlite-autoconf-3080200]# make && make install
SVNのインストール
ダウンロード:
http://subversion.apache.org/download
[root@localhost ~]# tar zxvf subversion-1.8.5.tar.gz
[root@localhost ~]# cd subversion-1.8.5
[root@localhostsubversion-1.8.5]# ./configure –prefix=/usr/local/subversion–with-apxs=/usr/local/apache/bin/apxs –with-apr=/usr/local/apr–with-apr-util=/usr/local/apr-util/
[root@localhostsubversion-1.8.5]# make && make install
[root@localhost ~]# echo “PATH=$PATH/:/usr/local/subversion/bin" >> /etc/profile
[root@localhost ~]# source /etc/profile
[root@localhost ~]# svnserve –version #バージョン情報を表示する

Linux

Posted by arkgame