Top/Linux/Apache/インストール

インストールはてなブックマーク

Linux/Apache/モジュール参照の上、コンフィグスクリプトの実行をする。

tar zxvf httpd-2.0.48.tar.gz
cd httpd-2.0.48
./configure --prefix=/usr/local/apache2048 --enable-so
make
make install
ln -s /usr/local/apache2048 /usr/local/apache2
cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd
chkconfig --add httpd
chkconfig httpd on
mkdir -p /var/www/html

設定をしたら

/etc/rc.d/init.d/httpd configtest
/etc/rc.d/init.d/httpd start

設定

Linux/Apache/設定

Apache1.3.33+PHP4.3.10 Permalinkはてなブックマーク

PHPをApacheに静的に組み込む。Apache1.3系は次のようにする。Apache2.0系はDSOのみ

tar xvzf apache_1.3.33.tar.gz
cd apache_1.3.33/
./configure
cd ..
tar xvjf php-4.3.10.tar.bz2
cd php-4.3.10/
./configure \
  --with-apache=../apache_1.3.33 \
  --without-mysql \
  --enable-mbstring \
  --enable-mbstr-enc-trans \
  --enable-mbregex \
  --with-gd \
  --with-ttf \
  --with-jpeg-dir=/usr/lib \
  --with-png-dir=/usr/lib \
  --with-zlib-dir=/usr/include
make
make install
cd ..
cd apache_1.3.33/
./configure --prefix=/usr/local/apache \
  --enable-module=rewrite \
  --disable-module=autoindex \
  --disable-module=imap \
  --disable-module=include \
  --disable-module=negotiation \
  --disable-module=status \
  --disable-module=userdir \
  --activate-module=src/modules/php4/libphp4.a
make
make install
cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
chkconfig --add httpd
chkconfig httpd on

備考

アーカイブは
http://ring.ocn.ad.jp/archives/net/apache/dist/httpd/
から落とすと速い。

参考

Amazon

差分 一覧