要在Linux上架设网站,当然要安装LAMP套件(Linux、apache、mysql、php5)。当然也有朋友会选择安装Nginx来替代apache2 那是后话,今天我们就apache的安装做记录。
环境:新装Linux系统(ubuntu 10.4),未安装任何应用程序(apache php mysql)
一、安装apache2:
root@netren:~# 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-bin apache2.2-common libapr1
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
Suggested packages:
apache2-doc apache2-suexec apache2-suexec-custom
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 ssl-cert
0 upgraded, 10 newly installed, 0 to remove and 4 not upgraded.
Need to get 3,341kB of archives.
After this operation, 10.2MB of additional disk space will be used.
Do you want to continue [Y/n]?y
Get:1 http://hk.archive.ubuntu.com/ubuntu/ lucid/main libapr1 1.3.8-1build1 [116kB]
Get:2 http://hk.archive.ubuntu.com/ubuntu/ lucid-updates/main libaprutil1 1.3.9+dfsg-3ubuntu0.10.04.1 [85.6kB]
Get:3 http://hk.archive.ubuntu.com/ubuntu/ lucid-updates/main libaprutil1-dbd-sqlite3 1.3.9+dfsg-3ubuntu0.10.04.1 [27.3kB]
Get:4 http://hk.archive.ubuntu.com/ubuntu/ lucid-updates/main libaprutil1-ldap 1.3.9+dfsg-3ubuntu0.10.04.1 [25.3kB]
Get:5 http://hk.archive.ubuntu.com/ubuntu/ lucid-updates/main apache2.2-bin 2.2.14-5ubuntu8.4 [2,622kB]
Get:6 http://hk.archive.ubuntu.com/ubuntu/ lucid-updates/main apache2-utils 2.2.14-5ubuntu8.4 [160kB]
Get:7 http://hk.archive.ubuntu.com/ubuntu/ lucid-updates/main apache2.2-common 2.2.14-5ubuntu8.4 [290kB]
Get:8 http://hk.archive.ubuntu.com/ubuntu/ lucid-updates/main apache2-mpm-worker 2.2.14-5ubuntu8.4 [2,372B]
Get:9 http://hk.archive.ubuntu.com/ubuntu/ lucid-updates/main apache2 2.2.14-5ubuntu8.4 [1,484B]
Get:10 http://hk.archive.ubuntu.com/ubuntu/ lucid/main ssl-cert 1.0.23ubuntu2 [10.9kB]
Fetched 3,341kB in 22s (147kB/s)
Preconfiguring packages ...