Apache2はApacheサイトのダウンロードページからダウンロードできます。
VineLinuxにインストールするので、httpd-2.0.49.tar.gzをダウンロードしてください。
インストールの前に旧VersionのApache(1.3.29)を削除します。
以下のコマンドを実行します。
Apache 2.0.49をインストールします。 次の手順でコマンドを実行します。
./configure \ --prefix=/usr/local/apache --mandir=/usr/local/man \ --enable-v4-mapped --enable-exception-hook --enable-charset-lite \ --enable-cache --enable-disk-cache --enable-mem-cache \ --enable-status=shared --enable-headers=shared --enable-info=shared \ --enable-mime-magic=shared --enable-expires=shared \ --enable-usertrack=shared --enable-unique-id=shared \ --enable-env=shared --enable-setenvif=shared \ --enable-ssl=shared --enable-dav=shared \ --enable-cgi=shared --enable-negotiation=shared \ --enable-speling=shared --enable-userdir=shared \ --enable-vhost-alias=shared --enable-alias=shared --enable-rewrite=shared \ --enable-so --with-z
.
ExtendedStatus On
.
.
User nobody
Group nobody
.
ServerAdmin root@agartha
.
ServerName agarhta
.
UseCanonicalName On
.
<Directory /home/*/public_html>
AllowOverride All
Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
</Directory>
.
.
DirectoryIndex index.html index.htm index.html.var index.php index.cgi
.
HostnameLookups On
.
AddHandler cgi-script .cgi
.
.
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost agartha tir-n-org
</Location>
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from localhost agartha tir-n-org
</Location>
.
Linux起動時にApacheが自動的に起動するように設定します。
次の手順で起動・終了スクリプトを設定します。
上記までの設定が終了すればApacheは起動できます。
以下の手順でApacheを起動します。
http://agartha/server-info にアクセスして、Apacheの情報を見ることはできれば
Apacheは正常に動いています。
Copyright © 1997 - by A.G.Labo
(webmaster@aglabo.com) $Revision: 2 $