apache のインストール

SheevaPlug

Web サーバにするつもりはない。
コントローラとしての I/F として http を使うため、 apache をインストールする

インストール

root@debian:~# apt-get install apache
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package apache has no installation candidate
root@debian:~# 
?。探す
root@debian:~# apt-cache search apache
apache2 - Apache HTTP Server metapackage
apache2-doc - Apache HTTP Server documentation
apache2-mpm-event - Apache HTTP Server - event driven model
apache2-mpm-prefork - Apache HTTP Server - traditional non-threaded model
	:
	:
apache2 か。
インストールする
root@debian:~# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1
  libexpat1 libgdbm3 libmysqlclient15off libpq5 mysql-common perl perl-modules
  ssl-cert
Suggested packages:
  www-browser apache2-doc apache2-suexec apache2-suexec-custom ufw perl-doc
  libterm-readline-gnu-perl libterm-readline-perl-perl
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-common libapr1
  libaprutil1 libexpat1 libgdbm3 libmysqlclient15off libpq5 mysql-common perl
  perl-modules ssl-cert
0 upgraded, 14 newly installed, 0 to remove and 9 not upgraded.
Need to get 11.4MB of archives.
After this operation, 39.0MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ports.ubuntu.com jaunty/main libgdbm3 1.8.3-4 [22.7kB]
Get:2 http://ports.ubuntu.com jaunty/main perl-modules 5.10.0-19ubuntu1 [3182kB]
Get:3 http://ports.ubuntu.com jaunty/main perl 5.10.0-19ubuntu1 [4531kB]
Get:4 http://ports.ubuntu.com jaunty/main libexpat1 2.0.1-4 [119kB]
Get:5 http://ports.ubuntu.com jaunty/main libapr1 1.2.12-5 [109kB]
Get:6 http://ports.ubuntu.com jaunty/main mysql-common 5.1.30really5.0.75-0ubuntu10 [62.7kB]
Get:7 http://ports.ubuntu.com jaunty/main libmysqlclient15off 5.1.30really5.0.75-0ubuntu10 [1769kB]
Get:8 http://ports.ubuntu.com jaunty/main libpq5 8.3.7-1 [291kB]
Get:9 http://ports.ubuntu.com jaunty/main libaprutil1 1.2.12+dfsg-8 [68.8kB]
Get:10 http://ports.ubuntu.com jaunty/main apache2-utils 2.2.11-2ubuntu2 [151kB]
Get:11 http://ports.ubuntu.com jaunty/main apache2.2-common 2.2.11-2ubuntu2 [813kB]
Get:12 http://ports.ubuntu.com jaunty/main apache2-mpm-worker 2.2.11-2ubuntu2 [229kB]
Get:13 http://ports.ubuntu.com jaunty/main apache2 2.2.11-2ubuntu2 [45.8kB]
Get:14 http://ports.ubuntu.com jaunty/main ssl-cert 1.0.23ubuntu1 [10.8kB]
Fetched 11.4MB in 15s (727kB/s)
Preconfiguring packages ...
Selecting previously deselected package libgdbm3.
(Reading database ... 13328 files and directories currently installed.)
Unpacking libgdbm3 (from .../libgdbm3_1.8.3-4_armel.deb) ...
Selecting previously deselected package perl-modules.
Unpacking perl-modules (from .../perl-modules_5.10.0-19ubuntu1_all.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.10.0-19ubuntu1_armel.deb) ...
Selecting previously deselected package libexpat1.
Unpacking libexpat1 (from .../libexpat1_2.0.1-4_armel.deb) ...
Selecting previously deselected package libapr1.
Unpacking libapr1 (from .../libapr1_1.2.12-5_armel.deb) ...
Selecting previously deselected package mysql-common.
Unpacking mysql-common (from .../mysql-common_5.1.30really5.0.75-0ubuntu10_all.deb) ...
Selecting previously deselected package libmysqlclient15off.
Unpacking libmysqlclient15off (from .../libmysqlclient15off_5.1.30really5.0.75-0ubuntu10_armel.deb) ...
Selecting previously deselected package libpq5.
Unpacking libpq5 (from .../libpq5_8.3.7-1_armel.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.2.12+dfsg-8_armel.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.11-2ubuntu2_armel.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.11-2ubuntu2_armel.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.11-2ubuntu2_armel.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.11-2ubuntu2_all.deb) ...
Selecting previously deselected package ssl-cert.
Unpacking ssl-cert (from .../ssl-cert_1.0.23ubuntu1_all.deb) ...
Setting up libgdbm3 (1.8.3-4) ...

Setting up libexpat1 (2.0.1-4) ...

Setting up libapr1 (1.2.12-5) ...

Setting up mysql-common (5.1.30really5.0.75-0ubuntu10) ...
Setting up libmysqlclient15off (5.1.30really5.0.75-0ubuntu10) ...

Setting up libpq5 (8.3.7-1) ...

Setting up libaprutil1 (1.2.12+dfsg-8) ...

Setting up apache2-utils (2.2.11-2ubuntu2) ...
Setting up ssl-cert (1.0.23ubuntu1) ...
hostname: Unknown host
make-ssl-cert: Could not get FQDN, using "debian".
make-ssl-cert: You may want to fix your /etc/hosts and/or DNS setup and run
make-ssl-cert: make-ssl-cert generate-default-snakeoil --force-overwrite
make-ssl-cert: again.

Setting up perl-modules (5.10.0-19ubuntu1) ...
Setting up perl (5.10.0-19ubuntu1) ...

Setting up apache2.2-common (2.2.11-2ubuntu2) ...
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.

Setting up apache2-mpm-worker (2.2.11-2ubuntu2) ...
 * Starting web server apache2                                                  apache2: apr_sockaddr_info_get() failed for debian
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                                         [ OK ]

Setting up apache2 (2.2.11-2ubuntu2) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@debian:~#
何か、エラーが出ている。

動作確認

http://192.168.2.85/ をアクセスすると、「It works!」と表示された。


←(前のページ)
電気製品の制御
当月のハックの記録
SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ
(次のページ)→
man のインストール

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