玄箱HGメモ / Debian / Apache2導入


Last update: 2009-05-19 (火) 17:03:12
実施: 2008/12/18

玄箱HGメモ/Debian/Apache2導入

緑文字が入力コマンド。


Debian Apache2導入

HTTPサーバーとしてApache2を導入します。
最終的にはSubversionをhttp経由で参照させます。

Apache2導入

管理者権限(管理者アカウント参照)で作業する必要があります。

KAGUYA:~# aptitude install apache2[ENTER]

Apache2導入画面(例)

Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Building tag database... Done
The following NEW packages will be automatically installed:
 apache2-mpm-worker apache2-utils apache2.2-common file libapr1 libaprutil1
 libexpat1 libmagic1 libsqlite3-0 mime-support
The following NEW packages will be installed:
 apache2 apache2-mpm-worker apache2-utils apache2.2-common file libapr1 libaprutil1
 libexpat1 libmagic1 libsqlite3-0 mime-support
0 packages upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 2652kB of archives. After unpacking 8471kB will be used.
Do you want to continue? [Y/n/?] 

Y[ENTER]

Writing extended state information... Done
Get:1 ftp://ftp.dti.ad.jp stable/main mime-support 3.39-1 [30.9kB]
Get:2 http://security.debian.org stable/updates/main libmagic1 4.17-5etch3 [279kB]
Get:3 ftp://ftp.dti.ad.jp stable/main libapr1 1.2.7-8.2 [113kB]
Get:4 http://security.debian.org stable/updates/main file 4.17-5etch3 [34.0kB]
Get:5 ftp://ftp.dti.ad.jp stable/main libexpat1 1.95.8-3.4 [67.5kB]
Get:6 ftp://ftp.dti.ad.jp stable/main libsqlite3-0 3.3.8-1.1 [194kB]
Get:7 ftp://ftp.dti.ad.jp stable/main libaprutil1 1.2.7+dfsg-2 [72.1kB]
Get:8 ftp://ftp.dti.ad.jp stable/main apache2-utils 2.2.3-4+etch6 [354kB]
Get:9 ftp://ftp.dti.ad.jp stable/main apache2.2-common 2.2.3-4+etch6 [1035kB]
Get:10 ftp://ftp.dti.ad.jp stable/main apache2-mpm-worker 2.2.3-4+etch6 [431kB]
Get:11 ftp://ftp.dti.ad.jp stable/main apache2 2.2.3-4+etch6 [41.3kB]
Fetched 2652kB in 16s (162kB/s)
Selecting previously deselected package libmagic1.
(Reading database ... 10748 files and directories currently installed.)
Unpacking libmagic1 (from .../libmagic1_4.17-5etch3_powerpc.deb) ...
Selecting previously deselected package file.
Unpacking file (from .../file_4.17-5etch3_powerpc.deb) ...
Selecting previously deselected package mime-support.
Unpacking mime-support (from .../mime-support_3.39-1_all.deb) ...
Selecting previously deselected package libapr1.
Unpacking libapr1 (from .../libapr1_1.2.7-8.2_powerpc.deb) ...
Selecting previously deselected package libexpat1.
Unpacking libexpat1 (from .../libexpat1_1.95.8-3.4_powerpc.deb) ...
Selecting previously deselected package libsqlite3-0.
Unpacking libsqlite3-0 (from .../libsqlite3-0_3.3.8-1.1_powerpc.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.2.7+dfsg-2_powerpc.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.3-4+etch6_powerpc.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.3-4+etch6_powerpc.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.3-4+etch6_powerpc.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.3-4+etch6_all.deb) ...
Setting up libmagic1 (4.17-5etch3) ...

Setting up file (4.17-5etch3) ...
Setting up mime-support (3.39-1) ...

Setting up libapr1 (1.2.7-8.2) ...

Setting up libexpat1 (1.95.8-3.4) ...

Setting up libsqlite3-0 (3.3.8-1.1) ...

Setting up libaprutil1 (1.2.7+dfsg-2) ...

Setting up apache2-utils (2.2.3-4+etch6) ...
Setting up apache2.2-common (2.2.3-4+etch6) ...
Setting Apache2 to Listen on port 80. If this is not desired, please edit /etc/apache2/ports.conf as desired. Note that the Port directive no longer works.
Module alias installed; run /etc/init.d/apache2 force-reload to enable.
Module autoindex installed; run /etc/init.d/apache2 force-reload to enable.
Module dir installed; run /etc/init.d/apache2 force-reload to enable.
Module env installed; run /etc/init.d/apache2 force-reload to enable.
Module mime installed; run /etc/init.d/apache2 force-reload to enable.
Module negotiation installed; run /etc/init.d/apache2 force-reload to enable.
Module setenvif installed; run /etc/init.d/apache2 force-reload to enable.
Module status installed; run /etc/init.d/apache2 force-reload to enable.
Module auth_basic installed; run /etc/init.d/apache2 force-reload to enable.
Module authz_default installed; run /etc/init.d/apache2 force-reload to enable.
Module authz_user installed; run /etc/init.d/apache2 force-reload to enable.
Module authz_groupfile installed; run /etc/init.d/apache2 force-reload to enable.
Module authn_file installed; run /etc/init.d/apache2 force-reload to enable.
Module authz_host installed; run /etc/init.d/apache2 force-reload to enable.

Setting up apache2-mpm-worker (2.2.3-4+etch6) ...
Starting web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.100.100 for ServerName.

Setting up apache2 (2.2.3-4+etch6) ...
KAGUYA:~#

玄箱/HGをリブートします。

Apache2接続確認

HTTP接続

ブラウザで
http://KAGUYA
のように玄箱/HGを表示します。

ホスト名がだめなら/etc/hostsで指定したIPアドレスで接続します。

Apache2で接続できることを確認しました。


コメント

コメントはありません。 コメント/玄箱HGメモ/Debian/Apache2導入?

Online: 1


FrontPage

Soft

Tips


最新の20件

2021-12-21 2020-04-06 2020-03-10 2013-06-28 2013-11-13 2014-06-24

今日の12件

  • counter: 1005
  • today: 1
  • yesterday: 0
  • online: 1

edit