Apache2 command such as a2enmod and a2ensite no working its showing command not found in Ubuntu
问题 I am deploying Flask application in Apache2 server during this i need to run a command for enabling mod_wsgi by using: sudo a2enmod wsgi but its showing: sudo: a2enmod: command not found please help thanks 回答1: 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 update sudo apt-get install apache2 libapache2-mod-wsgi python-dev Then, sudo a2enmod wsgi 来源: https://stackoverflow.com