From the terminal screen, type “sudo apt-get install apache2″:

Note: The default document root is “/var/www/”.

noland@mojito:~$ sudo apt-get install apache2
[sudo] password for noland:
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 libpq5
Suggested packages:
apache2-doc
The following NEW packages will be installed:
apache2 apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 libpq5
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 2182kB of archives.
After unpacking 6226kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com gutsy/main libapr1 1.2.7-8.2ubuntu1 [112kB]
Get:2 http://us.archive.ubuntu.com gutsy/main libpq5 8.2.5-1.1 [227kB]
Get:3 http://us.archive.ubuntu.com gutsy/main libaprutil1 1.2.7+dfsg-2build1 [70.2kB]
Get:4 http://us.archive.ubuntu.com gutsy/main apache2-utils 2.2.4-3build1 [346kB]
Get:5 http://us.archive.ubuntu.com gutsy/main apache2.2-common 2.2.4-3build1 [946kB]
Get:6 http://us.archive.ubuntu.com gutsy/main apache2-mpm-worker 2.2.4-3build1 [439kB]
Get:7 http://us.archive.ubuntu.com gutsy/main apache2 2.2.4-3build1 [41.8kB]
Fetched 2182kB in 2s (730kB/s)
Selecting previously deselected package libapr1.
(Reading database ... 99159 files and directories currently installed.)
Unpacking libapr1 (from .../libapr1_1.2.7-8.2ubuntu1_i386.deb) ...
Selecting previously deselected package libpq5.
Unpacking libpq5 (from .../libpq5_8.2.5-1.1_i386.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.2.7+dfsg-2build1_i386.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.4-3build1_i386.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.4-3build1_i386.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.4-3build1_i386.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.4-3build1_all.deb) ...
Setting up libapr1 (1.2.7-8.2ubuntu1) ...
Setting up libpq5 (8.2.5-1.1) ...Setting up libaprutil1 (1.2.7+dfsg-2build1) ...

Setting up apache2-utils (2.2.4-3build1) ...
Setting up apache2.2-common (2.2.4-3build1) ...
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.4-3build1) ...
* Starting web server apache2 OK ]

Setting up apache2 (2.2.4-3build1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place

You can now place your files in "/var/www/"

9 Responses to “Installing Apache on Ubuntu 7.10 (Gutsy Gibbon)”

  1. Horsefug.Com » Installing Apache on Ubuntu 7.10 (Gusty Gibbon) Says:

    [...] wrote an interesting post today on Installing Apache on Ubuntu 7.10 (Gusty Gibbon)Here’s a quick [...]

  2. rapidoda » Blog Archive » Installing Apache on Ubuntu 7.10 (Gusty Gibbon) Says:

    [...] more here [...]

  3. Deepak Says:

    best ths worked for me
    thank you for this and keep going on
    thank you very much

  4. admin Says:

    Great! Glad to here.

  5. asdf Says:

    ever heard of guTSy gibbon?

    Try changing the “gutsy” to “gusty” in your /etc/apt/sources.list and try updating your system…

  6. admin Says:

    Woops, I guess your right! Thanks!

  7. Robin Says:

    Does this also works on 8.04 Hardy Heron ?

  8. Rob Phillips Says:

    worked like a dream
    but i haven’t put it the url yet so i guess it picked up a default ip address
    thanks for ur help
    Q ? does apache have a GUI or is it sitting inside ubuntu
    Rob
    ad you can guess i’m a newbie
    cheers

  9. Rob Phillips Says:

    does this mean mySQL is also installed
    as part of apache?

Leave a Reply

If Wordpress eats your comment (shell output, loops, ex..) email the text to me.