0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Redmine3.2構築 1/3]Apache 2.2 をCentOS6.7にソースからインストール

Last updated at Posted at 2018-09-19

概要

CentOS6.7にRedmine環境を構築する

  1. Apache2.2をソースからインストール(本ページ)
  2. MariaDB10.1をソースからインストール
  3. Redmine3.2をインストール

構成

H/S Name Version Memo
OS CentOS 6.7
Web Server Apache 2.2.27 ソースインストール
Database MariaDB 10.1.36 ソースインストール
Application Redmime 3.2.9

参考手順

手順

Apacheインストール

  • 必要なパッケージをインストール
# yum -y install wget gcc openssl openssl-devel
  • Apacheをダウンロード
# cd /usr/local/src/
# wget http://archive.apache.org/dist/httpd/httpd-2.2.27.tar.gz
# tar zxvf ./httpd-2.2.27.tar.gz
# cd httpd-2.2.27
  • Apacheをインストール
# ./configure --prefix=/usr/local/apache --enable-so --enable-ssl --enable-rewrite
# make
# make install
  • Apacheの設定ファイルを編集
# vi /usr/local/apache/conf/httpd.conf
/usr/local/apache/conf/httpd.conf
#ServerName www.example.com:80
ServerName localhost:80                             # ADD
  • Apacheを起動
# /usr/local/apache/bin/apachectl start
# /usr/local/apache/bin/apachectl stop

自動起動の設定

  • 起動スクリプトのひな型をコピー
# cp build/rpm/httpd.init /etc/rc.d/init.d/httpd
  • 起動スクリプトを編集
# vi /etc/rc.d/init.d/httpd
/etc/rc.d/init.d/httpd
#httpd=${HTTPD-/usr/sbin/httpd}                          # COMMENT OUT
httpd=${HTTPD-/usr/local/apache/bin/httpd}               # ADD
#pidfile=${PIDFILE-/var/log/httpd/${prog}.pid}           # COMMENT OUT
pidfile=${PIDFILE-/usr/local/apache/logs/httpd.pid}      # ADD

        #CONFFILE=/etc/httpd/conf/httpd.conf             # COMMENT OUT
        CONFFILE=/usr/local/apache/conf/httpd.conf       # ADD
  • 自動起動を設定
# chkconfig --add httpd
# chkconfig httpd on
# chkconfig --list httpd
  • Apacheを起動
# service httpd start

次の手順

MariaDB10.1をソースからインストール

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?