このCentOS、apacheすら入っていないシンプル版なので、ぼちぼち
自分色の環境を作る。LAPP(Linux+Apache+PostgreSQL+PHP)だ。
それぞれのバージョンは以下。
CentOS 5.0
httpd-2.2.9
postgresql-8.3.5
php-5.2.6
################################
####apache2.2.9インストール
################################
#最初は何がいるかわからないからmod_soだけ組み込んでおく。
参考:http://kazmax.zpp.jp/apache/apache.html
[root:/usr/local/src/httpd-2.2.9] ./configure --enable-so
[root:/usr/local/src/httpd-2.2.9] make
[root:/usr/local/src/httpd-2.2.9] make install
後々必要なモジュールが確定したら、再インストールする。
メモ:PHPはスレッドセーフではないのでMPMはpreforkのほうが無難
終わり。次設定。
ほぼこのサイトどおりに設定。
#httpd.conf
User daemon → User apache に変更
Group daemon → User apache に変更
Options FollowSymLinks Indexes → Indexesを消去
#extra/httpd-default.conf
#ServerTokens Full
ServerTokens Prod
#ServerSignature On
ServerSignature Off
これ以上の細かい設定はまた今度。
######################################
#postgreSQL8.3.5インストール
######################################
参考:http://tech.tenki.cc/archives/17
:http://www.atmarkit.co.jp/fdb/rensai/postgresql/01/pgtune1-1.html
:http://ryouto.jp/linux/linux_23.html#POS001
#postgreSQL用ユーザ作成
groupadd postgres
useradd -g postgres -m postgres
passwd postgres
#libxmlのインストール
[root:/usr/local/src] wget ftp://gd.tuwien.ac.at:21/pub/libxml/libxml2-2.6.31.tar.gz
[root:/usr/local/src] tar xvzf libxml2-2.6.31.tar.gz
[root:/usr/local/src] cd libxml2-2.6.31
[root:/usr/local/src] ./configure --prefix=/usr/local
[root:/usr/local/src] make
[root:/usr/local/src] make install
#readlineのインストール
[root:/usr/local/src] wget ftp://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz
[root:/usr/local/src] tar -zxvf readline-5.2.tar.gz
[root:/usr/local/src] cd readline-5.2
[root:/usr/local/src] ./configure
[root:/usr/local/src] make
[root:/usr/local/src] make install
[root:/usr/local/src] ldconfig
#ncursesのインストール
[root:/usr/local/src] wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.5.tar.gz
[root:/usr/local/src] tar zxvf ncurses-5.5.tar.gz
[root:/usr/local/src] cd ncurses-5.5
[root:/usr/local/src/ncurses-5.5] ./configure --with-shared --with-normal
[root:/usr/local/src/ncurses-5.5] make
[root:/usr/local/src/ncurses-5.5] make install
[root:/usr/local/src/ncurses-5.5] export LDFLAGS=-L/usr/local/lib
[root:/usr/local/src/ncurses-5.5] export CPPFLAGS=-I/usr/local/include/readline
#postgreSQLのインストールはpostgresユーザーで行う
[root:/usr/local/src] mkdir /usr/local/pgsql
[root:/usr/local/src] chown -R postgres:postgres /usr/local/src/postgresql-8.3.5
[root:/usr/local/src] chown postgres:postgres /usr/local/pgsql
[root:/usr/local/src] su - postgres
[postgres:/usr/local/src/postgresql-8.3.5] ./configure --with-libxml
[postgres:/usr/local/src/postgresql-8.3.5] make
[postgres:/usr/local/src/postgresql-8.3.5] make check
[postgres:/usr/local/src/postgresql-8.3.5] make install
起動確認してないけど、明日早いから、続きはまた今度。
PHPインストールまでいかなかった。。。
コマンドラインのレスポンスのもったり感がちょいとストレスかな。
コメントする