Apache2 command such as a2enmod and a2ensite no working its showing command not found in Ubuntu Apache2 command such as a2enmod and a2ensite no working its showing command not found in Ubuntu flask flask

Apache2 command such as a2enmod and a2ensite no working its showing command not found in Ubuntu


I had the same problem with using Ubuntu 16.04 in AWS. However, installing apache2 along with libapache2-mod-wsgi and python-dev solved the issue.

Try:

sudo apt-get updatesudo apt-get install apache2 libapache2-mod-wsgi python-dev

Then,

sudo a2enmod wsgi


I share this tips because it append to me :

If you enter into the root account with su, the /usr/sbin folder is not in the path and the a2enmod command is not found...

So you have to use su - instead ;)


This can happen if you switch to root user as su root instead of su - on Debian Buster