My digitalocean server is running Ubuntu 14.04, and I'm trying to install Apache.

When I just type in "apache2" to PuTTy, it says:

The program 'apache2' is currently not installed. You can install it by typing: 
sudo apt-get install apache2-bin

Yet on digitalocean's official tutorial, it says to install apache2 by using:

sudo apt-get install apache2

What's the difference? Will it function the same with either command? What will the differences be if not, and why would I choose one over the other?


Basically, the apache2 package just provides a part of the Apache2 infrastructure, and doesn't contain the binary files. As you run the apache2 command, the shell told you in which package that binary is located (in apache2-bin), but it doesn't mean that that's the only package you have to install.

In my raspberry pi architecture, the apache2 package contains this files:

pi@rpi ~ $ dpkg -L apache2

Please note that this may differ between different distributions. The apache2.2-bin package indeed contains all the binaries used.

You should install apache2 as the tutorial says because it will install the whole infrastructure and will have apache2-bin as a dependency, so it will be installed as well.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.