新サーバ構築メモ

というわけで、新サーバ構築時のメモです

主に、./configure のオプションです

■apache2.2.11
[root@buri src]# wget http://ftp.riken.jp/net/apache/httpd/httpd-2.2.11.tar.gz
[root@buri src]# tar zxvf httpd-2.2.11.tar.gz
[root@buri src]# cd httpd-2.2.11
[root@buri httpd-2.2.11]# ./configure --enable-cache --enable-disk-cache --enable-mime-magic --enable-usertrack --enable-unique-id --disable-userdir --enable-rewrite --enable-so --enable-status --enable-proxy-connect --enable-proxy --enable-ssl --with-mpm=worker --with-included-apr --enable-dav --enable-dav-fs --enable-dav-lock --enable-deflate
[root@buri httpd-2.2.11]# make
[root@buri httpd-2.2.11]# make install
[root@buri httpd-2.2.11]#

■PostgreSQL8.3.7インストール
[root@buri src]# wget ftp://ftp2.jp.postgresql.org/pub/postgresql/source/v8.3.7/postgresql-8.3...
[root@buri src]# tar zxvf postgresql-8.3.7.tar.gz
[root@buri src]# cd postgresql-8.3.7
[root@buri postgresql-8.3.7]# ./configure --enable-multibyte=UTF8 --enable-thread-safety --with-perl
[root@buri pgsql]# su - postgres
[postgres@buri ~]$ vi .bashrc

--added
export PGHOME=/usr/local/pgsql
export PGLIB=$PGHOME/lib
export PGDATA=/var/pgsql/data
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$PGLIB"
export PATH="$PATH":$PGHOME/bin
--added

[postgres@buri ~]$ . .bashrc
[postgres@buri ~]$ initdb --encoding=UTF8
[postgres@buri ~]$ cd $PGDATA

--DB移行
[postgres@buri ~]$ pg_dumall -h 10.8.136.37 | psql

■mysql-5.0.83
[root@buri mysql-5.0.83]# ./configure --with-charset=utf8 --with-extra-charsets=all --with-mysqld-user=mysql --with-innodb --enable-local-infile --prefix=/usr/local/mysql --with-unix-socket-path=/tmp/mysql.sock --enable-thread-safe-client
[root@buri mysql-5.0.83]# make
[root@buri mysql-5.0.83]# make install

■PHP5.2.9インストール
[root@buri src]# wget http://www.php.net/get/php-5.2.9.tar.gz/from/a/mirror
[root@buri src]# tar zxvf php-5.2.9.tar.gz
[root@buri src]# cd php-5.2.9
[root@buri php-5.2.9]# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-roxen-zts --with-zlib --enable-exif --with-gd --with-gettext --enable-mbstring --with-pgsql --with-readline --with-snmp --enable-zip --enable-zend-multibyte --with-tsrm-pthreads --with-curl --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-pdo-pgsql -with-pdo-mysql=/usr/local/mysql --without-iconv

■squid3.1.0.8
[root@buri src]# wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.0.8.tar.gz
[root@buri src]# tar zxvf squid-3.1.0.8.tar.gz
[root@buri src]# cd squid-3.1.0.8
[root@buri squid-3.1.0.8]# ./configure --enable-auth=basic --enable-cachemgr-hostname=gw --enable-default-err-language=Japanese --enable-cpu-profiling --enable-auth-modules=LDAP,NCSA,PAM,SMB,MSNT

■mod_chxj0.12.36
[root@buri src]# wget http://iij.dl.sourceforge.jp/modchxj/38734/mod-chxj_0.12.36.src.tar.gz
[root@buri src]# tar zxvf mod-chxj_0.12.36.src.tar.gz
[root@buri src]# cd mod-chxj_0.12.36
[root@buri src]# ./configure --with-apache-header=/usr/local/apache2/include --with-apxs=/usr/local/apache2/bin/apxs --with-apu-config=/usr/local/apache2/bin/apu-1-config --with-apr-config=/usr/local/apache2/bin/apr-1-config

Tags for 新サーバ構築メモ


■お知らせ
鯖の電気代が2万/月を超えました。新しい鯖を購入して電気代を下げるようにしましたが、ご協力いただける方がいらっしゃいましたら、よろしくお願いします。
カンパしなくても、鯖は存続しますので、WebMoney余ってるよ~という方だけ、よろしくお願いしますm(__)m
WebMoney ぷちカンパ
カスタム検索