H
H
HellWalk2017-07-12 18:28:58
linux
HellWalk, 2017-07-12 18:28:58

Why doesn't it find the a2ensite command?

Hello
I'm learning Linux (Ubuntu), I'm learning how to make local hosts using this guide. Stumbled at this point:

sudo a2ensite test.com.conf

Gives me:
sudo: a2ensite: command not found

At the same time , this command is described in the apache2 manual , i.e. must be performed. Why is she not located?
PS apache2 seems to be worth it, at least there is a corresponding folder in /etc/.
PPS In one of the manuals for solving this problem, a method is described:
sudo apt-get install apache2.2-common

Issues:
Reading package lists... Done
Building dependency tree
Reading status information... Done
The apache2.2-common package is not available, but is listed in another package's dependency list.
This may mean that the package is missing, outdated, or available from sources not mentioned in sources.list
However, the following packages may replace it:
apache2:i386 apache2
E: No installation candidate found for package 'apache2.2-common'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
artem78, 2017-07-12
@artem78

sudo ln -s /etc/apache2/sites-available/mysite /etc/apache2/sites-enabled/mysite

S
Sanes, 2017-07-12
@Sanes

apt-get install apache2.2-common

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question