apache のインストール

Debian LS-AVL/A

続いて Web サーバ

apache2 のインストール

apache2 をインストールする
root@av:~# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  python2.6-minimal libgsasl7 libmailutils2 python2.6 guile-1.8-libs
  libpython2.6 libntlm0 libltdl7
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1
  libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libpcre3 ssl-cert
Suggested packages:
  www-browser apache2-doc apache2-suexec apache2-suexec-custom
  openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libpcre3
  ssl-cert
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 2318 kB of archives.
After this operation, 7389 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main libpcre3 armel 8.02-1.1 [234 kB]
Get:2 http://ftp.jp.debian.org/debian/ squeeze/main libapr1 armel 1.4.2-6+squeeze3 [90.2 kB]
Get:3 http://ftp.jp.debian.org/debian/ squeeze/main libaprutil1 armel 1.3.9+dfsg-5 [83.9 kB]
Get:4 http://ftp.jp.debian.org/debian/ squeeze/main libaprutil1-dbd-sqlite3 armel 1.3.9+dfsg-5 [27.5 kB]
Get:5 http://ftp.jp.debian.org/debian/ squeeze/main libaprutil1-ldap armel 1.3.9+dfsg-5 [25.4 kB]
Get:6 http://ftp.jp.debian.org/debian/ squeeze/main ssl-cert all 1.0.28 [14.8 kB]
Get:7 http://security.debian.org/ squeeze/updates/main apache2.2-bin armel 2.2.16-6+squeeze6 [1358 kB]
Get:8 http://security.debian.org/ squeeze/updates/main apache2-utils armel 2.2.16-6+squeeze6 [172 kB]
Get:9 http://security.debian.org/ squeeze/updates/main apache2.2-common armel 2.2.16-6+squeeze6 [309 kB]
Get:10 http://security.debian.org/ squeeze/updates/main apache2-mpm-worker armel 2.2.16-6+squeeze6 [2238 B]
Get:11 http://security.debian.org/ squeeze/updates/main apache2 armel 2.2.16-6+squeeze6 [1388 B]
Fetched 2318 kB in 7s (304 kB/s)
Preconfiguring packages ...
Selecting previously deselected package libpcre3.
(Reading database ... 17833 files and directories currently installed.)
Unpacking libpcre3 (from .../libpcre3_8.02-1.1_armel.deb) ...
Selecting previously deselected package libapr1.
Unpacking libapr1 (from .../libapr1_1.4.2-6+squeeze3_armel.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.9+dfsg-5_armel.deb) ...
Selecting previously deselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.9+dfsg-5_armel.deb) ...
Selecting previously deselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.9+dfsg-5_armel.deb) ...
Selecting previously deselected package apache2.2-bin.
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.16-6+squeeze6_armel.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.16-6+squeeze6_armel.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.16-6+squeeze6_armel.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.16-6+squeeze6_armel.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.16-6+squeeze6_armel.deb) ...
Selecting previously deselected package ssl-cert.
Unpacking ssl-cert (from .../ssl-cert_1.0.28_all.deb) ...
Processing triggers for man-db ...
Setting up libpcre3 (8.02-1.1) ...
Setting up libapr1 (1.4.2-6+squeeze3) ...
Setting up libaprutil1 (1.3.9+dfsg-5) ...
Setting up libaprutil1-dbd-sqlite3 (1.3.9+dfsg-5) ...
Setting up libaprutil1-ldap (1.3.9+dfsg-5) ...
Setting up apache2.2-bin (2.2.16-6+squeeze6) ...
Setting up apache2-utils (2.2.16-6+squeeze6) ...
Setting up apache2.2-common (2.2.16-6+squeeze6) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.
Setting up apache2-mpm-worker (2.2.16-6+squeeze6) ...
Starting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.2.54 for ServerName
.
Setting up apache2 (2.2.16-6+squeeze6) ...
Setting up ssl-cert (1.0.28) ...
!root@av:~# wget http://localhost/
--2012-03-01 15:40:02--  http://localhost/
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 177 [text/html]
Saving to: `index.html'

100%[======================================>] 177         --.-K/s   in 0s

2012-03-01 15:40:02 (3.81 MB/s) - `index.html' saved [177/177]

root@av:~# cat index.html
<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>
root@av:~#
It works!


LS-AVL/A
楽天市場
Amazon
uWorks
ValuMore
Yahoo!ショッピング


bind のインストール
ハックの記録
LinkStation/玄箱 をハックしよう

apache の設定

Copyright (C) 2003-2012 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市