Install apache2 or httpd web server on Ubuntu 12 Debian

Install apache2 or httpd web server on Ubuntu 12 Debian

1. Install apache2 on Ubuntu 12

ubuntu@ip:/$ sudo 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 libcap2 ssl-cert
Suggested packages:
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 libcap2
0 upgraded, 11 newly installed, 0 to remove and 83 not upgraded.
Need to get 1,867 kB of archives.
After this operation, 5,736 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 precise/main libcap2 amd64 1:2.22-1ubuntu3 [12.0 kB]
Get:2 precise/main libapr1 amd64 1.4.6-1 [89.6 kB]
Get:3 precise/main libaprutil1 amd64 1.3.12+dfsg-3 [74.6 kB]
Get:4 precise/main libaprutil1-dbd-sqlite3 amd64 1.3.12+dfsg-3 [10.4 kB]
Get:5 precise/main libaprutil1-ldap amd64 1.3.12+dfsg-3 [8,044 B]
Get:6 precise-updates/main apache2.2-bin amd64 2.2.22-1ubuntu1.2 [1,340 kB]
Get:7 precise-updates/main apache2-utils amd64 2.2.22-1ubuntu1.2 [90.0 kB]
Get:8 precise-updates/main apache2.2-common amd64 2.2.22-1ubuntu1.2 [226 kB]
Get:9 precise-updates/main apache2-mpm-worker amd64 2.2.22-1ubuntu1.2 [2,296 B]
Get:10 precise-updates/main apache2 amd64 2.2.22-1ubuntu1.2 [1,496 B]
Get:11 precise-updates/main ssl-cert all 1.0.28ubuntu0.1 [12.3 kB]
Fetched 1,867 kB in 0s (3,912 kB/s)
Preconfiguring packages …
Selecting previously unselected package libcap2.
(Reading database … 26232 files and directories currently installed.)
Unpacking libcap2 (from …/libcap2_1%3a2.22-1ubuntu3_amd64.deb) …
Selecting previously unselected package libapr1.
Unpacking libapr1 (from …/libapr1_1.4.6-1_amd64.deb) …
Selecting previously unselected package libaprutil1.
Unpacking libaprutil1 (from …/libaprutil1_1.3.12+dfsg-3_amd64.deb) …
Selecting previously unselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from …/libaprutil1-dbd-sqlite3_1.3.12+dfsg-3_amd64.deb) …
Selecting previously unselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from …/libaprutil1-ldap_1.3.12+dfsg-3_amd64.deb) …
Selecting previously unselected package apache2.2-bin.
Unpacking apache2.2-bin (from …/apache2.2-bin_2.2.22-1ubuntu1.2_amd64.deb) …
Selecting previously unselected package apache2-utils.
Unpacking apache2-utils (from …/apache2-utils_2.2.22-1ubuntu1.2_amd64.deb) …
Selecting previously unselected package apache2.2-common.
Unpacking apache2.2-common (from …/apache2.2-common_2.2.22-1ubuntu1.2_amd64.deb) …
Selecting previously unselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from …/apache2-mpm-worker_2.2.22-1ubuntu1.2_amd64.deb) …
Selecting previously unselected package apache2.
Unpacking apache2 (from …/apache2_2.2.22-1ubuntu1.2_amd64.deb) …
Selecting previously unselected package ssl-cert.
Unpacking ssl-cert (from …/ssl-cert_1.0.28ubuntu0.1_all.deb) …
Processing triggers for man-db …
Processing triggers for ureadahead …
Processing triggers for ufw …
Setting up libcap2 (1:2.22-1ubuntu3) …
Setting up libapr1 (1.4.6-1) …
Setting up libaprutil1 (1.3.12+dfsg-3) …
Setting up libaprutil1-dbd-sqlite3 (1.3.12+dfsg-3) …
Setting up libaprutil1-ldap (1.3.12+dfsg-3) …
Setting up apache2.2-bin (2.2.22-1ubuntu1.2) …
Setting up apache2-utils (2.2.22-1ubuntu1.2) …
Setting up apache2.2-common (2.2.22-1ubuntu1.2) …
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.22-1ubuntu1.2) …
* Starting web server apache2 apache2: apr_sockaddr_info_get() failed for ip
apache2: Could not reliably determine the server’s fully qualified domain name, using for ServerName
[ OK ]
Setting up apache2 (2.2.22-1ubuntu1.2) …
Setting up ssl-cert (1.0.28ubuntu0.1) …
hostname: Name or service not known
make-ssl-cert: Could not get or use FQDN, using “ip”.
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.
Processing triggers for libc-bin …
ldconfig deferred processing now taking place

2. Access web server


That’s all. Thanks for using

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>